Is Filtered?

2 posts, 0 answers
  1. Mike Kacos
    Mike Kacos avatar
    28 posts
    Member since:
    Sep 2009

    Posted 20 Jun 2012 Link to this post

    Hi, I'm trying to give a visual indication to my users that a grid is filtered.  For example, below each grid we display the Total Count and the Filtered Count based on TotalItemCount and ItemCount respectively.  Often my users are forgetting they have a filter on, so I want to change the foreground color of the text of the Filtered Count to red when a filter is active.  Is there a property I can bind to which will just indicate if a filter is active or not?

    Thanks,
    -Mike  
  2. Mike Kacos
    Mike Kacos avatar
    28 posts
    Member since:
    Sep 2009

    Posted 28 Jun 2012 Link to this post

    Nevermind, I found a solution.  We extended the RadGridView and overrode the OnFiltered event.  In there we check for the count of the FilterDescriptors.  We then set a boolean dependency property (we named it IsFiltered).  Now I can bind to that property and display text or color to indicate a filter is active on the grid.  Hope this helps someone else.

    -Mike
Back to Top