Posted on Jun 19, 2009
(permalink)
Hello rami,
Even I was in need of the same tabstrip layout as you required. Parent tabs aligned horizontally and child tabs vertically... I tried creating a new tabstrip with the child tabs when the parent tab was clicked.... It worked out fine.
In my case, I wanted the second level of child tabs in Vertical alignment.
- First, get the number of child tabs for a parent tab, using Count.
- Second create a new tabstrip with number of tabs set dynamically (from previous point)
- Create a new Radtabstrip in the design view with name RadTabStrip2 and set "Orientation ="VerticalLeft".
public void tab1click(object sender, RadTabStripEventArgs e)
{
int childtabs = e.Tab.Tabs.Count; // gets the number of childtabs for the currently selected parent tab)
RadTabStrip2.Tabs.Clear();
int level = e.Tab.Level; //
if (level == 1)
{
foreach (RadTab tab in e.Tab.Tabs)
{
RadTab rootTab = new RadTab();
RadTabStrip2.Tabs.Add(rootTab);
rootTab.Text = tab.Text;
}
}
}
Hope this helps!!!!
One problem I face is, eventhough the second level of tabs appear in a different tabstrip, I am not able to hide the final level tabs in the parent Radtabstrip. If you have found the solution, please let me know!
Sylvia