Hi ,
I have a combo for selecting any value from there , some rows of a grid( with selection.checkBodModel) is getting checked for that selected combo value(as i am getting the values to which i have to checked on selection event of the combo).
Up to that all is fine . But now i want that , if i will make some change in the check boxes(means if i will check/oncheck some rows in the grid ) then the combo should reset.So how i will handel the reset of combo onselection change of grid.
Code:
onClickRegion: function(){
var regionDisplayField = Ext.getCmp('regionTip');
var selection = Ext.getCmp('regionCheckgridId').getSelectionModel().getSelection();
var combo =Ext.getCmp('DGPprferenceCombo');
//here i want to do that, if i will do any changes except the already checked rows(that was for the combo selection) , my combo should reset.
selectedRegion.length = 0;
//selectedProcessingRegion = [];
for ( var i = 0; i < selection.length; i++) {
selectedRegion.push(selection[i].data.region);
}
console.log(selectedRegion);
regionPopUp.hide();
},
I need help on that please help me.