Apr 10, 2012, 10:56 AM
[CLOSED] Concurrent loading in TabPanel
Is it possible to load multiple tabs simultaneously?
I'd like the user to wait only for the first tab while loading other tabs in background.
In an improved version, I'd like to load other tabs in background only after the first has finished loading.
I've tried to use a callback on the first tab to call secondTab.getUpdater().refresh() but with no success.
I'd like the user to wait only for the first tab while loading other tabs in background.
In an improved version, I'd like to load other tabs in background only after the first has finished loading.
I've tried to use a callback on the first tab to call secondTab.getUpdater().refresh() but with no success.
<%@ Page Language="C#" %>
<%@ Register assembly="Ext.Net" namespace="Ext.Net" tagprefix="ext" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
</head>
<body>
<script src="TestTabPanel.js" type="text/javascript"></script>
<form id="form1" runat="server">
<ext:ResourceManager runat="server" />
<ext:Viewport runat="server" Layout="FitLayout">
<Items>
<ext:Panel runat="server" Layout="FitLayout">
<Items>
<ext:TabPanel ID="tabContainer" runat="server" DeferredRender="false">
<Items>
<ext:Panel id="firstTab" runat="server" Title="Tab1">
<AutoLoad Mode="IFrame" Url="http://www.ext.net" ShowMask="true" />
</ext:Panel>
<ext:Panel id="secondTab" runat="server" Title="Tab2">
<AutoLoad Mode="IFrame" Url="http://forums.ext.net/" ShowMask="true" />
</ext:Panel>
</Items>
</ext:TabPanel>
</Items>
</ext:Panel>
</Items>
</ext:Viewport>
</form>
</body>
</html>
Last edited by Daniil; Apr 16, 2012 at 11:36 AM.
Reason: [CLOSED]