jquery easyui datagrid设置行样式 不可删除某行

时间:2014-06-27 00:16:44   收藏:0   阅读:299

rowStyler: function (index,row) {
if (parseInt(row.ksrs) > 0)
{
return ‘color:red‘;
}
},
onLoadSuccess:function(data){
var rows = data.rows;
for (var j = 0; j < rows.length; j++)
{
if (parseInt(rows[j]["ksrs"]) > 0)
{
$(".datagrid-row[datagrid-row-index=" + j + "] input[type=‘checkbox‘][name=‘ksh‘]")[0].disabled = true;
}
}
}

 

ksh为主键 当ksrs>0时行变成红色 不可以删除

jquery easyui datagrid设置行样式 不可删除某行,布布扣,bubuko.com

评论(0
© 2014 mamicode.com 版权所有 京ICP备13008772号-2  联系我们:gaon5@hotmail.com
迷上了代码!