Grid : Default filter on CheckBoxList

1 Answer 15 Views
Checkbox Filter Grid
Quentin
Top achievements
Rank 1
Quentin asked on 08 May 2024, 01:59 PM | edited on 08 May 2024, 01:59 PM

Hello,

 

I have a grid filterable with one column with FilterMenuType.CheckBoxList. 

I initialize a defaut filter with OnStateInit which work fine. But when I change the filter by selecting "Select all", nothing is return. It only work when I clear the filter first.

I reproduce the issue here : https://blazorrepl.telerik.com/GokJaiFR56kNGYBW07

Am I doing something wrong with the default filter or is it a bug? I can't find anything related.

 

Thanks in advance

1 Answer, 1 is accepted

Sort by
0
Nansi
Telerik team
answered on 13 May 2024, 01:56 PM

Hi Quentin,

Thank you for the runnable code example.

The CompositeFilterDescriptors have a collection of FilterDescriptors and a LogicalOperator. The default LogicalOperator is And, which in the described case is not working. Please set the LogicalOperator to Or. I added it in the example and now the change in the filter is working as expected. Here is the updated REPL example.

Regards,
Nansi
Progress Telerik

Stay tuned by visiting our public roadmap and feedback portal pages! Or perhaps, if you are new to our Telerik family, check out our getting started resources!
Quentin
Top achievements
Rank 1
commented on 14 May 2024, 05:21 AM

Hi Nansi,

 

Tanks for the answer, it works fine now!

 

Kind regards,

Quentin

Tags
Checkbox Filter Grid
Asked by
Quentin
Top achievements
Rank 1
Answers by
Nansi
Telerik team
Share this question
or