Mar 05, 2009, 12:31 PM
Problem with combobox - On store refresh
Hi,
I have tried to do the next:
When I write any text in the combobox and press key enter:
I reload the store with ajaxevent:
(Example in the link)
The property SelectOnFocus is True and I don't know what's the problem.
Do you know why is it happening?
Thanks.
I have tried to do the next:
When I write any text in the combobox and press key enter:
...
<td style="width: 30.5%;">
<ext:ComboBox ID="cbPickUpAgency" runat="server" StoreID="storeAgenciesPickUp"
Width="280" DisplayField="Fullname" ValueField="UniqueId" TypeAhead="true" Disabled="false"
Mode="Local" TriggerAction="All" ItemSelector="div.list-item" SelectOnFocus="true"
EnableKeyEvents="true" Regex="<%$ Resources:RegularExpressions, RegMin3Char %>"
RegexText="<%$Resources:RegularExpressions, RegMin3CharErrorText %>">
<Template ID="Template3" runat="server">
<tpl for=".">
<div class="search-item">{Fullname}
</tpl>
</Template>
<Listeners>
<SpecialKey Handler="#{storeAgenciesPickUp}.reload();" />
</Listeners>
</ext:ComboBox>
</td>
...
I reload the store with ajaxevent:
...
<ext:Store runat="server" ID="storeAgenciesPickUp" AutoLoad="false" OnRefreshData="OnCbPickUpAgencyRefresh">
<AjaxEventConfig>
<EventMask ShowMask="false" />
</AjaxEventConfig>
<Reader>
<ext:JsonReader ReaderID="UniqueId">
<Fields>
<ext:RecordField Name="UniqueId" />
<ext:RecordField Name="Fullname" />
</Fields>
</ext:JsonReader>
</Reader>
</ext:Store>
...
Then the combo is loaded correctly and it shows the results but I cant select any option.(Example in the link)
The property SelectOnFocus is True and I don't know what's the problem.
Do you know why is it happening?
Thanks.