New to Kendo UI for jQuery? Download free 30-day trial

Combine Regular and Custom Filters in ASP.NET MVC Grid

Environment

Product Progress® Telerik UI® Grid for ASP.NET MVC
Operating System Windows 10 64bit
Browser Google Chrome
Browser Version 57
.NET Framework Version 4.6
Visual Studio Version Visual Studio 2015
Preferred Language JavaScript
MVC Version MVC 5
View Engine Razor

Description

I have a Telerik UI Data Grid for ASP.NET MVC with regular filters and local filtering. How can I add custom filters and combine the regular filters with the custom ones?

Solution

To allow the application of both filter types, wrap the custom filter in an additional filter with the "OR" criteria.

For the complete implementation of the approach, refer to this runnable example, which applies the filter method of the DataSource.

See Also

In this article