PDA

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



FpNetWorth
Feb 05, 2013, 3: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">
<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

Baidaly
Feb 05, 2013, 11:53 PM
Hello!

Yes, using

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

Closing the thread