controls gets re initialted when switching between pan

8 posts, 0 answers
  1. Shenbagaraj
    Shenbagaraj avatar
    9 posts
    Member since:
    Dec 2011

    Posted 20 Jan 2012 Link to this post

    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.
  2. Konstantina
    Admin
    Konstantina avatar
    2332 posts

    Posted 21 Jan 2012 Link to this post

    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 >>
  3. DevCraft banner
  4. Shenbagaraj
    Shenbagaraj avatar
    9 posts
    Member since:
    Dec 2011

    Posted 23 Jan 2012 Link to this post

    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">

     

  5. Konstantina
    Admin
    Konstantina avatar
    2332 posts

    Posted 26 Jan 2012 Link to this post

    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 >>
  6. Ryan
    Ryan avatar
    7 posts
    Member since:
    Jul 2011

    Posted 30 Jan 2012 Link to this post

    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
  7. Ryan
    Ryan avatar
    7 posts
    Member since:
    Jul 2011

    Posted 31 Jan 2012 Link to this post

    Can Telerik reproduce this?
    Thanks,
    Ryan
  8. Konstantina
    Admin
    Konstantina avatar
    2332 posts

    Posted 01 Feb 2012 Link to this post

    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 >>
  9. Ryan
    Ryan avatar
    7 posts
    Member since:
    Jul 2011

    Posted 01 Feb 2012 Link to this post

    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
Back to Top
DevCraft banner