I'm trying to build a dynamic 3 level tabstrip. Every tabstrip has data read from a DataSource and every tab in every tabstrip level has a tabstrip associated. Depending on the 1st level tab selected, the tabstrip's at second level might be different and depending on the 1st level tab selected, and 2nd level tab selected, a different tabstrip should be loaded.
the first 2 levels only have the tabstrip on the pageview associated to his tabs and only on the 3rd level it has some content ( some checkboxlist with some values obtained from 1st,2nd and 3rd level tabs selected.
The problem is that only 1st and 2nd level tabstrips show, the 3rd level tabstrip doesn't show at all
Here's what i have done :
- On the form design i only have the 1st level tabstrip and multipage
- on the code behind, on pageload (or init, i have tried both options) i have something like this:
the 3 subs here do the following steps:
bindTabStrip ( do the databind of the tabstrip)
bindMultiPage( read datatable and create n pageviews and add them to multipage)
bindViewid( set tab.pageview id = pageview.id)
BindTabStrip(level1TabsStrip, Level1DataTable)
For rootTabIndex = 0 To level1TabsStrip.Tabs.Count - 1
BindMultiPage(getLevel1Data, level1MultiPage)
BindViewIDs(level1TabsStrip, level1MultiPage)
.
For Each PV As PageView In level1MultiPage.PageViews
level2Multipage = New RadMultiPage
level2TabStrip = New RadTabStrip
level2TabStrip.MultiPageID = level2Multipage.ID
BindTabStrip(level2TabStrip, getLevel2Data)
BindMultiPage(getLevel2Data, level2Multipage)
BindViewIDs(level2TabStrip, level2Multipage)
PV.Controls.Add(level2TabStrip)
For Each PV2 As PageView In level2Multipage.PageViews
level3Multipage = New RadMultiPage
level3TabStrip = New RadTabStrip
level3TabStrip.MultiPageID = level3Multipage.ID
BindTabStrip(level3TabStrip, getLevel3Data)
BindMultiPage(getLevel3Data, level3Multipage)
BindViewIDs(level3TabStrip, level3Multipage)
PV2.Controls.Add(level3TabStrip)
Next
Next
Next
level1TabsStrip.SelectedIndex = 0