New to Telerik UI for ASP.NET MVC? Download free 30-day trial

Toolbar template

Loading Demo...
  • EXAMPLE
  • VIEW SOURCE
  • Edit in Theme Builder
  • toolbar_template.cshtml
  • Toolbar_TemplateController.cs
  • ProductService.cs

Also available for:

API REFERENCE

Description

The MVC grid component exposes an option to define a content template for its toolbar.

Here you can see a sample implementation of a toolbar template incorporating a dropdownlist HtmlHelper to list the records in the grid by category. The combo is populated with the list of categories and the filter is applied on its change event by invoking the grid.dataSource.filter(params) method from the client-side API.

Note that the toolbar template is instantiated by the ToolBar -> Template method.

Support & Learning Resources