$('#dgSSHour').datagrid({
loadMsg: '数据加载中,请稍后……',
//collapsible: false,
autoRowHeight: false,
// height: $(window).height() - 30,
height: 317,
width: 1500,
rownumbers: true,
striped: true,
cache: false,
singleSelect: false,
pagination: true,
loadFilter: pagerFilter,
pageSize: 60,
pageList: [10, 30, 60],
toolbar: '#tb',
//onClickRow: onClickRow,
columns: cols,
//nowrap: false,
onLoadSuccess: function(data) {
var rows = $('#dgSSHour').datagrid('getRows');
if (rows) {
$.each(rows, function (index, row) {
if (row.DeviceCode == "red") {
$('tbody tr[datagrid-row-index="' + index+'"]').find('td').css({
background: 'rgb(71,255,82)'
});
}
})
}
},
});