怎样取miniui-datagrid某行某列的值和设置行颜色
想设置第10列==1的为某种颜色:
grid2.load(null, function (res) {
var rows = grid2.getData();
for (var i = 0, l = rows.length; i < l; i++) {
var row = rows[i]
alert(row[9]);
}
/*
if (res != null && res.data.length > 0) {
for (var x = 0; x < res.data.length; x++) {
var row = res.data[x];
alert(row["9"].value);
if (row[""].value == "1") {
grid2.addRowCls(goodsSpecsGird.getRow(x), 'sx');
}
}
}*/
});