[CLOSED] Combobox dropdown list size

  1. #1

    [CLOSED] Combobox dropdown list size

    Hello, I have a combobox that has many values so the dropdown list is so big. I need to set a limit to the size of the dropdown list. I have been loking for the way to solve this but I can't find the property. There is not a MaxHeight property that apply to the dropdown list of the combobox or something like that.

    Is there another way to achieve this? Is there a combobox property that I'm missing??
    Last edited by Daniil; Jan 16, 2013 at 5:57 AM. Reason: [CLOSED]
  2. #2
    Hello!

    Please, use ListConfig's MaxHeight parameter:

    <ext:ComboBox 
    	runat="server"
    	FieldLabel="Select a single state"
    	DisplayField="name"
    	Width="320"
    	LabelWidth="130"
    	QueryMode="Local"               
    	TypeAhead="true">
    	<ListConfig MaxHeight="100"></ListConfig>
    	<Store>
    		<ext:Store runat="server" Data="<%# TestData %>" AutoDataBind="true">
    			<Model>
    				<ext:Model runat="server">
    					<Fields>
    						<ext:ModelField Name="abbr" />
    						<ext:ModelField Name="name" />
    						<ext:ModelField Name="slogan" />
    					</Fields>
    				</ext:Model>
    			</Model>
    
    			<Reader>
    				<ext:ArrayReader />    
    			</Reader>
    		</ext:Store>
    	</Store>
    </ext:ComboBox>
  3. #3

    Solved!

    That's it, thank you!

Similar Threads

  1. how do you format font in dropdown list part of combobox
    By Wayne Fitzgerald in forum 2.x Help
    Replies: 2
    Last Post: Nov 21, 2012, 2:59 PM
  2. [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
  3. [CLOSED] Dropdown Field List Position
    By amitpareek in forum 1.x Legacy Premium Help
    Replies: 10
    Last Post: Apr 14, 2011, 7:04 PM
  4. 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
  5. [CLOSED] Drop down list under a ComboBox is not the correct size...
    By iansriley in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: Apr 02, 2009, 2:50 PM

Posting Permissions