jQuery MiniUI

标题: grid 加入type: "checkcolumn" 点击checkbox 不触发rowclick事件 [打印本页]

作者: creasy-pita    时间: 2014-9-6 15:23:08     标题: grid 加入type: "checkcolumn" 点击checkbox 不触发rowclick事件

grid 加入type: "checkcolumn" 怎么实现 点击checkbox 不触发grid的rowclick事件


作者: felt    时间: 2014-9-6 21:47:08

行点击事件,你点击行上,肯定会触发
作者: creasy-pita    时间: 2014-9-7 12:37:01

felt 发表于 2014-9-6 21:47
行点击事件,你点击行上,肯定会触发

单击checkbox时,只触发checkbox的单击事件,不触发行或者屏蔽掉能不能实现
作者: dforce    时间: 2014-9-9 09:30:48

creasy-pita 发表于 2014-9-7 12:37
单击checkbox时,只触发checkbox的单击事件,不触发行或者屏蔽掉能不能实现

用cellclick事件来做吧
给checkcolumn加个field="xxx"
grid.on("cellclick",function(e){
    if(e.field=="xxx"){

    }else{
             .........
    }
})




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