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

ASP.NET Core Grid Filter Row

Loading Demo...
  • EXAMPLE
  • VIEW SOURCE
  • Edit in Telerik REPL
HtmlHelper
TagHelper
Files:
filter_row.cshtml
OrderViewModel.cs
Filter_Row_TagHelper.cshtml

Also available for:

CLIENT-SIDE API HTML HELPER API

Description

The Telerik UI for ASP.NET Core Grid supports a row filter feature, which allows you to configure a row that will be used for filtering by the contained content in the respective column.

This demo shows how to implement a filter row in the header by setting the Filterable Mode property of the Data Grid to Row.Filterable(ftb => ftb.Mode(GridFilterMode.Row)). Then, based on the data type of the underlying columns data, the Grid will render textboxes for string values, and numeric text boxes or date-pickers for filtering in its column headers.

Additionally, you can specify a default filter operator that will be applied when the user enters some value in the filter textbox and presses Tab or Enter. To achieve this scenario, use the .Filterable(ftb => ftb.Cell(cell => cell.Operator("contains") attribute of the corresponding column, as shown for the Ship Name and Freight columns.

For more information about the filtering capabilities, refer to the official Telerik UI for ASP.NET Core Data Grid product documentation on the available fltering approaches.

Additional Apps

This Grid example is part of unique collection of hundreds of ASP.NET Core demos, with which you can see all Telerik ASP.NET Core components and their features in action. View the source code of the demos from the library or directly adapt, and edit them and their theme appearance in Telerik REPL for ASP.NET Core or ThemeBuilder.

Support & Learning Resources

Additional Resources