gridComplete: function () {
var ids = $("#grid-table").getDataIDs();
for (var i = 0; i < ids.length; i++) {
var rowData = $("#grid-table").getRowData(ids[i]);
if (rowData.useable=="1") {//useable-- 单元格的name 或 index
$("#grid-table").setCell(ids[i],"useable",1,{color:'green'});//setCell 设置单元格样式 值 或属性
}else if(rowData.useable=="0"){
$("#grid-table").setCell(ids[i],"useable",0,{color:'red'});
}
}
}