zoukankan      html  css  js  c++  java
  • extjs4.0.7 Ext.grid.plugin.CellEditing 的bug?

    extjs Ext.grid.plugin.CellEditing的validateedit事件,两个值相同,不能做为判断依据
     1 var rowEditing = Ext.create('Ext.grid.plugin.CellEditing', {
     2         clicksToMoveEditor: 1,
     3         autoCancel: false,
     4      
     5                     listeners:{
     6 //                        'edit':{
     7 //                            fn: function(editor, e){
     8 //                                 var i = parseInt(e.value);
     9 //                                 if(e.value > 100)
    10 //                                 {
    11 //                                    
    12 //                                    return false;
    13 //                                 }
    14 //                            }
    15 //                        }
    16 //                        ,
    17                         validateedit:{
    18                             fn:function(editor,e){
    19                             
    20                                 var i = parseInt(e.value);
    21                                 if(e.value > 100)
    22                                 {
    23                                     //e.cancle = true;
    24                                     return false;
    25                                 }
    26                             }  
    27                         }
    28                    }
    29         
    30     });
  • 相关阅读:
    <HTTP>ASI实现的注册方法:利用http的get和post两种方式
    <Ruby>社区服务端启动流程
    <iOS>ASIHTTPRequest和ASIDownloadCache实现本地缓存
    <iOS>关于Xcode上的Other linker flags
    <HTTP>ASI实现的登陆方法
    【pool drain】和【pool release】区别
    <UI>TableViewCELL长按事件
    <UI>UIView的autoresizingMask属性
    <UI>自定义UITableView的右侧索引
    <cocos2D>ccLabel相关
  • 原文地址:https://www.cnblogs.com/baishahe/p/2529458.html
Copyright © 2011-2022 走看看