PDA

View Full Version : [CLOSED] Combobox dropdown list size



Antonio09
Jan 15, 2013, 5:08 PM
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??

Baidaly
Jan 16, 2013, 12:29 AM
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>

Antonio09
Jan 16, 2013, 1:03 AM
That's it, thank you!