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

Docking within tabs

2 Answers 65 Views
Docking
This is a migrated thread and some comments may be shown as answers.
Paul
Top achievements
Rank 1
Paul asked on 23 Jan 2012, 09:23 PM
I have created a UserControl which consists of the RadDocking control.  Within this I place the RadPaneGroups and subsequent RadPanes.  Each RadPane contains a View, to which a ViewModel is created.  The problem occurs when I place the upper most UserControl, with the RadDocking, in a tab.  The tabs are dynamically created very similar to your expample with RadTab.  Each time I switch tabs I see the Views being reinstantiated and in turn the ViewModel and Model.  When I remove the upper most UserControl, with the RadDocking control, this does not occur.  What is best practice of placing the RadDocking control within tabs without encountering this behavior?

Thank you

2 Answers, 1 is accepted

Sort by
0
Accepted
Miroslav Nedyalkov
Telerik team
answered on 24 Jan 2012, 10:22 AM
Hi,

Setting the IsContentPreserved property of the RadTabControl to true should prevent the RadDocking control from reloading. If this doesn't help, could you please prepare us a sample project that demonstrates the issue? This would help us to better understand what the problem is.

Regards,
Miroslav Nedyalkov
the Telerik team

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

0
Paul
Top achievements
Rank 1
answered on 24 Jan 2012, 03:06 PM
I replaced the WFP TabControl with RadTabControl and set the IsContentPreserved property as you advised.  This did solve my problem.

Thank you.
Tags
Docking
Asked by
Paul
Top achievements
Rank 1
Answers by
Miroslav Nedyalkov
Telerik team
Paul
Top achievements
Rank 1
Share this question
or