Improving your Filtering for Built-in Checkbox sample

3 posts, 1 answers
  1. Igor
    Igor avatar
    24 posts
    Member since:
    May 2013

    Posted 26 Mar 2015 Link to this post

    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. Answer
    Angel Petrov
    Admin
    Angel Petrov avatar
    1006 posts

    Posted 31 Mar 2015 Link to this post

    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.

     
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Igor
    Igor avatar
    24 posts
    Member since:
    May 2013

    Posted 31 Mar 2015 Link to this post

    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
Back to Top