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?
|
<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> |
|
|
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
|
<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> |
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
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
Hi Monisha Saravanan,
I have a Community license. Can I have a License key for the latest version?
Thank
|
Syncfusion.Licensing.SyncfusionLicenseProvider.RegisterLicense("YOUR LICENSE KEY"); |
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
Hi Monisha Saravanan,
I downloaded version 19.4.0.54 but the bug has not been fixed.
Thank you
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