Dear Al,
Currently I'm building a Form which dynamicly renders all the properties for a object. Therefore I create RadTabStrip and MultiPage both programmaticly I can in the rendered html that everything is created, however I am unable to switch the pages using the tabstrip.
What's going wrong overhere?
Thanks in advance
Currently I'm building a Form which dynamicly renders all the properties for a object. Therefore I create RadTabStrip and MultiPage both programmaticly I can in the rendered html that everything is created, however I am unable to switch the pages using the tabstrip.
What's going wrong overhere?
Thanks in advance
// First create the required means
MultiPageStrip = new RadMultiPage() { ID = "Object_Form$MultiPageStrip", ClientIDMode = System.Web.UI.ClientIDMode.Static };
TabStrip = new RadTabStrip() { MultiPageID = "Object_Form$MultiPageStrip" };
// Now is the beautifull part, we are going to generate the controls, we can that easily using the describtor
foreach (Tab Tab in this.DataSource.MetaData.UserInterfaceDescriptor.Tabs)
{
RadPageView PageView = new RadPageView() { ID = "Object_Form$MultiPageStrip_Tab_" + TabStrip.Tabs.Count.ToString() };
RadTab RadTab = new RadTab(Tab.Name) { PageViewID = "Object_Form$MultiPageStrip_Tab_" + TabStrip.Tabs.Count.ToString() };
RenderTab(Tab, PageView);
MultiPageStrip.PageViews.Add(PageView);
TabStrip.Tabs.Add(RadTab);
}
// And add the create controls
TabStrip.SelectedIndex = 0;
MultiPageStrip.SelectedIndex = 0;
ControlPanel.Controls.Add(TabStrip); ControlPanel.Controls.Add(MultiPageStrip);