View Full Version : [CLOSED] Combo query issue when using same store on two combo boxes

Feb 05, 2013, 2:52 PM
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">
<ext:Model ID="modelCountry" runat="server">
<ext:ModelField Name="getId" Type="Int" />
<ext:ModelField Name="getName" Type="String" />
<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 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">


Feb 05, 2013, 10:53 PM

Yes, using

seems to be the best solution in your case.

Closing the thread