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

TreeGrid filtering not working in document demo

Thread ID:

Created:

Updated:

Platform:

Replies:

150671 Jan 15,2020 02:41 PM UTC Jan 20,2020 07:19 AM UTC Blazor 3
loading
Tags: TreeGrid
Scott Peal
Asked On January 15, 2020 02:41 PM UTC

On this document page:

  • when you enter the value 3 in the filter for the task name column, no results are returned
  • when you click the X to cancel the filter, the filter value is cleared but the grid is still filtering


Manivannan Padmanaban [Syncfusion]
Replied On January 17, 2020 10:15 AM UTC

Hi Scott, 

Greetings from Syncfusion Support. 

Query 1: when you enter the value 3 in the filter for the task name column, no results are returned  
 
By default the filter operator for the TaskName column is startswith. Due to this when we enter the value 3 it returns no result. We can change the default filter operator by extending Filter property in the column. Kindly refer the below code example, here we have changed the default operator for TaskName column as contains from startswith 
 
 
@{ 
    var Filtering = new 
    {@@operator = "contains" 
}; 
} 
 
<EjsTreeGrid DataSource="@TreeGridData" AllowFiltering="true" ……..> 
………….. 
    <TreeGridColumns> 
        …………. 
        <TreeGridColumn Field="TaskName" HeaderText="Task Name" Width="160" Filter="@Filtering"></TreeGridColumn> 
…………….. 
    </TreeGridColumns> 
</EjsTreeGrid> 
 
 
Refer the below Help Documentation link, 
 
Query 2: when you click the X to cancel the filter, the filter value is cleared but the grid is still filtering 
 
In filterbar, once when we clicked the X mark to cancel the filter we need to press the Enter key to cleared the filter value from the grid which is the default behavior. 
 
Kindly get back to us, if you need further assistance. We will be happy to assist you. 
 
Regards, 
Manivannan Padmanaban. 


Scott Peal
Replied On January 17, 2020 01:02 PM UTC

Query 1:
Thanks for the information, that was very helpful. 

Query 2:
Please consider changing that behavior as it is not what a user would expect to do if they hit the X.

Keep up the awesome work!

Gowri Loganathan [Syncfusion]
Replied On January 20, 2020 07:19 AM UTC

Hi Scott, 

We are very happy that you had solved your query. 

Query 2: Please consider changing that behavior as it is not what a user would expect to do if they hit the X. 
 
To trigger filter action without Enter key we suggest you to set the filtering mode as immediate. It Initiates the filter operation after a certain time interval. By default, time interval is 1500 ms. 
 
Please refer the below documentation and API link for giving modes to TreeGrid. 
 


Regards, 
Gowri V L. 



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