Values assigned to 'args.CheckboxListData' in the 'CheckboxFilterSearching' handler are not reflected in the UI

Values assigned to `args.CheckboxListData` in the `CheckboxFilterSearching` handler are not reflected in the UI.

```xml
<SfGrid TValue="ItemType" AllowFiltering=true DataSource="Items">
<GridFilterSettings Type="FilterType.Excel" />
<GridEvents TValue="ItemType"
FilterDialogOpening="OnFilterDialogOpening"
CheckboxFilterSearching="OnCheckboxFilterSearching">
GridEvents>
SfGrid>
```

```cs
public async Task OnFilterDialogOpening(FilterDialogOpeningEventArgs args) {
ItemType[] items = fetchItems(..., args);
args.CheckboxListData = items; // This assignment is reflected in the UX (i.e., the column's Excel-like filter checkbox list)
}

public void OnCheckboxFilterSearching(CheckboxFilterSearchingEventArgs args) {
// `args.CheckboxListData` is null here. I.e., the value assigned to `args.CheckboxListData` in `OnFilterDialogOpening(...)` is not
passed in here.
ItemType[] items = fetchItems(..., args);
args.CheckboxListData = items; // This assignment is not reflected in the UX (i.e., the column's Excel-like filter checkbox list)
// The UX is not updated and furthermore calling StateHasChanged() also doesn't trigger the UX update
}
```

To observe this issue, enter a valid search character in a grid column's filter search box. The checkbox list disappears
and `No Matches Found` is displayed. Adding `StateHasChanged();` as the final line of `OnCheckboxFilterSearching` has no effect. How does one trigger the filter dialog UX to refresh its checkbox list with the values provided via the args.CheckboxListData = items
assignment?


2 Replies

PS Prathap Senthil Syncfusion Team December 27, 2023 10:24 AM UTC

Hi Calvin,

We have considered an issue and logged the defect report “Values assigned to 'args.CheckboxListData' in the event 'CheckboxFilterSearching' handler are not reflected in the UI for the same. Thank you for taking the time to report this issue and helping us to improve our product. At Syncfusion, we are committed to fixing all validated defects (subject to technological feasibility and Product Development Life Cycle) and this fix will be included in our upcoming patch release.

You can now track the current status of your request, review the proposed resolution timeline, and contact us for any further inquiries through this feedback link.       

https://www.syncfusion.com/feedback/49536/values-assigned-to-args-checkboxlistdata-in-the-event-checkboxfiltersearching

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”


Until then we appreciate your patience.


Regards,
Prathap S



PS Prathap Senthil Syncfusion Team February 6, 2024 01:41 PM UTC

Hi Calvin,


Thanks for your patience,

We are glad to announce that, we have included the fix for the reported issue “Values assigned to 'args.CheckboxListData' in the event 'CheckboxFilterSearching' handler are not reflected in the UI “ in our 24.2.4 release.  So please upgrade to our latest version of Syncfusion NuGet package to resolve the reported issue. Please find the NuGet package for latest fixes and features from below.


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

We thank you for your support and appreciate your patience in waiting for this release.


Regards,
Prathap S


Loader.
Up arrow icon