Toolbar

The toolbar is just a partial view with inputs that use client-side bindings.

You can eaily create your own toolbar (re-use it by putting it in a partial view) or download the one below to get your started.

  1. Download MVCGridToolbarModel.cs and put it in your models folder:
    MVCGridToolbarModel.cs
  2. Download _MVCGridToolbar.cshtml and put it in your /Views/Shared folder
    _MVCGridToolbar.cshtml
  3. Include it using the code example below
@Html.Partial("_MVCGridToolbar", new MVCGridToolbarModel()
{
    MVCGridName = "TestGrid",
    PageSize = true,
    ColumnVisibility = true,
    Export = true,
    GlobalSearch = true
})
@Html.MVCGrid("TestGrid")



 
Id First Name Last Name Start Date Status Gender
1000PatriciaJacobs10/19/2013ActiveFemale
999JeffreyShaw9/25/2012ActiveMale
998DorothyNguyen11/21/2014InactiveFemale
997KathrynCruz7/29/2014InactiveFemale
996EvelynJacobs10/16/2012InactiveFemale
995MichaelWilson2/9/2013InactiveMale
994NancyCollins3/31/2013InactiveFemale
993JoyceCrawford10/24/2013ActiveFemale
992MartinFrazier6/29/2014InactiveMale
991LoisSnyder4/13/2013InactiveFemale
Showing 1 to 10 of 1000 entries