Jan 29, 2013, 8:07 AM
[CLOSED] tabPanel reloadStore
Hi all,
I have a problem in reloading the store in a panel.
I have the following panel's architecture:
Tab Panel
In this tab, I have an "Add Button".
On AddButton's click, I add a new tab, called panel2, with the following code:
In this tab, I have a "Close Button".
On Close button's click, I want to close the panel2, and reload a store located in the panel 1.
To close the panel2, I use the following code:
In the v1.3, I use the following code to reload the store:
Best regards
I have a problem in reloading the store in a panel.
I have the following panel's architecture:
Tab Panel
<ext:TabPanel ID="tabPanelId" Width="960" runat="server" Height="599"
Padding="1">
<Items>
<ext:Panel ID="panel1" runat="server" Title="panel1"
Height="544">
<Loader Url="/PL/EmployerProfilePl/panel1.aspx"
Mode="Frame" runat="server">
<LoadMask ShowMask="true" Msg="laoding panel1">
</LoadMask>
</Loader>
</ext:Panel>
</Items>
</ext:TabPanel>
panel1In this tab, I have an "Add Button".
On AddButton's click, I add a new tab, called panel2, with the following code:
var addTab = function (tabId, url, title, entityTypeId, entityId, id) {
var tabPanel;
var panel;
tabPanel = tabPanelId;
panel = tabPanel.add({
id: tabId,
title: title,
closable: true,
loader: {
url: url,
renderer: "frame",
loadMask: {
showMask: true,
msg: "Loading " + title
},
scripts: true,
params: {
"entityTypeId": entityTypeId,
"entityId": entityId,
"id": id
}
}
});
tabPanel.setActiveTab(panel);
};
Panel2In this tab, I have a "Close Button".
On Close button's click, I want to close the panel2, and reload a store located in the panel 1.
To close the panel2, I use the following code:
tabPanel.closeTab('panel2');
The close tab is working, but the store does not reload.In the v1.3, I use the following code to reload the store:
panel1.getBody().store1.reload();
Thanks in advance.Best regards
Last edited by Daniil; Jan 30, 2013 at 10:30 AM.
Reason: [CLOSED]