Jul 06, 2015, 5:15 AM
TabPanel order with mix of local and dynamic tabs
Hi guys,
I've got a tabpanel with a local tab and a dynamically loaded tab; example here:
Any thoughts? I've tried using TabIndex and SetActiveTab() in a success handler.
Thanks.
I've got a tabpanel with a local tab and a dynamically loaded tab; example here:
Items.Add(new TabPanel()
{
TabPosition = Ext.Net.TabPosition.Bottom,
ID = "blahblahID",
Loader = new ComponentLoader()
{
Url = "/area/controller/getGridPanel",
Mode = LoadMode.Script
},
Items =
{
new TestGridPanel()
}
});
My problem is that the loaded panel seems to always be the second tab (makes sense I guess, since it is being loaded) and I can't seem to change that. The problem doesn't seem that important, but to reload the component loaded tab I refresh the tabpanel which fetches the grid again, and when I do this the active tab switches to first tab again (again, not a dealbreaker but the user may find this annoying if they are refreshing all the time).Any thoughts? I've tried using TabIndex and SetActiveTab() in a success handler.
Thanks.