本例为事件触发:

点击按钮,触发某一行为可编辑。

this._buttonNewMemberApply = new Ext.Toolbar.Button({
        iconCls: 'icon-edit',
        text: '排序',
        handler: function () {
            var editor =  new Ext.grid.GridEditor(new Ext.form.NumberField({
                allowBlank: false
            }));
            var cm = panel._columnModel;
            var index = cm.getIndexById("rank"); // 不管用,所以索性直接用的索引号 5
            cm.setEditor(5, editor);
        },
        hidden: false,
        tooltip: '<b>新建成员申购</b><br/>新建成员申购'
    })