jQuery MiniUI

标题: grid如何对某一行设置不可编辑 [打印本页]

作者: zkrisj    时间: 2019-1-5 00:48:29     标题: grid如何对某一行设置不可编辑

本帖最后由 zkrisj 于 2019-1-5 00:55 编辑

设置了allowCellEdit=true,可以根据js判断某一行的某一列值对该行设置只读吗
作者: dforce    时间: 2019-1-7 10:04:23

可以
grid.on("cellbeginedit",function(e){
     if(e.record.field=="..."){
          e.cancel=true;
     }
})




欢迎光临 jQuery MiniUI (http://miniui.com/discuss/) Powered by Discuz! X2