Oct 31, 2012, 6:33 PM
[CLOSED] Problem with autoloading inner panel of tab
I have a user control that I'm trying to embed in a tab panel. The user control is basically just a panel that autoloads a page. If I squash this into a single page and remove the extraneous panel, it seems to work, but this way, it doesn't. Here's a sample that illustrates it.
<script runat="server">
Protected Sub TheButton_Click(sender As Object, e As DirectEventArgs)
With ThePanel.AutoLoad
.Url = "http://google.com"
.Mode = LoadMode.IFrame
.ShowMask = True
.NoCache = True
End With
Tabs.SetActiveTab(TheTab)
End Sub
</script>
<ext:TabPanel ID="Tabs" runat="server">
<Items>
<ext:Panel runat="server" Title="First Tab">
<TopBar>
<ext:Toolbar runat="server">
<Items>
<ext:Button runat="server" Text="Setup AutoLoad Tab" OnDirectClick="TheButton_Click" />
</Items>
</ext:Toolbar>
</TopBar>
</ext:Panel>
<ext:Panel ID="TheTab" runat="server" Title="AutoLoad Tab" Layout="FitLayout">
<Content>
<!-- This is where the user control is -->
<ext:FitLayout runat="server">
<Items>
<ext:Panel ID="ThePanel" runat="server" Layout="FitLayout" AutoScroll="true" />
</Items>
</ext:FitLayout>
</Content>
</ext:Panel>
</Items>
</ext:TabPanel>
Last edited by Daniil; Nov 05, 2012 at 3:29 PM.
Reason: [CLOSED]