WebDatagrid-左边的checkbox决定右边的文本是否进入编辑状态
2015-11-30 10:41
288 查看
Assuming you are using templates for the check box column and the checkbox is the only control in that template, something like the following can be used for your scenario.
确定你用的是templates 的checkbox行,并且该模板中只有checkbox一个空间。
Handle the EnteringEditMode event off of the CellEditing behavior.添加一个EnteringEditMode 事件
The event handler may look like this:事件函数如下:
确定你用的是templates 的checkbox行,并且该模板中只有checkbox一个空间。
Handle the EnteringEditMode event off of the CellEditing behavior.添加一个EnteringEditMode 事件
<ig:EditingCore> <Behaviors> <ig:CellEditing> <CellEditingClientEventsEnteringEditMode="enteringEditMode" /> </ig:CellEditing> </Behaviors> </ig:EditingCore>
The event handler may look like this:事件函数如下:
function enteringEditMode(grid, eventArgs) { var cell = eventArgs.getCell(); if (cell.get_column().get_key() == "SecondColumn") { checkboxCell = cell.get_row().get_cellByColumnKey("FirstColumn"); if (!checkboxCell.get_element().firstChild.checked) eventArgs.set_cancel(true); } }
相关文章推荐
- sql server 存储过程、事务,增删改
- git查看每个版本间的差异
- c++ 单例模式的浅谈
- red hat 安装 mongodb
- 算法导论的python实现之插入排序
- 【Java基础】开发中的23种设计模式详解
- org.json.JSONException: No value for userPicURL
- Spring4.2.3+Hibernate4.3.11整合( IntelliJ maven项目)
- Ajax 实现?
- Block编程注意的问题
- Spring 整合hibernate和mybatis的 applicationContext.xml的配置
- J2EE进阶(一)随堂笔记
- C# 线程Timer的Change方法解释
- swift 基础(二)闭包、对象和类、setter&getter
- 使用nginx实现http访问自动跳转到https端口
- J2EE进阶(一)随堂笔记
- w10镜像下载
- 编译不通过 illegal character: 65279
- 使用jsp,tomcat实现用户登录注册留言的代码
- QT Creator 使用SVN的版本号做为编译的版本信息