Display the data with group type in Checkbox Filter list for TextFilter in SfDataGrid - From 182950

I am looking for the same kind of functionality, but just a bit simpler, maybe...?

Is it possible to create filter like this? In my case I only have three items, of which the last two are belonging to a group called "Variable".



Thank you in advance!


2 Replies

VS Vijayarasan Sivanandham Syncfusion Team June 28, 2023 05:11 PM UTC

Erik,

Currently, we are checking possibilities to achieve your requirement via a workaround. We will update you with further details on Jun 30, 2023.



VS Vijayarasan Sivanandham Syncfusion Team June 30, 2023 02:39 PM UTC

Erik,

We have checked the feasibility to achieve your requirement. SfDataGrid does not contain the direct support to achieve your requirement “Display the data with group type in Checkbox Filter list for TextFilter in SfDataGrid”.

However, we have tried to achieve your requirement through the workaround. For this, we have customized the mentioned templates TreeGridExpanderCell, and PART_ItemsControl in CheckboxFilterControl. And customize the filter logic based on your requirement by using FilterItemsPopulated and FilterChanging events.

UG Link:
https://help.syncfusion.com/wpf/datagrid/filtering#filterchanging-event

https://help.syncfusion.com/wpf/datagrid/filtering#filteritemspopulated-event

https://help.syncfusion.com/wpf/datagrid/filtering#functionality-customization

Find the sample demo in the attachment.

Note: This is not a recommended way. It is just a workaround to achieve your requirement with some limitations.


Attachment: SfDataGridDemo_43bfa7fb.zip

Loader.
Up arrow icon