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. (Last updated on: June 24, 2019).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

About TreeGrid Filter Operators

Thread ID:

Created:

Updated:

Platform:

Replies:

143783 Apr 4,2019 05:35 PM UTC Apr 8,2019 04:50 AM UTC ASP.NET MVC - EJ 2 3
loading
Tags: TreeGrid
Pylori
Asked On April 4, 2019 05:35 PM UTC

Hi,


Is it possible to change the default filter bar operator?
I tried referring to the following URL, but TreeGrid seems to be different.
https://ej2.syncfusion.com/documentation/grid/filtering/#change-default-filterbar-operator

(Source code I tried)
function dataBound(args) {
    var grid = document.getElementById("TreeGrid").ej2_instances[0];
    Object.assign(grid.filterModule.filterOperators, { startsWith: 'contains' });
}


Regards,
Pylori.


Farveen Sulthana Thameeztheen Basha [Syncfusion]
Replied On April 5, 2019 11:47 AM UTC

Hi Pylori, 

Thanks for contacting Syncfusion Support. 

QUERY : Unable to change TreeGrid default Filter Operator 
 
From your query we understand that, you are unable to change the default filter bar operator of treegrid. TreeGrid is built over the Grid Component. We can get the Grid instance from TreeGrid. So we can achieve your requirement by accessing Grid property from TreeGrid like below code example:- 

function dataBound(args) { 
    var treegrid = document.getElementById("TreeGrid").ej2_instances[0]; 
    Object.assign(treegrid.grid.filterModule.filterOperators, { startsWith: 'contains' }); 

Please get back to us if you need any further assistance. 

Regards, 
Farveen sulthana T 


Pylori
Replied On April 5, 2019 01:11 PM UTC

Hi,


I always appreciate your prompt response.
I was able to achieve the requirements.


Regards,
Pylori.

Vignesh Natarajan [Syncfusion]
Replied On April 8, 2019 04:50 AM UTC

Hi Pylori,  

Thanks for the update.  

We are glad to know that your query has been resolved by our solution.  

Please get back to us if you have further queries. 

Regards, 
Vignesh Natarajan 


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

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

Live Chat Icon For mobile
Live Chat Icon