sos!!!设置gysmc的值为123的行的背景色,但是没设置成功,求教
var xzjs = function OnCellEndEdit(e) {
var record = e.record, grid = e.sender, value = e.value, field = e.field;
var rows = grid.getData();
for (var i = 0;i<rows.length;i++) {
if(rows[i].gysmc=="123"){
grid.addRowCls(i,"background:red")
}
}
}