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

ASP.NET MVC Grid Filter Row

Loading Demo...
  • EXAMPLE
  • VIEW SOURCE
filter_row.cshtml
Filter_RowController.cs
GridController.cs

Also available for:

CLIENT-SIDE API SERVER-SIDE API

Description

The Telerik UI for ASP.NET MVC 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 MVC Data Grid product documentation on the available fltering approaches.

Additional Apps

This Grid example is part of a unique collection of hundreds of ASP.NET MVC demos, with which you can see all Telerik ASP.NET MVC 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 the ThemeBuilder.

Support & Learning Resources

Additional Resources