Oct 30, 2009, 10:00 AM
[CLOSED] Combobox behavior on lookup
I'm trying to change the combobox behavior slightly to bind to the store at the appropriate time, but to not highlight the first item in the dropdown. I need to be able to type something in, have it do a lookup and then only choose an item if I arrow down; otherwise, I want to be able to just get the info typed in the box when pressing the enter key. Currently, the default behavior seems to be to highlight the first item in the dropdown and select that when I press enter. Here is my combo setup
<ext:ComboBox
ID="ComboBoxCustomerSearch"
runat="server"
StoreID="StoreCustomerSearch"
DisplayField="DisplayName"
ValueField="ID"
TypeAhead="false"
LoadingText="Searching..."
Width="150"
ListWidth="150"
HideTrigger="true"
MinChars="3"
FireSelectOnLoad="false"
EmptyText="Company Name"
ItemSelector="div.search-item"
ForceSelection="false"
AllowBlank="true" >
<Template ID="Template1" runat="server">
<tpl for=".">
<div class="search-item">
<h3>{CompanyName}</h3>
{FullName}
</tpl>
</Template>
<Listeners>
<Select Fn="selectCustomer" />
</Listeners>
</ext:ComboBox>
Any help would be appreciated.