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

Child TabControl within TabControl: child selection not kept

2 Answers 123 Views
TabControl
This is a migrated thread and some comments may be shown as answers.
Simon
Top achievements
Rank 1
Simon asked on 02 Jun 2012, 12:45 AM
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,

Simon

2 Answers, 1 is accepted

Sort by
0
Accepted
Petar Mladenov
Telerik team
answered on 04 Jun 2012, 08:17 AM
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 >>

0
Simon
Top achievements
Rank 1
answered on 04 Jun 2012, 03:17 PM
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.
Tags
TabControl
Asked by
Simon
Top achievements
Rank 1
Answers by
Petar Mladenov
Telerik team
Simon
Top achievements
Rank 1
Share this question
or