[CLOSED] Hidden="true" behaves as Visible="false"

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1

    [CLOSED] Hidden="true" behaves as Visible="false"

    I'm trying to hide a ComoboBox when it has just one record.

    I need the form layout is mantained; so I expect the control leaves white space at his place.
    But the control disappears freeing space and other controls moves.

    This is "Visible= false" behavioor not "hidden=true"

    My ComboBox is inside a FieldContainer with Layout="HBoxLayout"

    Here is my Combo. Please note in Store Listener.

    M


    <ext:ComboBox ID="cbCilindro" runat="server" Editable="false" ForceSelection="true" ValueField="Code"  DisplayField="Cilindro"  Flex="1"
                            Note="Cilindro" NoteAlign="Top" SelectOnFocus="true" Margins="0 8 0 0" >
                            <ListConfig>
                                <ResizableConfig runat="server" Handles="South" />
                            </ListConfig>
                            <Store>
                <ext:Store ID="stCilindro" runat="server" PageSize="10">
                    <Proxy>
                        <ext:AjaxProxy Json="true" Url="../WebServices/AjaxWebService.asmx/getCilindroProdotto">
                            <ActionMethods Read="POST" />                            
                            <Reader>
                                <ext:JsonReader Root="d.Data" TotalProperty="d.Total" />
                            </Reader>
                        </ext:AjaxProxy>
                    </Proxy>
                    <Parameters>                    
                        <ext:StoreParameter Name="basketID" Value='<%# Request.QueryString["Id"] %>' AutoDataBind="true" />
                        <ext:StoreParameter Name="gruppoMerc" Value="#{cbFamiglieProdotto}.getValue()" Mode="Raw"  />
                        <ext:StoreParameter Name="confezione" Value="#{cbConfezioniProdotto}.getValue()" Mode="Raw" />
                        <ext:StoreParameter Name="campione" Value="false" Mode="Value" />
                    </Parameters>
                    <Model>
                        <ext:Model runat="server">
                            <Fields>
                                <ext:ModelField Name="Code" />
                                <ext:ModelField Name="Cilindro" />
                            </Fields>
                        </ext:Model>
                    </Model>
                    <Listeners>
                        <Load Handler="if (records.length==1) { #{cbCilindro}.hide(); }" />
                    </Listeners>
                    <%--<Sorters>
                        <ext:DataSorter Property="Cilindro" Direction="ASC" />
                    </Sorters>--%>
                </ext:Store>            
            </Store>         
                            <Listeners>
                        <Select Handler="#{cbAsse}.clearValue();#{stAsse}.load();" />
                    </Listeners>                
                        </ext:ComboBox>
    Last edited by Daniil; Jun 04, 2012 at 7:39 PM. Reason: [CLOSED]

Similar Threads

  1. Replies: 5
    Last Post: May 02, 2012, 5:37 PM
  2. [CLOSED] DropDownField with Grow="true" and GrowMax="xxx"
    By deejayns in forum 1.x Legacy Premium Help
    Replies: 4
    Last Post: Jan 12, 2012, 12:00 PM
  3. Replies: 4
    Last Post: Oct 11, 2011, 2:42 AM
  4. [CLOSED] Columns Hidden = "True"
    By majunior in forum 1.x Legacy Premium Help
    Replies: 4
    Last Post: May 27, 2011, 2:23 PM
  5. Replies: 0
    Last Post: Jan 18, 2011, 3:53 AM

Posting Permissions