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

Loosing Selection in CollectionViewSource

3 Answers 87 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Ryan
Top achievements
Rank 2
Ryan asked on 16 May 2011, 04:50 PM
I have an applicaion with 1 to many tabs that are in viewModel to view fashion with the ViewModels contained in a CollectionViewSource.  This works great for other controls that I can start an edit, switch tabs an retrun with edits in place.  The gridView is not maintaining selection, sorting or filtering (I believe because  it is reinitializing) when the tab it is contained on looses and regains focus.
The grid looses filters, sorting and selection.

3 Answers, 1 is accepted

Sort by
0
Milan
Telerik team
answered on 17 May 2011, 09:32 AM
Hi Ryan,

I would like to know if you are using our RatTabControl or the one that comes with the framework? In case you are using RadTabControl you could try setting IsContentPreserved to False to force the control to preserve tab content. 

Let me know if that resolves the issue. 


All the best,
Milan
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Ryan
Top achievements
Rank 2
answered on 17 May 2011, 01:10 PM
Sorry standard TabControl.  Is there a way to make it happen with the windows controls?
0
Milan
Telerik team
answered on 20 May 2011, 10:12 AM
Hi Ryan,

I believe that this cannot be done with the default controls. Replacing TabControl with RadTabControl should be quite easy. You could do this for the sake of figuring out if the issues really comes from TabControl. 


Best wishes,
Milan
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
GridView
Asked by
Ryan
Top achievements
Rank 2
Answers by
Milan
Telerik team
Ryan
Top achievements
Rank 2
Share this question
or