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

Select Child Tab

2 Answers 64 Views
TabStrip
This is a migrated thread and some comments may be shown as answers.
Cush
Top achievements
Rank 1
Cush asked on 27 Apr 2011, 11:46 AM
Hi All

I currently have a series of grids inside tabs, When the user clicks on a button this sets focus to the related Tab/Grid and opens a specific Radwindow for user to input data,

However i have added some child tabs lets say Child1 Child 2 Child 3 with a parent of Parent4 when i try to select Child2 as below

tabStrip.findTabByText('Child1').set_selected(true);

It will Select the parent4 tab but will not show the Child tabs below it, It does however show the correct pageview for Child1 below Parent4,

The only way i can get this to function correctly is as below
tabStrip.findTabByText('Parent4').set_selected(true);
tabStrip.findTabByText('Child1').set_selected(true);

My question: is there another way to select Child1 and show Parent4 and Child1 as selected.

Many Thanks

Regards

Cush

2 Answers, 1 is accepted

Sort by
0
Accepted
Cori
Top achievements
Rank 2
answered on 27 Apr 2011, 02:00 PM
Hello Cush,

To select the child, along with its parent, you can try this:

tabStrip.findTabByText("Child1").selectParents();

I hope that helps.
0
Cush
Top achievements
Rank 1
answered on 27 Apr 2011, 02:07 PM
Hi Cori

Thanks for that it worked a treat.

Regards

Cush
Tags
TabStrip
Asked by
Cush
Top achievements
Rank 1
Answers by
Cori
Top achievements
Rank 2
Cush
Top achievements
Rank 1
Share this question
or