This is a migrated thread and some comments may be shown as answers.

Improving your Filtering for Built-in Checkbox sample

2 Answers 57 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Igor
Top achievements
Rank 2
Igor asked on 26 Mar 2015, 12:06 PM
Hello I used your documentation sample to develop a tri-state checkbox filter for boolean fields.
The problem with your sample is that every time a boolean filter is applyed (or cleared) all the other filters are reset.
Is there any way to improve your sample, so that when I clear the boolean filter, it is only removed from the current ones, without clearing all?

2 Answers, 1 is accepted

Sort by
0
Accepted
Angel Petrov
Telerik team
answered on 31 Mar 2015, 08:08 AM
Hello,

Indeed you can achieve the desired goal but for that purpose you will have to manually modify the filter expression of the MasterTableView. The idea here is to remove the bool filter from the expression using string operations. Have in mind that in such cases you should not remove the filters from the rest of the columns and should not set CurrentFilterFunction= GridKnownFunction.NoFilter and CurrentFilterValues=String.Empty.

Regards,
Angel Petrov
Telerik
 

See What's Next in App Development. Register for TelerikNEXT.

 
0
Igor
Top achievements
Rank 2
answered on 31 Mar 2015, 10:14 AM
Thanks for the answer.
I feared that should be done this way.
Too complicated. I'll use your solution... when my users will find this incongruency I'll be in Thailand on holiday
Tags
Grid
Asked by
Igor
Top achievements
Rank 2
Answers by
Angel Petrov
Telerik team
Igor
Top achievements
Rank 2
Share this question
or