Aug 22, 2011, 2:42 PM
Adding 2 idetical tabs on the same TabPanel
Hi,
How can i add 2 identical tabs (same title,id) on the same Tab Panel if it is possible?
This one adds only once., not adding twice. Purpose of this thread is to open same pages twice or more and easily compare reports generated by different parameters.
<ext:Button ID="Button1" runat="server" Text="Add new tab" OnDirectClick="TestDirectEventHandler" />
How can i add 2 identical tabs (same title,id) on the same Tab Panel if it is possible?
This one adds only once., not adding twice. Purpose of this thread is to open same pages twice or more and easily compare reports generated by different parameters.
<ext:Button ID="Button1" runat="server" Text="Add new tab" OnDirectClick="TestDirectEventHandler" />
<script runat="server">
protected void TestDirectEventHandler(object sender, DirectEventArgs e)
{
var t = new Ext.Net.Panel()
{
Title = "New tab",
ID = "NewTabID",
Html = "Tab1's content",
Closable = true
};
t.AddTo(this.TabPanel1);
this.TabPanel1.SetActiveTab(t.ClientID);
}
</script>