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

Is Filtered?

1 Answer 70 Views
GridView
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Mike Kacos
Top achievements
Rank 1
Mike Kacos asked on 20 Jun 2012, 08:00 PM
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  

1 Answer, 1 is accepted

Sort by
0
Mike Kacos
Top achievements
Rank 1
answered on 28 Jun 2012, 01:28 PM
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
Tags
GridView
Asked by
Mike Kacos
Top achievements
Rank 1
Answers by
Mike Kacos
Top achievements
Rank 1
Share this question
or