Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9185781
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T19:21:39+00:00 2026-06-17T19:21:39+00:00

I have inserted the link buttons Add New Record and Save All at the

  • 0

I have inserted the link buttons “Add New Record” and “Save All” at the bottom of my Webgrid. But I want them to be in the footer of the WebGrid. I have searched for this a lot, but found nothing. Can someone tell me how to add a link or button in the “footer” of a WebGrid.

Here is some code of my WebGrid

@model IEnumerable<MvcGrid2.Models.Employee>
@{
    WebGrid grid = new WebGrid(
    source: Model,
    rowsPerPage: 4);

}

@grid.GetHtml(htmlAttributes: new { id = "WebGrid1" },
        tableStyle:"gridTable",
        headerStyle: "gridHead",
        footerStyle: "gridFooter",
        rowStyle: "gridRow",
        alternatingRowStyle: "gridAltRow",
        mode: WebGridPagerModes.All,
        firstText: "<<",
        previousText: "<",
        nextText: ">",
        lastText: ">>",
        columns: grid.Columns(        
                               @* grid.Column( columnName : "EmployeeId", 
                                            format: @<text>@item.EmpId</text>),*@

                                grid.Column(columnName: "Employee Id",
                                            format: @<span> 
                                                        <span id="spanEmpId_@(item.EmpId)">@item.EmpId</span> 
                                                         @Html.TextBox("EmpId_" + (int)item.EmpId, (int)item.EmpId, new { @style = "display:none" })
                                                   </span>),

                                 grid.Column(columnName: "Employee Name",
                                           format: @<span> 
                                                       <span id="spanEmpName_@(item.EmpId)">@item.EmpName</span> 
                                                       @Html.TextBox("EmpName_" + (int)item.EmpId, (string)item.EmpName, new { @style = "display:none" })
                                                   </span>),

                                 grid.Column(columnName: "Designation",
                                             format: @<span> 
                                                        <span id="spanEmpDesg_@(item.EmpId)" >@item.Designation</span> 
                                                         @Html.TextBox("EmpDesg_" + (int)item.EmpId, (string)item.Designation, new { @style = "display:none" })
                                                     </span>),

                                grid.Column(columnName: "Action", 
                                            format: @<text>                     
                                                        <a href="#" id="Edit_@(item.EmpId)" class="edit">Edit</a>
                                                        <a href="#" id="Update_@(item.EmpId)" style="display:none" class="update">Update</a>
                                                        <a href="#" id="Cancel_@(item.EmpId)" style="display:none"  class="cancel">Cancel</a>
                                                         <a href="#" id="Save_@(item.EmpId)" style="display:none" class="save">Update</a>
                                                        <a href="#" id="iCancel_@(item.EmpId)" style="display:none"  class="icancel">Cancel</a>
                                                        <a href="#" id="Delete_@(item.EmpId)"  class="delete">Delete</a>
                                                    </text>)


                            ))
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T19:21:41+00:00Added an answer on June 17, 2026 at 7:21 pm

    WebGrid doesn’t have a modifiable footer per se. However if you view the tutorial on ASP.NET you’ll see a way to make that happen in css.

    What you can do is make your last row the same css class as your footer, or you can insert your buttons/links with javascript. Neither approach is clean, but as far as I can tell there is not a better way to accomplish your goal without rewriting the control. Many people have suggested looking into Telerik’s controls, if you have/can get a license for their stuff.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

i have the following ajax.actionlink :- <div id =link> @Ajax.ActionLink(Add New Answer, Create, Answer,
My application uses an additional project I have inserted, and I link it and
i have html page with a link when user clicked that link a new
I have problems to display a link title inside a colorbox. Link is inserted
I am having some unusual problem with my site. i have inserted all the
To be short and precise: I have a link, clicking which a new div
I have inserted string and integer values into dynamic columns in a Cassandra Column
I have inserted this form with multiple checkbox items which collects some values, What
I have inserted a code to display product attribute in view.phptml, which works fine.
I have inserted the following line into my Joomla template: <jdoc:include type=component /> This

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.