Child TabControl within TabControl: child selection not kept

3 posts, 1 answers
  1. Simon
    Simon avatar
    23 posts
    Member since:
    Apr 2012

    Posted 01 Jun 2012 Link to this post

    Hello all,

    I have a case where a 'parent' tab control contains a 'child' tab control in each of its tabs. So we have something like:

    PT1 (parent tab 1)
         -> CT1 (child tab 1)
         -> CT2
         -> CT3
    PT2 (parent tab 2)
         -> CT4
         -> CT5
         -> CT6 

    Say that in Parent Tab 1 (PT1), I select the second child tab (CT2). Then I move to PT2 and select any other child tab. When I return to PT1, I would expect my previous child tab selection (CT2) to be preserved. Instead, the child tab control is 'reset' to no selection.

    Is there a property to set so that 'child' user control states such as child controls are preserved when switching between tabs?

    My apologies, this question seems awfully complicated for such a simple case... it would be awesome if we could upload some projects to the forum for customer support to try out! :-)

    Thanks for your help,

  2. Answer
    Petar Mladenov
    Petar Mladenov avatar
    3154 posts

    Posted 04 Jun 2012 Link to this post

    Hi Simon,

     Could you please try to set IsContentPreserved  to True on every RadTabControl in your application and let us know if this helps? Thank you in advance.

    Kind regards,
    Petar Mladenov
    the Telerik team

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

  3. Simon
    Simon avatar
    23 posts
    Member since:
    Apr 2012

    Posted 04 Jun 2012 Link to this post

    I knew there had to be such a property and for some reason overlooked it several times... :-)

    It solved my problem right-away, thanks for your prompt answer.
Back to Top