We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How to change the default filter operator type to "Contains" in filter menu?

You can change the default filter operator type “startswith” of the filter menu to other operators like contains, lessthan and etc. in dataBound event of the Grid. The following code example shows the way to change the default operator type to “contains” in the filter menu.

1. Render the Grid control.

 

JS

 

MVC

 

 

ASP.NET

 

2. In the dataBound event of the Grid, bound the mousedown jQuery event to menu filter icon. In the beforeOpen event of ejDialog you have to set “selectedIndex” property of “ejDropDownList” as “2” to get the Default filter value as “Contains”.

 

Thus you can change the default filter operator type of the filter menu to other operators like contains, lessthan and etc.

 

Note :- You can also bind RemoteData to the grid and you can change the default filter operator of the filtermenu to other operators by following these above mentioned steps.

 

The following output is displayed as a result of the above code example.

 

Figure: Filtering with filter operator Type “contains”.

 

Article ID: Published Date: Last Revised Date: Platform: Control:
7549 03/08/2017 07/30/2018 JavaScript ejGrid
Tags:
Did you find this information helpful?
Add Comment
You must log in to leave a comment

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon