grid使用cellEditing或者是RowEditing,处于编辑状态的时候,如何让文本框的文字选中,求解
想给1000分的 最多只能100Ext JS

解决方案 »

  1.   

    就是在这个单元格获取焦点的时候 设置成选中 试试这个 我没调试 以前写过textfiled的columns: [{
                id: 'common',
                header: 'Common Name',
                dataIndex: 'common',
                width: 220,
                // use shorthand alias defined above
                editor: new fm.TextField({
                    allowBlank: false,
                    listeners  : {   
                    'focus':function(){   
                        this.selectText();   
                   }   
                }   
                })
            }]