Jul 01, 2015, 12:02 PM
[CLOSED] Autocomplete combobox question
I have a combobox that is being used in 'autocomplete' mode. The store attached is using an ajaxproxy that filters the data returned from a service (a .net handler). It is set with a querydelay of 1500 and is also set that you have to type at least 3 characters before it calls to get the store data.
My question: is there a setting to bypass the querydelay if the user hits the enter key?
My question: is there a setting to bypass the querydelay if the user hits the enter key?
<ext2:ComboBox
ID="Results"
runat="server"
ValueField="Key"
TypeAhead="false"
LoadingText="Searching..."
HideTrigger="true"
ItemSelector="div.search-item"
EmptyText="Type to Search"
QueryDelay="1500"
QueryCaching="false"
MinChars="1"
Border="false"
Width="921"
Height="38">
<Store>
<ext2:Store ID="ResultStore" runat="server" AutoLoad="false">
<Proxy>
<ext2:AjaxProxy Url="~/QuickSearch.ashx">
<Reader>
<ext2:JsonReader IDProperty="Key" Root="results" TotalProperty="total" />
</Reader>
</ext2:AjaxProxy>
</Proxy>
<Model>
<ext2:Model runat="server">
<Fields>
<ext2:ModelField Name="Key" />
<ext2:ModelField Name="Description" />
<ext2:ModelField Name="Icon" />
<ext2:ModelField Name="Info" />
</Fields>
</ext2:Model>
</Model>
</ext2:Store>
</Store>
<ListConfig>
<ItemTpl runat="server">
<Html>
<tpl for=".">
<div class="search-item">
<span id="quicksearch-title">
<img src="{Icon}" style="padding-right:10px; vertical-align:middle;" />
{Description}
</span>
<span id="quicksearch-info">{Info}</span>
</div>
</tpl>
</Html>
</ItemTpl>
</ListConfig>
<DirectEvents>
<Select OnEvent="Results_Select">
<EventMask ShowMask="true" Target="Page" />
<ExtraParams>
<ext2:Parameter Name="Key" Value="this.getValue()" Mode="Raw" />
</ExtraParams>
</Select>
</DirectEvents>
</ext2:ComboBox>
Last edited by Daniil; Jul 09, 2015 at 3:42 PM.
Reason: [CLOSED]