jQuery MiniUI

标题: TreeGrid [打印本页]

作者: renle    时间: 2016-11-15 13:46:10     标题: TreeGrid

大神我有这样的一个问题,如图是我的treeGrid,我现在有这样的一个需求,就是说当我去加载TreeGrid的数据时,加载到某一行例如我加载到确定项目范围这一行,他说对应的工期数值为null,我需要去改变他这一行的属性变为不可编辑,其他行还是依旧可以编辑的,求大神指点
作者: felt    时间: 2016-11-15 14:06:30

监听oncellbeginedit事件
grid.on("cellbeginedit",function(e){
    if(e.record.xxx=="...."){
        e.cancel=true;
    }
})
作者: renle    时间: 2016-11-15 14:18:54

felt 发表于 2016-11-15 14:06
监听oncellbeginedit事件
grid.on("cellbeginedit",function(e){
    if(e.record.xxx=="...."){

谢谢大神,搞定了,麻烦您了




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