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

Turning off virtualization when bound to tab control items source

2 Answers 426 Views
TabControl
This is a migrated thread and some comments may be shown as answers.
Igor Stefanovic
Top achievements
Rank 1
Igor Stefanovic asked on 27 May 2011, 10:51 PM


I am using tab control in main window to dynamically load content in tab items. I am doing this by binding collection of my page view models to the items source of the tab control. Everything works fine except it seams like view of my page models is reloading each time I select another tab and then return to one I just left. I suppose this is related to virtualization.

Problem with this is that switching tabs can be slow or unresponsive and also all property changes on the view not bind to view model are lost when you switch tab.

Is it possible to change this behavior and make tab content static? 

2 Answers, 1 is accepted

Sort by
0
Accepted
Kiril Stanoev
Telerik team
answered on 28 May 2011, 08:59 AM
Hello Igor,

We had such requests before so we introduced a new property called IsContentPreserved. Please take a look at this help article for further information and let me know if you encounter any problems.

Regards,
Kiril Stanoev
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
Igor Stefanovic
Top achievements
Rank 1
answered on 28 May 2011, 10:07 AM
Just what I need. Thanks Kiril.
Tags
TabControl
Asked by
Igor Stefanovic
Top achievements
Rank 1
Answers by
Kiril Stanoev
Telerik team
Igor Stefanovic
Top achievements
Rank 1
Share this question
or