Clear Filter

Hi,

In Datagrid, I used Custom Binding. The ReadAsync event occurs when the user filters one of the columns. But ReadAsync does not occur when he removes the filter (clicks x), but ReadAsync occurs when he removes the filter and press Enter (keyboard).


public class CustomAdaptor : DataAdaptor

{

public override async Task<object> ReadAsync(DataManagerRequest dataManagerRequest, string key = null){}

}



The next question is that dm.Search is List<SearchFilter>

How can a user enter a list of items to search?


17 Replies

MS Monisha Saravanan Syncfusion Team February 4, 2022 08:51 AM UTC

Hi Sarah, 

Greetings from Syncfusion support. 

Query 1: “ReadAsync occurs when we removes the filter and press Enter (keyboard)” 
 
We have analysed your query and we would like to inform that in DataGrid, Default filter mode is OnEnter. So it triggers the Read/ReadAsync method after clicking enter in filterbar cell. If we need to trigger the Read/ReadAsync method after clicking clear icon we suggest you to set the filterbar mode as immediate. Kindly refer the attached code snippet for your reference. 
 
<SfGrid TValue="Order" ID="Grid" AllowSorting="true" AllowFiltering="true" AllowPaging="true" Toolbar="@(new List<string>() { "Add", "Delete", "Update", "Cancel", "Search" })"> 
    <GridFilterSettings Mode=FilterBarMode.Immediate ImmediateModeDelay="100"></GridFilterSettings> 
    <GridColumns> 
... 
    </GridColumns> 
</SfGrid> 


Query 2: ” The next question is that dm.Search is List<SearchFilter>. How can a user enter a list of items to search?” 

We would like to inform that the search list contains the details like Fields, IgnoreCase, Key and Operator which is required to filter the data source. Kindly refer the attached screensnip for your reference. 

 

Kindly get back to us if you have further queries. 

Regards, 
Monisha 



SA Sarah replied to Monisha Saravanan February 5, 2022 05:28 AM UTC

Hi Monisha Saravanan,

1-I forgot to say that I use remote data and using FilterBarMode.Immediate may not be the right thing to do.

2-Yes you are right. I defined what I mean in the following figure:


Thank you



MS Monisha Saravanan Syncfusion Team February 7, 2022 12:35 PM UTC

Hi Sarah, 

Thanks for your update. 

Query 1: I use remote data and using FilterBarMode.Immediate may not be the right thing to do. 

For remote data, we suggest you to increase the time delay by using ImmediateModeDelay. So that the request will generate after certain time interval. Kindly refer the attached code snippet for your  reference. 

<SfGrid TValue="Order" ID="Grid" AllowSorting="true" AllowFiltering="true" AllowPaging="true" Toolbar="@(new List<string>() { "Add", "Delete", "Update", "Cancel", "Search" })"> 
    <GridFilterSettings Mode=FilterBarMode.Immediate ImmediateModeDelay="100"></GridFilterSettings> 
    <GridColumns> 
... 
    </GridColumns> 
</SfGrid> 



kindly revert us if you have further queries. 

Query 2: The next question is that dm.Search is List<SearchFilter> 
 
We are currently checking the reported case at our end and we will update the further details within two business days(on or before February 10, 2022). Until then we appreciate your patience. 

Regards, 
Monisha 



SA Sarah replied to Monisha Saravanan February 13, 2022 01:25 PM UTC

Hi Monisha Saravanan,

In Datagrid, I used Custom Binding. The ReadAsync event occurs when the user filters one of the columns. But ReadAsync does not occur when he removes the filter (clicks x), but ReadAsync occurs when he removes the filter and press Enter (keyboard).

Is it not possible to write or override the event?


We are currently checking the reported case at our end and we will update the further details within two business days(on or before February 10, 2022). Until then we appreciate your patience.

Thank you



MS Monisha Saravanan Syncfusion Team February 14, 2022 02:32 PM UTC

Hi Sarah, 
  
Thanks for the update. 
  
Query1: “In Datagrid, I used Custom Binding. The ReadAsync event occurs when the user filters one of the columns. But ReadAsync does not occur when he removes the filter (clicks x), but ReadAsync occurs when he removes the filter and press Enter (keyboard).” 
 
currently we are validating the reported query at our end. We need some more time to analyze your query. So we will update you the further details in two business days on or before (16th Febraury 2021).  

Until then we appreciate your patience . 
  
Query2: “The next question is that dm.Search is List<SearchFilter>” 
  
In Grid we do not use List<SearchFilter>. But other Syncfusion data components which use SfDataManager will have list<SearchFilter>. So considering those cases, the SfDataManager search request is defined as a list. 
  
Kindly get back to us if you have further queries. 
  
Regards, 
Monisha 



VN Vignesh Natarajan Syncfusion Team February 17, 2022 03:05 PM UTC

Hi Sarah,  

Thanks for the patience.  

We have resolved the reported behavior and included the fix in our latest patch release version 19.4.0.52. So kindly ensure the reported behavior using our latest version Syncfusion Blazor NuGet package. If you are still facing the issue. Kindly get back to us with more details.    

Regards, 
Vignesh Natarajan 



SA Sarah February 19, 2022 10:35 AM UTC

Hi Monisha Saravanan,


I downloaded version 19.4.0.52. In this new version, ReadAsync does not run in the CustomAdapter class, while I did not change the source code and it ran in the previous version.


