关于ExtJS-4.0.2a中在gridpanel中出现column.getEditor is not a function的错误解决方法
来源:互联网 发布:百乐官方淘宝授权店 编辑:程序博客网 时间:2024/05/02 01:33
在ExtJS-4.0.2a中在gridpanel中同时使用Ext.grid.plugin.CellEditing和Ext.selection.CheckboxModel 出现column.getEditor is not a function的错误解决方法有三种:
方法一:(转载自http://www.sencha.com/forum/showthread.php?140253-Ext.grid.plugin.CellEditing-Ext.selection.CheckboxModel-TypeError)
Ext.override(Ext.grid.plugin.CellEditing, {
startEdit: function(record, columnHeader) {
if (columnHeader && columnHeader.isCheckerHd) {
return false;
}
return this.callOverridden(arguments);
}});
方法二:(转载自http://www.sencha.com/forum/showthread.php?140253-Ext.grid.plugin.CellEditing-Ext.selection.CheckboxModel-TypeError)
solve the problem by running the following function when the "beforeedit" event occurs:
onBeforeEditCell : function(event) { if (event.column && event.column.isCheckerHd) { return false; } return true;}
方法三:(转载自http://www.sencha.com/forum/showthread.php?152014-4.0.2a-Grid-selModel-and-Editing-Bug)
I think this may due to clicksToEdit property. and the checkbox column does not have a getEditor property. when click that checkbox, the editor think that column should give it a edit view. So error rise.If you change clicksToEdit to 2 or larger, everything is OK.It's not effect using in FF, Chrome and IE9. But IE7 will refuse to run the rest script, so that mean you cannot select more than one row in grid.
- 关于ExtJS-4.0.2a中在gridpanel中出现column.getEditor is not a function的错误解决方法
- extjs中出现this.addevents is not a function错误
- extjs中出现this.addevents is not a function错误
- UE.getEditor is not a function
- JS中出现“$(...).dropdown is not a function”错误的解决
- Uncaught TypeError: UE.getEditor is not a function
- 当js中出现 a() is not a function
- Extjs中this.swf.setDataProvider is not a function解决办法
- Bootstrap 在F12控制台 出现“$(...).carousel is not a function”错误的解决办法
- Controller中错误 TypeError: $rootScope.$broadcast is not a function
- 错误中学习--this.addEvents is not a function
- Extjs 报this.addEvents is not a function错误原因
- rvm is not a function的解决方法
- 控制台出现 jQuery 1.9 .live() is not a function 解决方法
- ExtJs this.addevents is not a function
- 出现TypeError: 'undefined' is not a function (evaluating '$')错误
- Bootstrap出现$(...)modal is not a function错误
- 出现xhr.sendasbinary is not a function错误
- poj2352Stars(树状数组)
- 序列化(Serialize)和反序列化(Deserialize)
- #Sam有话说#找准你的style
- ACM搜索题目总结
- iptables简单使用
- 关于ExtJS-4.0.2a中在gridpanel中出现column.getEditor is not a function的错误解决方法
- ubuntu12.10上针对NS2-2.35的tcl-debug-2.0的安装
- poj 1005 I Think I Need a Houseboat
- python之import机制
- IOS第四天——Obj-C的数据类型和表达式
- oracl 10g 完全删除
- Dojo 学习笔记--TabContainer
- DirectX 3D_基础之粒子系统的组成 绘制粒子系统 粒子随机性 具体的粒子系统
- Unity3d之standalone PC游戏崩溃