[CLOSED] Panel LoadContent

  1. #1

    [CLOSED] Panel LoadContent




    Hi it's a couple of days I'm experimenting a problem with Panel.LoadContent. Until a SVN Checkout it worked.


    The problem is the following:





    
    
    pnlAv.AutoLoad.Url = ResolveUrl(string.Format("~/StockAvailability.aspx?code={0}&Company={1}", ItemCode, Company));
    
    
    pnlAv.AutoLoad.Mode = LoadMode.IFrame;
    
    
    pnlAv.AutoLoad.NoCache = true;
    
    
    pnlAv.AutoLoad.ShowMask = true;
    
    
    pnlAv.LoadContent();







    (pnlAv is a Panel withing East panel of a border layout).


    When it worked, after LoadContent the panel started to load the page, and the rest of layout was usable.


    After SVN now all the page freeze until East panel has finish to load
    the page. I didn't make any changes to the page, so I'm wondering what
    could have changed!





    I tried with FF3.5 and IE 8.





    Thanks, Stefano
  2. #2

    RE: [CLOSED] Panel LoadContent

    Hi,

    Can you provide more details about "page
    freeze"? We need test sample which reproduces the issue

    Here is my test case. During iframe loading the page is responsible (label is updated, also i can focus any textfield)

    Main page
    <%@ Page Language="C#" %>
    <%@ Register Assembly="Ext.Net" Namespace="Ext.Net" TagPrefix="ext" %>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head runat="server">
        <title></title>
        
        <script runat="server">
            protected void LoadClick(object sender, DirectEventArgs e)
            {
                pnlAv.AutoLoad.Url = "Child.aspx";
                pnlAv.AutoLoad.Mode = LoadMode.IFrame;
                pnlAv.AutoLoad.NoCache = true;
                pnlAv.AutoLoad.ShowMask = true;
                pnlAv.LoadContent();            
            }
        </script>
    </head> 
    
    <body>
        <form id="form1" runat="server">
            <ext:ResourceManager id="rsmMain" runat="server">
            </ext:ResourceManager>
            
            <ext:ViewPort runat="server" Layout="Border">
                <Items>
                    <ext:Panel runat="server" Region="Center" Title="Center" >
                        <Content>
                            <ext:Button runat="server" Text="Load">
                                <DirectEvents>
                                    <Click OnEvent="LoadClick" />
                                </DirectEvents>
                            </ext:Button>
                            <ext:TextField runat="server" />
                            <ext:TextField runat="server" />
                            <ext:TextField runat="server" />
                            
                            <ext:Label ID="Label1" runat="server" />
    
                        </Content>
                    </ext:Panel>
                    
                    <ext:Panel ID="pnlAv" runat="server" Width="500" Title="East" Region="East" />
                </Items>
            </ext:ViewPort>
            
            <ext:TaskManager ID="TaskManager1" runat="server">
                <Tasks>
                    <ext:Task Interval="100" AutoRun="true">                   
                        <Listeners>
                            <Update Handler="#{Label1}.setText(new Date().dateFormat('H:i:s:u'));" />
                        </Listeners>    
                    </ext:Task>              
                </Tasks>
            </ext:TaskManager>
        </form>
    </body>
    </html>
    IFrame page
    <%@ Page Language="C#" %>
    
    <%@ Register assembly="Ext.Net" namespace="Ext.Net" tagprefix="ext" %>
    
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    
    <script runat="server">
        protected void Page_Load(object sender, EventArgs e)
        {
            System.Threading.Thread.Sleep(5000);
        }
    </script>
    
    <html xmlns="http://www.w3.org/1999/xhtml" >
    <head runat="server">
        <title></title>
    </head>
    <body>
        <p><a href="Child.aspx">Reload</a></p>
        <form id="form1" runat="server">
            <ext:ResourceManager ID="ResourceManager1" runat="server">
            </ext:ResourceManager>
            
            <ext:Button ID="Button1" runat="server" Text="Click Me" />
        </form>
    </body>
    </html>
  3. #3

    RE: [CLOSED] Panel LoadContent


    I've executed your code. It works perfectly, so I guess problem resides somewhere else.

    I'm going to investigate and report it asap.

    Sorry if I did bothered you!

    Stefano

Similar Threads

  1. Replies: 2
    Last Post: Apr 02, 2012, 8:03 PM
  2. Replies: 6
    Last Post: Aug 29, 2011, 4:54 PM
  3. centering in LoadContent
    By maxdiable in forum 1.x Help
    Replies: 0
    Last Post: Jul 07, 2009, 5:46 AM
  4. Tab - LoadContent -
    By Tbaseflug in forum 1.x Help
    Replies: 2
    Last Post: Jun 25, 2009, 12:21 PM
  5. [CLOSED] TabPanel loadContent Issue
    By Immobilmente in forum 1.x Legacy Premium Help
    Replies: 4
    Last Post: Jun 01, 2009, 1:03 PM

Posting Permissions