Sep 07, 2011, 3:07 AM
Combobox value disapears when selected, only appears when combo box loses focus
Hi,
I have two combo boxes in a grid-> topbar->toolbar. The senario is that selection in combo boxes makes grid updates based on what is selected.The second combo box works fine. but the first combo box has a strange problem. (these combo boxes are non editable) If I click the drop down button, the list appears but the selection in the text area disappears. Now if i choose any item from the drop down list showing, The item won't appear in combo box until the focus is shifted to some other control. below is the code for both combo boxes.
I have two combo boxes in a grid-> topbar->toolbar. The senario is that selection in combo boxes makes grid updates based on what is selected.The second combo box works fine. but the first combo box has a strange problem. (these combo boxes are non editable) If I click the drop down button, the list appears but the selection in the text area disappears. Now if i choose any item from the drop down list showing, The item won't appear in combo box until the focus is shifted to some other control. below is the code for both combo boxes.
<ext:ComboBox ID="cmbVendorType" runat="server" Editable="false" ForceSelection="true" Selectable="true" StoreID="strVendorType" DisplayField="title" ValueField="id">
<DirectEvents>
<Select OnEvent="Evt_VendorChange" />
</DirectEvents>
</ext:ComboBox>
<ext:ComboBox ID="cmbCenter" runat="server" Editable="false" Selectable="true" ForceSelection="true" StoreID="strCenter" DisplayField="title" ValueField="id">
<DirectEvents>
<Select OnEvent="Evt_CenterChange" />
</DirectEvents>
</ext:ComboBox>
What i dont unerstand that if its some problem in the code then why the 2nd one has no such issue whie the first one behaves in this way. This is happening wherever I have 2 or more combo boxes. The first one always has this problem.