Hello,
I have a TabStrip with a RadMultiPage that is loaded dynamically based on a table in my database. This TabStrip can consist of three levels of tabs (parent, middle-child, and bottom-child).
Here's the code that generates the tabs:
Here's the HTML for the TabStrip:
The "filePath" is a link to user control pages that will be displayed when the user clicks on a tab.
I'm trying to figure out how to load the user control content in these two scenarios:
1- When the tab (page) first loads I want the content of its user control be displayed automatically. Since the TabStrip is dynamically created the name and value of this tab could be different.
2- When the user clicks on subsequent tabs I want to display the content (user control page) of the first child tab (this could either be a child on the 2nd level or a child on the 3rd level. The tab levels are also dynamic, and depends of the content of the table in the database). I know how to display the content when the user clicks on a tab that has no children.
Any help will be very much appreciated. I am a new Telerik user, and I have not been able to figure out how to do this on my own. Thanks.
I have a TabStrip with a RadMultiPage that is loaded dynamically based on a table in my database. This TabStrip can consist of three levels of tabs (parent, middle-child, and bottom-child).
Here's the code that generates the tabs:
if (!IsPostBack){ rtabstripTabs.DataFieldID = "tabID"; rtabstripTabs.DataFieldParentID = "parentTabId"; rtabstripTabs.DataTextField = "tabLabel"; rtabstripTabs.DataValueField = "filePath"; rtabstripTabs.DataSource = tabs; rtabstripTabs.DataBind();}Here's the HTML for the TabStrip:
<telerik:RadTabStrip ID="rtabstripTabs" runat="server" OnTabClick="rtabstripTabs_TabClick" MultiPageID="rmultipageUserContol" EnableEmbeddedSkins="False"></telerik:RadTabStrip><telerik:RadMultiPage ID="rmultipageUserContol" runat="server"> <telerik:RadPageView runat="server" ID="rpageviewUserControl"> </telerik:RadPageView></telerik:RadMultiPage>The "filePath" is a link to user control pages that will be displayed when the user clicks on a tab.
I'm trying to figure out how to load the user control content in these two scenarios:
1- When the tab (page) first loads I want the content of its user control be displayed automatically. Since the TabStrip is dynamically created the name and value of this tab could be different.
2- When the user clicks on subsequent tabs I want to display the content (user control page) of the first child tab (this could either be a child on the 2nd level or a child on the 3rd level. The tab levels are also dynamic, and depends of the content of the table in the database). I know how to display the content when the user clicks on a tab that has no children.
Any help will be very much appreciated. I am a new Telerik user, and I have not been able to figure out how to do this on my own. Thanks.
