Hi, i'm trying to create a tabbed file browser. When i click on a treeview i want to add a tab to the tab control.
When i use the panel.AddTo() method it works, but the Items collection of the tab control does not change, and on the next request it reverts to the initial state.

Here is the code i have:

 private void VerifyFileOpened(string filepath)
 {
            var existingTab = PagesTabPanel.Items.FirstOrDefault(t => t.Attributes["filepath"] == filepath);
            if (existingTab == null)
            {
                Ext.Net.Panel pnl = new Ext.Net.Panel();
                pnl.Title = Path.GetFileNameWithoutExtension(filepath);
                pnl.TabTip = filepath;
                pnl.Attributes.Add("filepath", filepath);

                Ext.Net.Panel pnl2 = new Ext.Net.Panel();
                pnl2.AutoLoad.Url = "http://www.microsoft.com";
                pnl2.AutoLoad.Mode = LoadMode.IFrame;
                pnl.Items.Add(pnl2);

                pnl.Closable = true;
                pnl.Layout = "Fit";
                pnl.AddTo(PagesTabPanel);
                PagesTabPanel.Items.Add(pnl);
            }
}
I'm not sure if this is a bug or if i'm missing something.

Thanks,
-Alon.