Problem with combobox - On store refresh

  1. #1

    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:

    ...
    
    
    
    <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.



  2. #2

    RE: Problem with combobox - On store refresh

    Hi,

    Fix ItemSelector property


    ItemSelector = "div.search-item"*
  3. #3

    RE: Problem with combobox - On store refresh

    It's perfect. Thank you, vladimir :).

    My problem is solved.

Similar Threads

  1. [CLOSED] Refresh ComboBox after changing Store
    By ljcorreia in forum 1.x Legacy Premium Help
    Replies: 6
    Last Post: Sep 27, 2013, 3:42 PM
  2. combobox expand on store refresh
    By ascsolutions in forum 1.x Help
    Replies: 0
    Last Post: Jun 19, 2012, 1:38 PM
  3. Problem to fill a combobox with store
    By feanor91 in forum 1.x Help
    Replies: 1
    Last Post: Nov 22, 2011, 1:12 PM
  4. Combobox store refresh on iconclick
    By Qtrieu68 in forum 1.x Help
    Replies: 1
    Last Post: Nov 08, 2010, 9:13 PM
  5. Problem about change ComboBox's store dynamically
    By zhangsir199 in forum 1.x Help
    Replies: 0
    Last Post: Aug 04, 2010, 2:46 AM

Posting Permissions