Hi,
Context:
I am developing
a DataGrid component with a custom adapter.
In the DataGrid,
I add a custom button called “RAZ filters”. This button clears all searches,
groupings, filters, sorts, and focuses.I’m using
Blazor server in prerender mode. The Syncfusion NuGet is 19.1.0.59.
Problem:
Unfortunately,
I experience problems with the clear grouping functionality (called by “RAZ
filters” button). In some cases, it fails with System.InvalidCastException.
This fail only appears in some configurations of the dataGrid component.
The condition that seems mandatory to make this problem appears are:
- At
least one column has the parameter AutoFit equals true.
- The
parameter EnablePersistence of the grid equals false.
- The
parameter GridSelectionSettings of GridSelectionSettings equals true.
I attached an example that reproduce the problem. It is not the DataGrid
component I’m using in my project but a simplified version
Thanks for your help.
Best regards.
François
Attachment:
ClearGrouping_67c319df.zip