I have the following code, I checked to make sure gridview is false to afterInsertRow event is fired. it does not even console log – so afterInsertRow event is not firing. so I tried to use rowattr to do this – and still does not work
This code was working fine in 4.5.4
afterInsertRow:function(rowid,rowdata,rowelem){
//If price is set manually change the cell color to red
console.log(rowdata.ysnManualSalePrice);
if(rowdata.ysnManualSalePrice == ‘Yes’)
{
mygrid.jqGrid(‘setCell’,rowid,’curSalePrice’,”,’eg-sellPrice’);
}
}
rowattr:function(rowdata,curobj,rowid){
if(rowdata.ysnManualSalePrice == ‘Yes’)
{
mygrid.jqGrid(‘setCell’,rowid,’curSalePrice’,”,’eg-sellPrice’);
}
}
Copyright 2014 TriRand LtdAll Rights ReservedRSS
Back to Top