combox store filter lose efficacy after ClearFilter

  1. #1

    Combox TypeAhead Attribute Lose Efficacy After ClearFilter

    Hi,

    the combobox can do filter when user type chars at first.
    but after clearfilter,it does not work anymore.

    <ext:ComboBox ID="cbSTSRTTCODE" runat="server" FieldLabel="CB1"
    	LabelWidth="200" Width="430px" TypeAhead="true" ValueField="ID" QueryMode="Local"
    	DisplayField="ID_NAME" ForceSelection="true">
    	<Store>
    		<ext:Store ID="storeListUnit" runat="server">
    			<Model>
    				<ext:Model ID="Model8" runat="server">
    					<Fields>
    						<ext:ModelField Name="ID" />
    						<ext:ModelField Name="ID_NAME" />
    					</Fields>
    				</ext:Model>
    			</Model>
    		</ext:Store>
    	</Store>
    </ext:ComboBox>
    before clear
    Click image for larger version. 

Name:	2015-08-06_181912.jpg 
Views:	27 
Size:	18.2 KB 
ID:	24125

    after clear :App.cph_content1_cbSTSRTTCODE.store.clearFilter();
    those items inside the red box should not be appear
    Click image for larger version. 

Name:	2015-08-06_181945.jpg 
Views:	35 
Size:	28.4 KB 
ID:	24126



    I hope i was very explicit, Thanks for your atention
    Last edited by gpx1981; Aug 06, 2015 at 10:55 AM.
  2. #2
    Hi @gpx1981,

    Yes, store.clearFiter() removes a filter that is responsible for TypeAhead.

    Please try this instead:
    comboBox.reset();
    delete comboBox.lastQuery;

Similar Threads

  1. [CLOSED] Lose focus on store data
    By Mario in forum 2.x Legacy Premium Help
    Replies: 3
    Last Post: Feb 06, 2015, 12:36 PM
  2. Replies: 8
    Last Post: Nov 13, 2013, 12:41 PM
  3. how to filter store
    By Mr.Techno in forum 1.x Help
    Replies: 2
    Last Post: Aug 29, 2011, 10:55 AM
  4. [CLOSED] Dynamcally created Combox and its Dynamic Store
    By vali1993 in forum 1.x Legacy Premium Help
    Replies: 4
    Last Post: Jan 21, 2011, 4:10 PM
  5. Replies: 0
    Last Post: May 20, 2010, 7:57 AM

Posting Permissions