Hi all i set a combo on grid… but when I change the column and then filter, i have the key and i need the discription, i dont know what is the problem… i need to see the description but not the key …
function loadGrid(){
// Combo
mygrid.attachEvent(“onEditCell”, function(stage,rowId,cellIndex,newValue,oldValue){
if (stage == 0){
if(mygrid.getColIndexById('type') == cellIndex){
combo();
}
}
return true;
});
}
/**
-
SET Combos
**/
function combo(){
var selectRow = mygrid.getSelectedRowId();
var selectCol = mygrid.getColIndexById(‘type’);
var combo = mygrid.cells(selectRow,selectCol).getCellCombo();combo.readonly(true);
combo.clearAll(true);
combo.addOption(‘CT’,‘Control’);
combo.addOption(‘CA’,‘Control Admin’);
combo.addOption(‘AM’,‘Amb’);
}