JQGrid 里边Inline编辑时按 Esc 触发什么事件?【答案在这】
来源:互联网 发布:windows office 密钥 编辑:程序博客网 时间:2024/04/30 15:00
JQGrid 里边Inline编辑时按Enter之类的都对应有事件处理,但 Esc 却没有开放事件接口,那它会触发什么事件呢?
通过查找,在http://stackoverflow.com/questions/2718351/jqgrid-inline-editing-event-on-esc-cancel找到了答案,
The jqGrid source code for editRow
contains the following handler for the Escape key:
if (e.keyCode === 27) {$($t).jqGrid("restoreRow",rowid, afterrestorefunc);}
So an event is raised. According to the docs:
afterrestorefunc if defined this function is called in after the row is restored. To this function we pass the rowid
因此,我们只需要在editrow 或 addrow 中的 afterresorefunc 里添加上代码就行了。
- JQGrid 里边Inline编辑时按 Esc 触发什么事件?【答案在这】
- jqGrid在编辑时(Form类型的)回车保存,esc退出(关闭)编辑
- jqGrid行编辑事件
- jqgrid 触发行点击事件
- DataGridView DataGridViewCheckBoxColumn编辑时实时触发事件
- DataGridView DataGridViewCheckBoxColumn编辑时实时触发事件
- DataGridView DataGridViewCheckBoxColumn编辑时实时触发事件
- jqGrid在请求前触发的事件和点击翻页时判断点击了上一页还是下一页
- jqgrid编辑行 event事件
- 随着input里边值的变化而触发js事件
- GridView触发删除,编辑事件
- 代码触发表格编辑事件
- 【JqGrid】jqGrid 多选复选框 编辑列 方法事件
- jqGrid单元格编辑配置,事件及方法
- jqGrid单元格编辑配置,事件及方法
- jqGrid行编辑配置,方法,事件
- jqGrid行编辑配置,方法,事件
- jqGrid行编辑配置,方法,事件
- Python的一些学习笔记
- HashSet
- LINUX下C语言连接mysql
- STL之pair对组
- Qt Meta Object system 学习(一)
- JQGrid 里边Inline编辑时按 Esc 触发什么事件?【答案在这】
- linux进程管理学习笔记
- C++异常机制的实现方式和开销分析
- auto_ptr智能指针
- preg_replace
- xcopy的一次误用及解决办法
- fdisk命令找不到的解决方法
- HDU1016——Prime Ring Problem
- hdu 3695 ac自动机