window autoRender

Page 1 of 4 123 ... LastLast
  1. #1

    window autoRender

    hi there, if i set window property autoRender = false, does all component under/inside the window defer rendering?
  2. #2

    RE: window autoRender

    Hi,

    If those controls inside window's layout then yes
    If controls placed directly to the Body then no
  3. #3

    RE: window autoRender

    so everything inside the window's body is still rendered? so pretty much only the toolbars will not be rendered instantly
  4. #4

    RE: window autoRender

    so for example in this code right here, that means that the dataview, menu and the store still gets rendered prior to the window rendering?

    
    <ext:Window ..... AutoRender="false" >
        <TopBar>
            <ext:Toolbar ID="Toolbar1" runat="server">
                <Items>
                   ......
                </Items>
            </ext:Toolbar>
        </TopBar>
        <Body>
            <ext:Store ID=.....
            </ext:Store>
            <ext:FitLayout ID="FitLayout1" runat="server">
                <ext:DataView ID.......
                </ext:DataView>
            </ext:FitLayout>
            <ext:Menu ID="ItemContextMenu" runat="server"  >
                <Items>
                    ......
                </Items>
            </ext:Menu>
        </Body>
       .....
    </ext:Window>
  5. #5

    RE: window autoRender

    and for example this window, does the tabpanel inside gets rendered prior to window rendering?

    
    <ext:Window ID=......." AutoRender="false" >
        <Body>
            <ext:FitLayout runat="server">
                <ext:TabPanel ID="exttpnlMain" runat="server" Border="false" >
                    <Tabs>
    ..............
  6. #6

    RE: window autoRender

    Hi,

    1. Do not mess layout and other controls inside body. The layout must be single control inside Body (the toolkit can correctly handle a store with layout but I recommend to aware mess layout and controls)


    2. DataView and TabPanel which placed in window's layout will render after window
  7. #7

    RE: window autoRender

    so you recommend to put the store and menu out of any window?
  8. #8

    RE: window autoRender

    Hi,

    Out of any control which use layout
  9. #9

    RE: window autoRender

    if i set the window's autoRender to false then a server code is used to show the window, how can i make the window render to the form? because i got the example from this forum using a client side code below

    
    if (!win.rendered)
        {
            win.render(Ext.get(&#100;ocument.forms[0]));
        }
    win.show();
    but how about if the server side code is used to open the window?
  10. #10

    RE: window autoRender

    Hi,

    Just place that code inside js function and call that function on server side


    Window1.AddScript("showMyWindow();");
Page 1 of 4 123 ... LastLast

Similar Threads

  1. [CLOSED] Fileupload and AutoRender bug
    By petlun in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: Aug 30, 2011, 11:01 AM
  2. [CLOSED] Window Autorender
    By Hari_CSC in forum 1.x Legacy Premium Help
    Replies: 3
    Last Post: May 21, 2010, 3:35 PM
  3. Window autorender problem Is a bug?
    By gpcontreras in forum 1.x Help
    Replies: 1
    Last Post: Feb 05, 2010, 5:31 AM
  4. autorender window problem
    By [WP]joju in forum Bugs
    Replies: 5
    Last Post: Nov 09, 2009, 1:42 AM
  5. window autoRender false with grid panel
    By [WP]joju in forum 1.x Help
    Replies: 0
    Last Post: Nov 06, 2009, 5:24 AM

Posting Permissions