R2 2018 Release is here – now with modern UI for chatbots and more! See what’s new!
Change Theme

SASS Themes

    LESS Themes

      SASS Theme Builder

      Create new or customize SASS themes
      Launch Theme Builder

      Grid / Toolbar template

      Description

      The Telerik ASP.NET Core 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 ASP.NET Core Grid by category. The dropdownlist is populated with the list of categories and the filter is applied on its change event by invoking the grid.dataSource.filter() method from the data source client-side API.

      Note that the toolbar template is instantiated by the .ToolBar(toolbar => { toolbar.ClientTemplateId("GridToolbarTemplate");}) method. The method expects the id of the script element which holds the client template as a string parameter.

      More about Telerik Grid for ASP.NET Core

      ASP.NET Core source

      Also available for:

      • toolbar_template.cshtml
      • Toolbar_TemplateController.cs
      • ProductService.cs

      Support & learning resources

      Grid for other technologies