[CLOSED] Combo query issue when using same store on two combo boxes

  1. #1

    [CLOSED] Combo query issue when using same store on two combo boxes

    Solved using: <Focus Handler="this.getStore().clearFilter();" />

    The case is that we are using the same store for two combo boxes, we need to know how to make the filter apply on one combo only.
    We are using QueryMode as Local
    Below is a code sample:
    <ext:Store ID="storeCountry" runat="server">
            <Model>
                <ext:Model ID="modelCountry" runat="server">
                    <Fields>
                        <ext:ModelField Name="getId" Type="Int" />
                        <ext:ModelField Name="getName" Type="String" />
                    </Fields>
                </ext:Model>
            </Model>
        </ext:Store>
    <ext:ComboBox runat="server" ID="cmbCountryOfBirth" Width="275" LabelWidth="125" FieldLabel="Label" LabelAlign="Right" LabelSeparator=" " AllowBlank="false" StoreID="storeCountry" ValueField="getId" DisplayField="getName" QueryMode="Local">
    </ext:ComboBox>
    
    <ext:ComboBox runat="server" ID="cmbCodeLand1" FieldLabel="Landline 1"  LabelWidth="80" LabelAlign="Right" DisplayField="getPhoneCode" ValueField="getPhoneCode" LabelSeparator=" " ColumnWidth="0.55" AllowBlank="false" MatchFieldWidth="false" StoreID="storeCountry" QueryMode="Local">
    </ext:ComboBox>
    Thanks
    Last edited by Baidaly; Feb 05, 2013 at 10:53 PM. Reason: [CLOSED]
  2. #2
    Hello!

    Yes, using
    Store.clearFilter();
    seems to be the best solution in your case.

    Closing the thread

Similar Threads

  1. [CLOSED] Multiple Combo-boxes - Same Store - Odd Behavior
    By adelaney in forum 2.x Legacy Premium Help
    Replies: 2
    Last Post: Jun 13, 2012, 4:23 PM
  2. [CLOSED] Combo box doesn't query the store when clearing its contents
    By SandorD in forum 1.x Legacy Premium Help
    Replies: 4
    Last Post: Nov 09, 2010, 2:37 PM
  3. [1.0] Combo boxes not editable.
    By michaeld in forum 1.x Help
    Replies: 1
    Last Post: May 20, 2010, 10:49 AM
  4. [CLOSED] combo boxes initialization
    By alexp in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: May 04, 2010, 11:11 AM
  5. Linked Combo Boxes using DataSources
    By rthiney in forum 1.x Help
    Replies: 3
    Last Post: Aug 06, 2009, 12:36 PM

Tags for this Thread

Posting Permissions