[CLOSED] Bug on the TreePanel...

  1. #1

    [CLOSED] Bug on the TreePanel...

    Hi,

    When the West Panel of the Viewport has HeaderPosition="None" the TreePanel inside does not show it's items. Example:
    <body>
        <%--Formulário da página--%>
        <form id="_frmPrincipal" runat="server">
        <%--Gerenciador de recursos do ext.net--%>
        <ext:ResourceManager ID="_rsmGerenciadorDeRecursos" CleanRequestUrl="false" ShowWarningOnAjaxFailure="false"
            runat="server">
        </ext:ResourceManager>
        <%--Corpo base da página. Componente que divide a página em áreas.--%>
        <ext:Viewport ID="_vwpCorpo" Cls="cls_vwp_ViewportPrincipal" Layout="BorderLayout"
            runat="server">
            <Items>
                <%--Painel localizado na Área Oeste da página.--%>
                <ext:Panel ID="_pnlAreaOeste" Region="West" Width="200" Collapsible="true" HeaderPosition="None"
                    Split="true" AnimCollapse="true" MinWidth="200" Layout="AccordionLayout" Icon="ApplicationCascade"
                    CollapseMode="Mini" runat="server" Margins="0 0 0 0">
                    <Items>
                        <%--Menu de aplicações do Sistema--%>
                        <ext:TreePanel ID="_trpMenu" runat="server" Draggable="false" Icon="ApplicationCascade"
                            AutoScroll="true" EnableDD="false" Animate="true" RootVisible="false" Title="Menu">
                            <Root>
                                <%--Nó inicial do menu de aplicações--%>
                                <ext:Node NodeID="0" Expanded="true" AllowDrag="false">
                                    <Children>
                                        <ext:Node NodeID="1" Text="Teste 1">
                                        </ext:Node>
                                    </Children>
                                </ext:Node>
                            </Root>
                        </ext:TreePanel>
                    </Items>
                </ext:Panel>
            </Items>
        </ext:Viewport>
        </form>
    </body>
    When i change the HeaderPosition="None" for PreventHeader="true" on the west Panel, it works just fine.

    I'm using PreventHeader, so, no problem. This post it is just to notify you.

    Happy to be of service,
    Last edited by RCN; Dec 09, 2013 at 11:09 AM.
  2. #2
    Hi,

    Yes, please use
    PreventHeader="true"
    to prevent a Header from being created and shown.

    This option
    HeaderPosition="None"
    doesn't prevent a Header.
  3. #3
    PreventHeader has been marked deprecated by ExtJS:
    http://docs.sencha.com/extjs/4.2.1/#...-preventHeader

    So, please pick Header instead.

    Header="false" prevents a header.
  4. #4
    Thank you Daniil

Similar Threads

  1. [CLOSED] Drag and drop from treepanel to treepanel in "copy" mode
    By mattwoberts in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: Jul 14, 2011, 6:45 PM
  2. [CLOSED] [1.0] TreePanel
    By Timothy in forum 1.x Legacy Premium Help
    Replies: 11
    Last Post: Apr 08, 2011, 6:04 PM
  3. Replies: 5
    Last Post: Mar 23, 2011, 9:57 AM
  4. Replies: 2
    Last Post: Jul 30, 2010, 12:37 AM
  5. Dynamically changing Treepanel other Treepanel
    By airforcz in forum 1.x Help
    Replies: 0
    Last Post: Jun 16, 2010, 8:33 AM

Tags for this Thread

Posting Permissions