Hi! Today I downloaded the toolkit, now i want to create a tabstrip only using c# code.
i tried following:
But nothing is shown on the page, can somebody help me. I would like to dynamically create a tabstrip in an asp placeholder. I don't want any code written in asp for this control.
regards
!nst!nct
i tried following:
protected void Page_Load(object sender, EventArgs e)<br> {<br> RadTabStrip strip = new RadTabStrip();<br> RadTab tab1 = new RadTab();<br> tab1.Text = "Tab2";<br> RadTab tab2 = new RadTab();<br> tab1.Text = "Tab1";<br> strip.Tabs.Add(tab1);<br> strip.Tabs.Add(tab2);<br> RadPageView view = new RadPageView();<br> view.ID = "Customer Data";<br> RadMultiPage mpage = new RadMultiPage();<br> mpage.ID = "MPage1";<br> mpage.PageViewCreated += MultiPage_PageViewCreated;<br> mpage.PageViews.Add(view);<br> strip.MultiPageID = "MPage1";<br> DynHolder.Controls.Add(mpage);<br><br><br><br> }<br> protected void MultiPage_PageViewCreated(object sender, RadMultiPageEventArgs e)<br> {<br> RadComboBox box = new RadComboBox();<br> e.PageView.Controls.Add(box);<br> } |
But nothing is shown on the page, can somebody help me. I would like to dynamically create a tabstrip in an asp placeholder. I don't want any code written in asp for this control.
regards
!nst!nct