datagrid({onLoadSuccess:function(data){ var result = data.rows; for(var i=0; i<result.length; i++){ var row = result[i] ; if(row.rowspan >1){ $('#productGrid').datagrid('mergeCells',{ index:i, field:'cpName', rowspan:row.rowspan }); $('#productGrid').datagrid('mergeCells',{ index:i, field:'cpId', rowspan:row.rowspan }); $('#productGrid').datagrid('mergeCells',{ index:i, field:'cpLogo', rowspan:row.rowspan }); i= i+row.rowspan; } if(row.pricePkgId == undefined || row.pricePkgId == null) { $(".datagrid-row[datagrid-row-index=" + i + "] input[type='checkbox']")[0].disabled = true; } } }})
easyui datagrid之复选框的禁用
1、当datagrid 的onLoadSuccess方法中
猜你喜欢
转载自jiandequn.iteye.com/blog/2358654
今日推荐
周排行