[CLOSED] AutoLoad - URL not rendered.

  1. #1

    [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

    <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]
  2. #2
    Hi,

    You have to call LoadContent for the panel
    Please see the following sample
    https://examples1.ext.net/#/Panel/Basic/AutoLoad/
  3. #3
    Hi,

    Yes, these properties make sense during DirectEvent only if you call .LoadContent() after changing them.
  4. #4
    Thanks both. I knew it would be something straight forward!

Similar Threads

  1. [CLOSED] [1.2] menu not rendered
    By nhg_itd in forum 1.x Legacy Premium Help
    Replies: 8
    Last Post: Jul 06, 2012, 1:50 AM
  2. [CLOSED] [0.8.2] ComboBox rendered in IE
    By FVNoel in forum 1.x Legacy Premium Help
    Replies: 4
    Last Post: Mar 31, 2010, 4:18 AM
  3. [CLOSED] [1.0] Remove a rendered panel
    By ljankowski in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: Mar 21, 2010, 11:53 PM
  4. [CLOSED] [0.8.2] ComboBox rendered issues
    By FVNoel in forum 1.x Legacy Premium Help
    Replies: 4
    Last Post: Jan 18, 2010, 2:34 PM
  5. [CLOSED] Can a Panel be rendered as a ?
    By randy85253 in forum 1.x Legacy Premium Help
    Replies: 9
    Last Post: Nov 09, 2009, 12:54 PM

Posting Permissions