New to Telerik UI for ASP.NET MVC? Download free 30-day trial
ASP.NET MVC Grid Toolbar Template
- EXAMPLE
- VIEW SOURCE
-
Change Theme
defaultDefault Theme
- Main
- Main Dark
- Nordic
- Ocean Blue
- Ocean Blue A11Y
- Purple
- Turquoise
Bootstrap Theme- Main
- Bootstrap 3
- Bootstrap 3 Dark
- Main Dark
- Nordic
- Turquoise
- Turquoise Dark
- Urban
- Vintage
Material Theme- Main
- Arctic
- Lime Dark
- Main Dark
- Nova
Classic Theme- Main
- Green
- Green Dark
- Lavender
- Lavender Dark
- Main Dark
- Metro
- Metro Dark
- Moonlight
- Opal
- Opal Dark
- Silver
- Silver Dark
- Uniform
Fluent Theme- Main
Also available for:
CLIENT-SIDE API SERVER-SIDE APIDescription
The Telerik UI for ASP.NET MVC Grid component allows you to define the toolbar content by using a template. For example, a template that contains all toolbar elements like commands, a search box, icons, and more.
This demo shows an implementation of a toolbar template incorporating a Telerik UI for ASP.NET MVC DropDownList to list the Data Grid records by category. The DropDownList is populated with a list of categories. When an option is selected, the Grid is filtered by invoking the client-side grid.dataSource.filter()
method of the DataSource.
The toolbar template is defined through the ToolBar(toolbar => { toolbar.ClientTemplate();})
method that accepts a Template component. The Template component allows you to incorporate an arbitrary HTML and any Telerik UI for ASP.NET MVC component into the toolbar of the Grid.
For more information, refer to the official Telerik UI for ASP.NET MVC Data Grid product documentation on the available toolbar options.