jQuery MiniUI

标题: 如何改变表格中的td让指定一个单元格无法编辑 [打印本页]

作者: Teemo110    时间: 2014-12-24 16:12:09     标题: 如何改变表格中的td让指定一个单元格无法编辑

本帖最后由 Teemo110 于 2014-12-24 16:55 编辑

grid 里面一个单元格里面放一个checkbox或者下拉,如何设置指定某一个cell不可以编辑

作者: dforce    时间: 2014-12-24 16:20:10

请具体说明你的需求
作者: Teemo110    时间: 2014-12-24 16:56:05

dforce 发表于 2014-12-24 16:20
请具体说明你的需求

看我帖子里面补上图片了,就是让那个checkbox不可编辑,不知道怎么弄
作者: dforce    时间: 2014-12-24 17:02:41

Teemo110 发表于 2014-12-24 16:56
看我帖子里面补上图片了,就是让那个checkbox不可编辑,不知道怎么弄

有示例
http://www.miniui.com/demo/#src=datagrid/editable-rowedit.html
作者: Teemo110    时间: 2014-12-25 10:32:17

dforce 发表于 2014-12-24 17:02
有示例
http://www.miniui.com/demo/#src=datagrid/editable-rowedit.html

[attach]5725[/attach][attach]5724[/attach]
取出来的editor是Null。。。这

作者: dforce    时间: 2014-12-25 11:31:04

Teemo110 发表于 2014-12-25 10:32
取出来的editor是Null。。。这

你那列是checkboxcolumn吗?
直接e.cancel=true阻止编辑




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