禁用datagrid的checkbox
$("#dg").datagrid({
......
, onLoadSuccess:function(data){ for(let i=0;i<data.rows.length;i++){ var rows = data.rows[i]; //禁用datagrid的checkbox $(".datagrid-row[datagrid-row-index=" + i + "] input[type='checkbox']")[0].disabled = true; } }, });
参考来源:
http://t.zoukankan.com/qiao20-p-15410983.html