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

[Solved] How do I capture the filter settings for a column

1 Answer 101 Views
Grid for XAML
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Pat
Top achievements
Rank 1
Pat asked on 21 Aug 2013, 04:01 PM
When a user clicks on the filter button and filters the grid, I need to capture the details of the filter that has been applied i.e. The value and operation for the first filter control and second filter control as well as the join operator. I cannot see a way to obtain that info which I need to enable me to restore the grid to the same state when the app is resumed. Ideally I would capture it after the filter operation but at least capture it when the app is suspending.

I can see how to restore the state but not how to capture it.

1 Answer, 1 is accepted

Sort by
0
Ivaylo Gergov
Telerik team
answered on 22 Aug 2013, 01:13 PM
Hello Pat,

When filtering has been applied through the Filtering UI, the RadDataGrid adds filter descriptors to its RadDataGrid.FilterDescriptors observable collection. In this case, you can handle the RadDataGrid.FilterDescriptors.CollectionChanged event and get the details that you need through the NotifyCollectionChangedEventArgs.NewItems property.

I hope this helps. Let me know should you have any further questions.


Regards,
Ivaylo Gergov
Telerik

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Tags
Grid for XAML
Asked by
Pat
Top achievements
Rank 1
Answers by
Ivaylo Gergov
Telerik team
Share this question
or