版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/qq_34359363/article/details/54378784
第一步:fitColumns :false,
然后给olumns:[[
columns:[[
{ field: 'ck', checkbox: true },
{field:'inter_ID',title:'inter_ID',width:100,hidden:true},
{field:'head_ID',title:'head_ID',width:100,hidden:true},
{field:'asd',title:'Action',width:150,align:'center',
formatter:function(value,row,index){
var str = "<a href=\"#\" name=\"opera\" class=\"easyui-linkbutton\" onclick=\"con('"+row.inter_ID+"','"+row.dewell_STATUS+"')\" ></a> <a href=\"#\" name=\"opera1\" class=\"easyui-linkbutton\" onclick=\"ff('"+row.job_NO+"','"+row.bookingrefnumber+"')\" ></a>";
return str;
}},
{field:'dewell_STATUS',title:'Dewell Status',width:100},
的每一个都设置行宽。
因为easyui api中说 如果width 不设置的话,就需要自动匹配。这样 每一个单元格都需要去设置,当数据量大的时候 就会出现假死现象。