Oct 25, 2010, 3:17 PM
Refresh page (tabpanel)
Hi,
I use the next code to add new tabs (pages) in a tabpanel:
Regards and thank you in advance.
(Could you move this threat to Help Forum, please? I only can open new threaths in this forum and I don't know why. Thank you.)
I use the next code to add new tabs (pages) in a tabpanel:
<ext:Panel ID="pnlCodesAndTypes" runat="server" Title="Codes & Types" Collapsed="true" Collapsible="true" AutoHeight="true" Icon="Outline" >
<Body>
<ext:FitLayout ID="FitLayout2" runat="server">
<ext:TreePanel ID="TreePanel2" AutoScroll="true" EnableViewState="false" ContainerScroll="true"
UseArrows="true" RootVisible="false" Animate="false" BufferResize="true" runat="server"
Border="false" BodyBorder="false" EnableDrag="false" EnableDrop="false" >
<Root>
<ext:TreeNode Text="nodeCodesAndTypes" Expanded="true">
<Nodes>
<ext:TreeNode Text="CodesAndTypes" Expanded="true" Icon="BulletRight" >
<Nodes>
<ext:TreeNode Text="My page" Icon="BulletBlue" Href="MyPage.aspx" />
</Nodes>
</ext:TreeNode>
</Nodes>
</ext:TreeNode>
</Root>
<Listeners>
<Click Handler="if(node.attributes.href){e.stopEvent();loadPage(#{PortalTabPanel}, node);}" />
</Listeners>
</ext:TreePanel>
</ext:FitLayout>
</Body>
<AjaxEvents>
<Expand OnEvent="OnpnlCodesAndTypesExpand" />
</AjaxEvents>
</ext:Panel>
and<ext:TabPanel
ID="PortalTabPanel"
runat="server"
Title="TabPanel"
ActiveTabIndex="0"
Border="false"
EnableTabScroll="true"
BodyStyle="background-color: #4D778B; border: 1px solid #AABBCC; border-top: none;">
<Tabs>
<ext:Tab ID="Tab1" runat="server" Title="Home" BodyStyle="background-color: transparent;" >
<Body>
<ext:Portal ID="PortalAbaco" runat="server" Border="false" BodyStyle="background-color: transparent;">
<Body>
<center></center>
</Body>
</ext:Portal>
</Body>
</ext:Tab>
</Tabs>
</ext:TabPanel>
If I open Mypage.aspx clicing on the "My page" treepanel option, I close it and I open it again, the second time that I open the page it isn't reload again the content. What can I do to solve this problem? I couldn't find a solution and all pages(tabs) always show the content of the first time I opened them.Regards and thank you in advance.
(Could you move this threat to Help Forum, please? I only can open new threaths in this forum and I don't know why. Thank you.)