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

controls gets re initialted when switching between pan

7 Answers 108 Views
Docking
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Shenbagaraj
Top achievements
Rank 1
Shenbagaraj asked on 20 Jan 2012, 07:57 AM
Im using RadpaneGroup .. When im swithching between the pan , the  user controls inside is gets re initiated and all the controls gets refreshed whenever  switch between pan..  how to avoid this ..  is there any property available to control  or any other way to avoid this.

7 Answers, 1 is accepted

Sort by
0
Konstantina
Telerik team
answered on 21 Jan 2012, 03:41 PM
Hello,

You can set the IsContentPreserved property of the PaneGroup in order to stop re-loading of the content of the RadPane.

All the best,
Konstantina
the Telerik team
Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>
0
Shenbagaraj
Top achievements
Rank 1
answered on 23 Jan 2012, 09:46 AM
When i use IsContentPreserved  the values of combobox and for other contrls is binding from context..   how to control, controls getting reloaded..

<

telerik:RadPaneGroup Name="RadPaneGroupMain" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" TabStripPlacement="Top" TabNavigation="Local" TabOrientation="Horizontal" Style="{StaticResource JobRequestContainerRadPaneGroupStyle}" local:PaneGroupExtensions.ItemsSource="{Binding InnerPanes}" local:PaneGroupExtensions.ItemTitleDisplayMemberPath="Header" IsContentPreserved="True">

 

0
Konstantina
Telerik team
answered on 26 Jan 2012, 10:02 AM
Hi,

The IsContentPreserved works only when you switch between the panes in a PaneGroup. If you drag out a pane, then the property is not working.

Regards,
Konstantina
the Telerik team
Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>
0
Ryan
Top achievements
Rank 1
answered on 30 Jan 2012, 03:58 PM
Hello,
I am having the same issue with version 2011.3.1220.1040.
After switching panes inside the same PaneGroup with IsContentPreserved set to true, my user controls still unload.
This causes a 1.5 second delay from when the user clicks the tab, to when the tab is actually switched and rendered.

Thanks,
Ryan
0
Ryan
Top achievements
Rank 1
answered on 31 Jan 2012, 05:59 PM
Can Telerik reproduce this?
Thanks,
Ryan
0
Konstantina
Telerik team
answered on 01 Feb 2012, 01:00 PM
Hi Ryan,

I tried to reproduce the issue, but to no avail. Could you please send us your project simplified, so that we can run it here locally and debug it. In that way we will be able to track down the source of the issue and provide you with solution.

Looking forward to your reply.

Kind regards,
Konstantina
the Telerik team
Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>
0
Ryan
Top achievements
Rank 1
answered on 01 Feb 2012, 07:00 PM
Hi Konstantina,
I have sumbitted a support ticket with the repro attached.

It seems the issue is directly related to using the LoadLayout Method with the IsContentPreserved property.
They don't seem to play well together.

Let me know what you think,
Ryan
Tags
Docking
Asked by
Shenbagaraj
Top achievements
Rank 1
Answers by
Konstantina
Telerik team
Shenbagaraj
Top achievements
Rank 1
Ryan
Top achievements
Rank 1
Share this question
or