Hello,

When a close a tab it gives me the next error on Firebug: "TypeError: d.tab is undefined".

Here is a small part of my code:

- first I have a TabPanel with a Panel inside:


Html.X().Viewport()
.Layout(LayoutType.Anchor)
.Items(
X.TabPanel()
.Layout(LayoutType.Anchor)
.AnchorHorizontal("100%")
.AnchorVertical("100%")
.Items(
X.Panel()
...

- then when I press a button I create a new tab from the server side like this:

var result = new Ext.Net.MVC.PartialViewResult
{
ViewName = "EditContentClassification",
ContainerId = containerId,
RenderMode = RenderMode.AddTo,
Model = clsfConfig
};

var tabPanel = this.GetCmp<TabPanel>(containerId);

tabPanel.SetLastTabAsActive();

return result;

where the containerId is the id of the previous TabPanel

- in the view "EditContentClassification" I have a new TabPanel with one Panel inside:

X.TabPanel()
.Layout(LayoutType.Anchor)
.Closable(true)
.AnchorHorizontal("100%")
.AnchorVertical("100%")
.Items(
Html.X().Panel()
...

- when I press a button I open a new tab in this last TabPanel from the server:

var result = new Ext.Net.MVC.PartialViewResult
{
ViewName = "EditEntity",
ContainerId = containerId,
RenderMode = RenderMode.AddTo,
Model = entity
};

var tabPanel = this.GetCmp<TabPanel>(containerId);

tabPanel.SetLastTabAsActive();

return result;

where the containerId is the second TabPanel.


The error appears when I close the first dinamically added tab(the one containing the view "EditContentClassification").

I'm using Ext.Net MVC 2.5.

Thanks.