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     });
  • 相关阅读:
    Java study 1:The note of studying Socket which based UDP
    关于Meta标签中formatdetection属性及含义
    编辑sass报错:error style.scss (Line 3: Invalid GBK character "\xE5")解决办法
    比较三个 CSS 预处理器:Sass、LESS 和 Stylus(下)
    vue引入bootstrap、jquery
    Something about SeekingJobResume简历
    Something about SeekingJobTelInterview(电话面试)
    此时彼时
    The method getTextContent() is undefined for the type Node
    单例模式实现方式
  • 原文地址:https://www.cnblogs.com/baishahe/p/2529458.html
Copyright © 2011-2022 走看看