Aug 07, 2013, 6:00 AM
[CLOSED] Uncheck an item in Multiselect combobox
I have a scenario where i select all the items from the combobox on the "select all" button. But for some condition i need to uncheck one particular item from the multi select combobox .Here's what i have implemented so far:
if (text == "select") {
App.CmbCountries.selectAll();
var item = App.CmbCountries.getStore().findRecord("COUNTRY_CD", -2)
var rec = App.CmbCountries.getSelectedRecords();
Ext.each(rec, function (item1) {
if (item1.data.COUNTRY_CD == item.data.COUNTRY_CD) {
item1.set('checked', false);
}
});
lnk.hide();
deslect.show();
}
But it is not working. what is missing
Last edited by Daniil; Apr 03, 2014 at 4:10 AM.
Reason: [CLOSED]