Aug 02, 2011, 5:18 PM
[CLOSED] TabStrip / TabPanel When adding new panel (IFrame) they stop loading another tab.
Hey,
I have a Tab Strip which on page load has a default tab which is uncloseable this tab has a list of links. Upon clicking a link i call addTab() which adds a tab (Tab.A) to the control everything is fine the page takes (5-10sec loaded) if I click a diff link i call addTab() which adds a tab (Tab.B) to the control and focus is set to Tab.B. If i click on (Tab.A) I notice the page stopped loading images failed etc... the scroll location has been reset. but (Tab.B) loaded fine.
each tab i add has a unique ID/ unique URL and i'm auto loading mode is set to 'iframe'
I am using the latest version of Ext.net from the SVN as of last week.
this is the listener FN i'm using for the links
Any Idea?
I have a Tab Strip which on page load has a default tab which is uncloseable this tab has a list of links. Upon clicking a link i call addTab() which adds a tab (Tab.A) to the control everything is fine the page takes (5-10sec loaded) if I click a diff link i call addTab() which adds a tab (Tab.B) to the control and focus is set to Tab.B. If i click on (Tab.A) I notice the page stopped loading images failed etc... the scroll location has been reset. but (Tab.B) loaded fine.
each tab i add has a unique ID/ unique URL and i'm auto loading mode is set to 'iframe'
I am using the latest version of Ext.net from the SVN as of last week.
this is the listener FN i'm using for the links
var addNewTab = function(tabId, autoLoadObject, stripId, stripTabTip, stripTitle) {
var tab = getTabStrip().getComponent(stripId);
if (!tab) {
window.Ext.net.ResourceMgr.destroyCmp(tabId);
var pnl = new Ext.Panel({
id: tabId,
xtype: "panel",
layout: "fit",
autoLoad: autoLoadObject,
border: false,
header: false,
listeners: {
beforetabclose: {
fn: onBeforeTabClose
}
}
}
);
getPlaceHolder().addAndDoLayout(pnl);
tab = getTabStrip().add({
id: stripId,
actionItem: tabId,
title: stripTitle,
tabTip: stripTabTip,
closable: true,
ph: pnl
});
pnl.tb = tab;
}
getTabStrip().setActiveTab(tab); <- possible issue?
};
FYI - I'm a premium member but waiting for my credentials from my colleagueAny Idea?
Last edited by Daniil; Aug 02, 2011 at 7:29 PM.
Reason: [CLOSED]