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

Filtering cleared when switching tabs

4 Answers 120 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Pierre-Andre van Leeuwen
Top achievements
Rank 1
Pierre-Andre van Leeuwen asked on 21 Nov 2011, 10:22 AM
Hi

I have the same problem as this person: StackOverflow question. If you have a RadGridView inside a TabControl, the grid view will lose its filtering and sorting options when you switch to another tab and back.

Details:
  • .NET 4.0
  • RadControls version:  2011.2.920.40
  • The grid views are bound to ObservableCollections or ICollectionViewSource. The filtering is only performed by clicking on the filter button on the column header. No filtering is performed in code.
  • Everything is implemented using the MVVM pattern.

Regards
Pierre-Andre


4 Answers, 1 is accepted

Sort by
0
Greg
Top achievements
Rank 1
answered on 13 Jan 2012, 09:04 PM
I have this problem as well. In addition Sort order is also lost when switching away from and back to a tab containing a GridView in WPF/MVVM.

0
Vlad
Telerik team
answered on 16 Jan 2012, 08:22 AM
Hello,

 Do you get different behavior with standard WPF DataGrid?

Greetings,
Vlad
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

0
Adam
Top achievements
Rank 1
answered on 04 Nov 2014, 09:15 AM
try using this
Telerik.Windows.Data.QueryableCollectionView
as your itemsource list.

It should then retain your filters on tab-switch.
0
Adam
Top achievements
Rank 1
answered on 04 Nov 2014, 09:22 AM
scratch the above - I was being a numpty. sorry.
Tags
GridView
Asked by
Pierre-Andre van Leeuwen
Top achievements
Rank 1
Answers by
Greg
Top achievements
Rank 1
Vlad
Telerik team
Adam
Top achievements
Rank 1
Share this question
or