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

Filter descriptor removal event

1 Answer 147 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Rob
Top achievements
Rank 1
Iron
Iron
Rob asked on 14 Oct 2013, 06:38 PM
Hi,

I am using the filtered event to catch a filter being applied to the grid successfully. I am using your GridViewHeaderMenu example and i'm finding that clearing down filterdescriptors doesn't fire the same filtered event? Should it? I guess not. In which case which event should I subscribe to to be notified that the filter descriptors collection has been cleared?

Many thanks.

1 Answer, 1 is accepted

Sort by
0
Rossen Hristov
Telerik team
answered on 15 Oct 2013, 06:11 AM
Hi,

The Filtering and Filtered events are legacy events which we keep just for backwards compatibility.

If you want to detect that the FilterDescriptors collection has been cleared, you can attach to RadGridView.FilterDescriptors.CollectionChanged and listen for an event with Action=Reset. You can of course also check whether RadGridView.FilterDescriptors.Count is zero.

I hope this helps.

Regards,
Rossen Hristov
Telerik
TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WPF.
Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
Sign up for Free application insights >>
Tags
GridView
Asked by
Rob
Top achievements
Rank 1
Iron
Iron
Answers by
Rossen Hristov
Telerik team
Share this question
or