If I edit some value and then I change other column value (check box make to checked)
Is that possible to control other column value?
{
title: "",
dataIndx: "check",
type: 'checkbox',
cbId: 'chk',
align : 'center',
},
{
dataIndx: 'chk',
dataType: 'bool',
cb: { header: true },
hidden: true,
editable: function(ui){
//Number(list[i].orderQnty) <=(Number(list[i].inQnty)+Number(list[i].deliveryAllQnty))
var orderQnty = ui.rowData.orderQnty;
var inQnty = ui.rowData.inQnty;
var deliveryAllQnty = ui.rowData.deliveryAllQnty;
var result = orderQnty - inQnty - deliveryAllQnty;
//to make checkboxes editable selectively.
if(result<=0){
return false;
}else{
return true;
}
}
},
{ title: "deliveryQnty",/* width : '15%',*/dataIndx: "deliveryQnty",type : 'integer' ,
editor : {
attr :'type : number',
getData : function(ui){
var value = ui.$cell.find("input").val();
if(isNaN(value)){
alert("<msg:message code="alert.onylNumber"/>");
return 0;
}
if (value <= 0) {
alert("<msg:message code="alert.lagerQnty"/>");
//make check box false unchecked;
return 0;
}else{
//make check box true checked;
return value;
}
}
},