Thank you




MS Monisha Saravanan Syncfusion Team February 21, 2022 07:18 AM UTC

Hi Sarah, 

Sorry for the inconvenience caused.  

We have already considered one bug related to CustomAdaptor in 19.4.0.52 patch release. We have fixed the issue and it will be included in our patch release which is expected to be rolled out on or before February 23, 2022.  

We will update you once the release is rolled out. Until then we appreciate your patience.  
 
Regards, 
Monisha 



SA Sarah February 23, 2022 01:31 PM UTC

Hi Monisha Saravanan,


I have a Community license. Can I have a License key for the latest version?


Thank





MS Monisha Saravanan Syncfusion Team February 24, 2022 02:16 PM UTC

Hi Sarah, 

Query: “I have a Community license. Can I have a License key for the latest version?”  
  
If you are trying to register the Syncfusion license key in your application, please follow the below steps.  

To know about generating license key,  
  
   
To know about registering license key in Blazor application,  
   
   
Syncfusion license key is just a string that needs to be registered before initiating any Syncfusion controls in your application using below code.  
  
Syncfusion.Licensing.SyncfusionLicenseProvider.RegisterLicense("YOUR LICENSE KEY");  
  
Our license keys are version and platform-specific. So, please ensure that all the referenced Syncfusion assemblies\NuGet packages are on the same version as license key’s version.  
  

Regards,  
Monisha 



SA Sarah February 26, 2022 04:58 PM UTC

Hi  Monisha Saravanan,


Thank you for your complete guidance.


Query1: “In Datagrid, I used Custom Binding. The ReadAsync event occurs when the user filters one of the columns. But ReadAsync does not occur when he removes the filter (clicks x), but ReadAsync occurs when he removes the filter and press Enter (keyboard).” 


I downloaded version 19.4.0.53 but the bug has not been fixed.


Thank you



MS Monisha Saravanan Syncfusion Team February 28, 2022 12:44 PM UTC

Hi Sarah, 

Sorry for the inconvenience caused. 

Currently we are validating the reported query at our end and we are able to reproduce the reported query at (19.4.0.53) version. We will update further details within two business days (02.03.2022). Until then we appreciate your patience. 

Regards, 
Monisha 



MS Monisha Saravanan Syncfusion Team March 2, 2022 01:12 PM UTC

Hi Sarah, 

Thanks for the patience.  

Query1: “In Datagrid, I used Custom Binding. The ReadAsync event occurs when the user filters one of the columns. But ReadAsync does not occur when he removes the filter (clicks x), but ReadAsync occurs when he removes the filter and press Enter (keyboard).”  

We have resolved and included the fix for the clear filter issue in our release (19.4.0.54).  So please upgrade to our latest version of Syncfusion NuGet package to resolve the reported issue.  

Kindly get back to us if you have further issue. 
    
Regards,              
Monisha 



SA Sarah replied to Monisha Saravanan March 5, 2022 10:11 AM UTC

Hi Monisha Saravanan,


I downloaded version 19.4.0.54 but the bug has not been fixed.


Thank you



MS Monisha Saravanan Syncfusion Team March 7, 2022 12:56 PM UTC

Hi Sarah, 

Thanks for the update. 

We could not able to reproduce the reported query at our end at our latest version. Kindly check the video demonstration for your reference. 


Also we suggest you to check the reported issue after clearing the NuGet and the browser cache. 

If you still face the reported issue. Kindly share us the below details to validate further at our end. 

  1. Share the grid code snippet.
  2. Do you faced any exceptions when clicking filter icon. If so kindly share the exception.
  3. Share us the exact scenario of the issue that you have faced.
  4. Share us the video demonstration of the issue along with replication procedure.
  5. If possible share us an simple issue reproduceable sample.

The above-requested details will be very helpful for us to validate the reported query at our end and provide the solution as early as possible. 

Regards, 
Monisha 



SA Sarah March 10, 2022 09:59 AM UTC

Hi Monisha Saravanan,


Query1: “In Datagrid, I used Custom Binding. The ReadAsync event occurs when the user filters one of the columns. But ReadAsync does not occur when he removes the filter (clicks x), but ReadAsync occurs when he removes the filter and press Enter (keyboard).”

These bugs have been fixed.

A problem that did not exist before and occurred on 19.4.0.54 is that when I click on the Clear Filter column, sometimes an error appears below. This error does not occur by deleting the text manually and pressing Enter from the keyboard


Thank you



MS Monisha Saravanan Syncfusion Team March 10, 2022 01:27 PM UTC

Hi Sarah, 

Thanks for the update. 

Query: “A problem that did not exist before and occurred on 19.4.0.54 is that when I click on the Clear Filter column, sometimes an error appears below.” 
 
We have faced the above issue “Exception throws on clicking clear icon” in our previous versions and we have fixed this issue internally and included it on previous Nuget Version(19.4.0.53). Kindly share below details about your query so that we will fix this issue and include it in our upcoming patch release. 

  • Share us the Grid code snippet.
  • Share us more details regarding the query/ Share us the exact scenario of the issue you have faced.
  • Share the video demonstration of the issue along with replication procedure.
  • If possible share us the simple issue reproduceable sample or try to reproduce the issue on the below sample

 
The above-requested details will be very helpful for us to validate the reported query at our end and provide the solution as early as possible. 

Regards, 
Monisha 


Loader.
Up arrow icon