Jun 18, 2009, 6:06 PM
Adding Tab using codebehind
Consider the following: I want to add a Tab to a TabPanel from codebehind. What do I do wrong in this example?
<ext:Button ID="btnBind" runat="server" >
<AjaxEvents>
<Click OnEvent="btnBind_Clicked">
</Click>
</AjaxEvents>
</ext:Button>
<br />
<ext:TabPanel ID="tabsCenterPanel" runat="server" Border="true" Height="600">
</ext:TabPanel>
protected void btnBind_Clicked(object sender, AjaxEventArgs e)
{
testTab = new Tab("t1", "Hello Tab");
tabsCenterPanel.Tabs.Add(testTab);
}