[CLOSED] How to load a page in a panel when the main page is loaded for the first time?

  1. #1

    [CLOSED] How to load a page in a panel when the main page is loaded for the first time?

    I have the following code to load a page in a panel when the main page is loaded for the first time, but it does not work.

    Could you tell me please what I am doing wrong?

    <ext:Panel ID="Panel2" runat="server" Height="400" Border="false" AutoScroll="true">
        <Content>
            <div id="content">
            
    
        </Content>
        <Listeners>
            <Activate Handler="#{Panel2}.load({url: './DoctorNedOffice.aspx', mode:'iframe'});" />
        </Listeners>
    </ext:Panel>
  2. #2

    RE: [CLOSED] How to load a page in a panel when the main page is loaded for the first time?

    Hi,

    Activate event is used when Panel inside TabPanel (as Tab). Use AfterRender event.
  3. #3

    RE: [CLOSED] How to load a page in a panel when the main page is loaded for the first time?

    Hi,

    I am not sure which property in AfterRender do I have to use instead of Hanler like in the event Active. Could you help me also with that please?

    <DirectEvents>
        <AfterRender  ="#{Panel2}.load({url: './DoctorNedOffice.aspx', mode:'iframe'});" />
    </DirectEvents>
    Thanks,
  4. #4

    RE: [CLOSED] How to load a page in a panel when the main page is loaded for the first time?

    Hi,

    Use AfterRender listener instead Activate listener
    Listeners><AfterRender Handler="..."/></Listeners>

    Or use AutoLoad inner property
    <AutoLoad Url="../Page1.aspx" Mode="IFrame"/>

Similar Threads

  1. Replies: 1
    Last Post: Mar 12, 2012, 2:17 AM
  2. [CLOSED] performance when the page load first time
    By lonely7345 in forum 1.x Legacy Premium Help
    Replies: 11
    Last Post: Oct 06, 2011, 6:06 PM
  3. [URGENT] General Page Load time
    By vs.mukesh in forum 1.x Help
    Replies: 0
    Last Post: Mar 30, 2011, 5:01 AM
  4. [CLOSED] How Can I get the page size that is loaded from a panel?
    By flormariafr in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: Jun 03, 2010, 1:30 PM
  5. [CLOSED] How to identify which page was loaded in a panel?
    By flormariafr in forum 1.x Legacy Premium Help
    Replies: 3
    Last Post: Feb 26, 2010, 10:42 AM

Posting Permissions