Jun 22, 2011, 1:18 PM
[CLOSED] AutoLoad - URL not rendered.
Hi, I'm using RC2 and am I have a problem with AutoLoad. The URL isn't being rendered after specifying the URL via a DirectEvent. I've provided code highlighting the issue below. I have managed to make the code work if I remove the viewport and use the Update method of the panel but the Update method generates 'The Lazy control (panel2) can not be updated.' exception when used with a panel nested inside a viewport.
Any help would be magic.
Thanks,
Gav
Any help would be magic.
Thanks,
Gav
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
<script runat="server">
Protected Sub click(sender As Object, e As Ext.Net.DirectEventArgs)
panel2.AutoLoad.Url = "http://www.google.com"
panel2.AutoLoad.ShowMask = True
panel2.AutoLoad.Mode = Ext.Net.LoadMode.IFrame
End Sub
</script>
</head>
<body>
<form id="form1" runat="server">
<div>
<ext:ResourceManager ID="rm" runat="server" />
<ext:Viewport ID="vp" runat="server" Layout="border">
<Items>
<ext:Panel ID="panel1" runat="server" Collapsible="false" Region="Center"
Split="true" Header="false" Title="Messages">
<Items>
<ext:Button ID="Button1" runat="server" Text="Submit">
<DirectEvents>
<Click OnEvent="click" />
</DirectEvents>
</ext:Button>
</Items>
</ext:Panel>
<ext:Panel ID="panel2" runat="server" Collapsible="true" Height="200" Region="South"
Split="true" Title="Preview">
<Items>
</Items>
</ext:Panel>
</Items>
</ext:Viewport>
</div>
</form>
</body>
</html>
Last edited by Daniil; Jun 22, 2011 at 1:45 PM.
Reason: [CLOSED]