[CLOSED] Dropdown Field List Position

Page 1 of 2 12 LastLast
  1. #1

    [CLOSED] Dropdown Field List Position

    Hi,
    How can I set the position of Dropdown Field List from bottom to top?

    I am loading a page in iframe and in the bottom of tht page there is a DropDownField which has a panel as its component. Since there is no place, an ideal behaviour shud be to show the panel on top of dropdownfield, but instead it shows at the bottom, resulting in scroll bars.

    Check attached image.

    Thanks,
    Attached Thumbnails Click image for larger version. 

Name:	sshot-1.png 
Views:	146 
Size:	18.8 KB 
ID:	2583  
    Last edited by Daniil; Apr 25, 2011 at 7:52 AM. Reason: [CLOSED]
  2. #2
    Hi,

    DropDownField has ComponentAlign property (ComboBox has ListAlign)
    Try to set "bl-tl?" value
  3. #3
    Does'nt work!
  4. #4
    Quote Originally Posted by amitpareek View Post
    Does'nt work!
    Unfortunately, it's not so informative.

    .ComponentAlign works fine in the following example.

    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>
    </head>
    <body>
        <form runat="server">
        <ext:ResourceManager runat="server" />
        <ext:DropDownField runat="server" ComponentAlign="bl-tl?" Y="300">
            <Component>
                <ext:Panel runat="server" Height="200" Width="200" />
            </Component>
        </ext:DropDownField>
        </form>
    </body>
    </html>
  5. #5
    Does'nt work! Check this code.

    <%@ Page Language="C#" AutoEventWireup="true"  %>
    
    <!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></title>
    </head>
    <body>
        <form id="form1" runat="server">
        <div>
        <ext:ResourceManager runat="server"></ext:ResourceManager>
        
        <ext:Panel runat="server" Height="600" Width="600">
        <Items>
        <ext:Container Height="400" runat="server"></ext:Container>
        <ext:DropDownField ID="DropDownField4" meta:resourcekey="DropDownField4" FieldLabel="Branches" ComponentAlign="bl-tl?" Y="300" runat="server" Width="225" LabelWidth="90" LazyInit="false">
    	<Triggers>
    	<ext:FieldTrigger Icon="SimpleRight" Qtip="Select All" />
    	<ext:FieldTrigger Icon="SimpleMinus" Qtip="Deselect All" />
    	</Triggers>
    	
    	<Component>
    	<ext:Panel runat="server" id="pnl1" meta:resourcekey="pnl1" Width="350"  ForceLayout="true" LazyMode="Instance" AutoScroll="true" Height="300" MaxHeight="300" Padding="2">
    	<Items>
    	    
    	</Items>
    	</ext:Panel>
    	</Component>
    	</ext:DropDownField>
        </Items>
        </ext:Panel>
        
        </div>
        </form>
    </body>
    </html>
  6. #6
    Could you clarify why do you use LazyMode="Instance" for Panel?

    It breaks DropDownField logic. Please remove this property, and things will work fine.
  7. #7
    Hi,
    The panel and its dropdown component are in hidden parent Panel. They are not instantiated by default and I need the values inside the panel which are in a checkbox group even if the parent panel is hidden.
  8. #8
    Please set LazyInit="false" for DropDownField.
  9. #9
    I think you did not notice, but there is already LazyInit=false in the code sample I provided. It still does'nt work.

    Thanks
  10. #10
    Hi,

    If remove LazyMode from the panel (as Daniil mentioned) then all works as expected

    <%@ 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></title>
    </head>
    <body>
        <form id="form1" runat="server">
        <div>
            <ext:ResourceManager runat="server">
            </ext:ResourceManager>
            <ext:Panel runat="server" Height="600" Width="600">
                <Items>
                    <ext:Container Height="400" runat="server">
                    </ext:Container>
                    <ext:DropDownField ID="DropDownField4" FieldLabel="Branches"
                        ComponentAlign="bl-tl?" runat="server" Width="225" LabelWidth="90" LazyInit="false">
                        <Triggers>
                            <ext:FieldTrigger Icon="SimpleRight" Qtip="Select All" />
                            <ext:FieldTrigger Icon="SimpleMinus" Qtip="Deselect All" />
                        </Triggers>
                        <Component>
                            <ext:Panel runat="server" ID="pnl1" Width="350" ForceLayout="true"
                                AutoScroll="true" Height="300" MaxHeight="300" Padding="2">
                                <Items>
                                </Items>
                            </ext:Panel>
                        </Component>
                    </ext:DropDownField>
                </Items>
            </ext:Panel>
        </div>
        </form>
    </body>
    </html>
Page 1 of 2 12 LastLast

Similar Threads

  1. [CLOSED] ComboBox with a GridPanel as dropdown list
    By bogc in forum 1.x Legacy Premium Help
    Replies: 5
    Last Post: Sep 14, 2011, 6:00 PM
  2. [CLOSED] Define selected Position of dropdown-list in TimeField
    By macap in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: Apr 29, 2010, 5:18 AM
  3. Placing checkbox in the dropdown List
    By n_s_adhikari@rediffmail.com in forum 1.x Help
    Replies: 1
    Last Post: Apr 24, 2010, 7:39 PM
  4. [CLOSED] Dropdown Field Icon Error
    By amitpareek in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: Mar 13, 2010, 2:19 PM
  5. [CLOSED] Lazy Mode | Dropdown Field | Treepanel Instance
    By amitpareek in forum 1.x Legacy Premium Help
    Replies: 4
    Last Post: Feb 18, 2010, 3:52 PM

Posting Permissions