Feb 05, 2013, 2:52 PM
[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:
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]