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     });
  • 相关阅读:
    MySQL服务器变量:MySQL系列之八
    存储引擎:MySQL系列之七
    用户与授权:MySQL系列之六
    视图、存储函数、存储过程、触发器:MySQL系列之五
    SQL语法:MySQL系列之四
    关系型数据库基础概念:MySQL系列之开篇
    基础篇:MySQL系列之三
    多实例:MySQL系列之二
    安装篇:MySQL系列之一
    DNS
  • 原文地址:https://www.cnblogs.com/baishahe/p/2529458.html
Copyright © 2011-2022 走看看