Mar 02, 2011, 10:55 PM
Problems adding tab to tabpanel
Class diagram for my viewport
I have created a nice layout in EXT .net but I am having problems trying to add more than one tab.
Inside my formtree menu i have a direct event that calls this method
First edit click
2nd edit click showing 2nd tab
2nd edit click showing 1st tab
In my FormTab Class i am using linq to set the data controls
I have created a nice layout in EXT .net but I am having problems trying to add more than one tab.
Inside my formtree menu i have a direct event that calls this method
void editFormClick_Event(object sender, DirectEventArgs e)
{
string nodeID = e.ExtraParams["ids"];
if (nodeID.Contains("|"))
{
Guid id = Guid.Parse(nodeID.Split(char.Parse("|"))[1]);
FormTab tb = new FormTab(id);
tb.BindData();
tb.Render(this.MainFormTabPanel);
if (this.MainFormTabPanel.Items.Where(f => ClientID == tb.ClientID).Count() == 0)
{
tb.AddTo(this.MainFormTabPanel);
this.MainFormTabPanel.SetActiveTab(tb.ClientID);
}
}
}
I have no javascript to support adding the tab. I don't know if that is needed.First edit click
2nd edit click showing 2nd tab
2nd edit click showing 1st tab
In my FormTab Class i am using linq to set the data controls