Column FilterChoiceCount Limit is not working

Hi,
I am testing this sample;
https://blazor.syncfusion.com/documentation/datagrid/excel-like-filter#customize-the-filter-choice-count

I have changed;

args.FilterChoiceCount = 2;
And expecting max 2 result in filter dialog. But result is more then this. Am i missing something?
Image_2188_1740828596957


2 Replies

PS Prathap Senthil Syncfusion Team March 3, 2025 06:55 PM UTC

Hi ,

Greetings from Syncfusion.

We have confirmed that this is a breaking issue and logged a defect report titled  “The grid FilterChoiceCount property fails to restrict the number of displayed distinct values in excel/checkbox filter dialog” This fix will be included in our weekly patch release, which is expected to be rolled out on March 11th, 2025. You can now track the status of your request, review the proposed resolution timeline, and contact us for any further inquiries through this link.    
https://www.syncfusion.com/feedback/65918/the-grid-filterchoicecount-property-fails-to-restrict-the-number-of-displayed


Disclaimer: “Inclusion of this solution in the weekly release may change due to other factors including but not limited to QA checks and works reprioritization”

We will get back to you once the release is rolled out. Thanks for your understanding.


Regards,
Prathap Senthil



PS Prathap Senthil Syncfusion Team March 11, 2025 10:51 AM UTC

Thanks for your patience,

We are glad to announce that, we have included the fix for the issue  “The grid FilterChoiceCount property fails to restrict the number of displayed distinct values in excel/checkbox filter dialog.” in our 28.2.11 release.  So please upgrade to our latest version of Syncfusion NuGet package to resolve the reported issue. Please find the NuGet package for the latest fixes and features below.


NuGet : https://www.nuget.org/packages/Syncfusion.Blazor.Grid

Root cause : Previously, we had OnActionBegin and OnActionComplete events for handling the beginning and completion of grid actions. Later, we separated each action based on individual features like filtering, grouping, and sorting. When a filtering action occurs, it processes based on the corresponding arguments. In this issue, the FilterChoiceCount and customFilterData were being updated only when the OnActionBegin event was triggered. This caused a problem where, if the event was not triggered as expected, these values were not correctly assigned, leading to incorrect filtering behavior in the Excel/checkbox filter dialog.

Action Taken: The solution ensures that whenever OnActionBegin or any filtering-related event is triggered, both FilterChoiceCount and customFilterData are properly updated. This is achieved by checking if FilterChoiceCount has a valid value from the event arguments; if not, it falls back to the provided filterChoiceCount parameter.


Loader.
Up arrow icon