[CLOSED] Anchor Layout Issue (IE)

Page 2 of 5 FirstFirst 1234 ... LastLast
  1. #11
    Please use:
    Ext.Net.X.IsIE6-9
  2. #12
    Quote Originally Posted by Daniil View Post
    Please use:
    Ext.Net.X.IsIE6-9
    is it for javascript or code behind?

    seem cant find in code behind property
  3. #13
    It's C#.

    These properties has been added to SVN on October'13, revision #3735.
  4. #14
    i just re-download again the dll

    still cant find

  5. #15
    Re-downloaded 1.2?

    But these properties appeared after 1.2 release.

    For now it's available only in SVN.
    Last edited by Daniil; Nov 09, 2011 at 5:35 PM.
  6. #16
    hi daniil,

    i've manage to change it to accordion just like in your sample

    but it come with problem

    situation i've 6 panel but only 3 are collapsable, and 3 panel that non collapsable should be shown because having the top bar

    ilustration

    Panel 1 contain topbar non collapsable and must show the topbar everytime
    panel 2 contain data collapsable
    panel 3 contain topbar non collapsable and must show the topbar everytime
    panel 4 contain data collapsable
    panel 5 contain topbar non collapsable and must show the topbar everytime
    panel 6 contain data collapsable

    is it possible with accordion layout

    you can refer to my screenshot, that's sample with 4 panel only (2 contain topbar and 2 data)
  7. #17
    Please clarify: does these Panels with a TopBar contain only that TopBar and should not be collapsed and expanded at all?
  8. #18
    Quote Originally Posted by Daniil View Post
    Please clarify: does these Panels with a TopBar contain only that TopBar and should not be collapsed and expanded at all?
    confirmed yes.
  9. #19
    I can suggest a bit different solution, it should suite your needs.

    Example

    <%@ 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>Ext.Net Example</title>
    
        <ext:ResourcePlaceHolder runat="server" Mode="ScriptFiles" />
    
        <script type="text/javascript">
            Ext.layout.AccordionLayout.override({
                 setItemSize : function(item, size){
                    if(this.fill && item){
                        var hh = 0, i, ct = this.getRenderedItems(this.container), len = ct.length, p;
                        // Add up all the header heights
                        for (i = 0; i < len; i++) {
                            if((p = ct[i]) != item && !p.hidden){
                                hh += p.header.getHeight();
    
                                //modification
                                if (p.topToolbar) {
                                    hh += p.topToolbar.getHeight();
                                }
                                //add modification
                            }
                        };
                        // Subtract the header heights from the container size
                        size.height -= hh;
                        // Call setSize on the container to set the correct height.  For Panels, deferedHeight
                        // will simply store this size for when the expansion is done.
                        item.setSize(size);
                    }
                }
            });
        </script>
        
        <style type="text/css">
            .ext-ie6 .x-column {
                padding: 0px !important;
            }
        </style>
    </head>
    <body>
        <form runat="server">
            <ext:ResourceManager runat="server" />
            <ext:Viewport runat="server" Layout="BorderLayout">
                <Items>
                    <ext:Panel
                        runat="server"
                        Height="30"
                        Region="North"
                        Html="North" />
                    <ext:Panel
                        runat="server"
                        Region="Center"
                        Layout="AccordionLayout"
                        HideMode="Offsets">
                        <LayoutConfig>
                            <ext:AccordionLayoutConfig OriginalHeader="true" CollapseFirst="true" />
                        </LayoutConfig>
                        <Items>
                            <ext:Panel
                                runat="server"
                                Title="Panel1"
                                Collapsed="false"
                                CollapseEl="body"
                                Layout="ColumnLayout">
                                 <TopBar>
                                    <ext:Toolbar runat="server">
                                        <Items>
                                            <ext:DisplayField runat="server" Text="Toolbar" />
                                        </Items>
                                    </ext:Toolbar>
                                </TopBar>
                                <Items>
                                    <ext:Panel runat="server" ColumnWidth="0.40" Html="Column1" />
                                    <ext:Panel runat="server" ColumnWidth="0.60" Html="Column2" />
                                </Items>
                                <Listeners>
                                    <Collapse Handler="this.ownerCt.layout.setActiveItem(1);" />
                                </Listeners>
                            </ext:Panel>
                           <ext:Panel
                                runat="server"
                                Title="Panel2"
                                Collapsed="false"
                                CollapseEl="body"
                                Layout="ColumnLayout">
                                 <TopBar>
                                    <ext:Toolbar runat="server">
                                        <Items>
                                            <ext:DisplayField runat="server" Text="Toolbar" />
                                        </Items>
                                    </ext:Toolbar>
                                </TopBar>
                                <Items>
                                    <ext:Panel runat="server" ColumnWidth="0.40" Html="Column1" />
                                    <ext:Panel runat="server" ColumnWidth="0.60" Html="Column2" />
                                </Items>
                                <Listeners>
                                    <Collapse Handler="this.ownerCt.layout.setActiveItem(0);" />
                                </Listeners>
                            </ext:Panel>
                        </Items>
                    </ext:Panel>
                </Items>
            </ext:Viewport>
        </form>
    </body>
    </html>
  10. #20
    is it possible to remove the title header?

    so the collapse/expand will be done with button in the toolbar calling the code behind?

    anyway it still not met the requirement actually, since the 2nd topbar are hidden when the 1st panel are shown.
Page 2 of 5 FirstFirst 1234 ... LastLast

Similar Threads

  1. [CLOSED] layout issue when using RowLayout within column layout
    By Daly_AF in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: Jun 11, 2012, 2:40 PM
  2. [CLOSED] Layout issue
    By alliedwallet.com in forum 1.x Legacy Premium Help
    Replies: 4
    Last Post: Oct 14, 2011, 4:36 PM
  3. [CLOSED] Layout Issue
    By rnachman in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: Sep 28, 2011, 5:37 PM
  4. [CLOSED] Column Layout inside Anchor
    By ljcorreia in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: Jun 22, 2011, 1:25 PM
  5. [CLOSED] Layout issue
    By Etisbew in forum 1.x Legacy Premium Help
    Replies: 4
    Last Post: Jul 01, 2009, 7:02 AM

Tags for this Thread

Posting Permissions