Ext JS 4 - 如何控制控制器内的rowEditor

时间:2012-08-11 12:00:59

标签: extjs extjs4 extjs4.1 extjs-mvc

我想学习如何控制器内的控制器rowEditor插件..

这是rowEditor定义:

Ext.define(appName + '.view.department.DepartmentGrid', {

    initComponent: function() {

       this.rowEditor = Ext.create('Ext.grid.plugin.RowEditing', {
          clicksToEdit: 2
       });

    }

}

**控制器**

this.control({
    'departmentgrid': {
        // ??
    }
});

1 个答案:

答案 0 :(得分:6)

它位于文档中:http://docs.sencha.com/ext-js/4-1/#!/api/Ext.grid.plugin.RowEditing-event-edit

this.control({
    'departmentgrid': {
        edit: this.onDepartmentGridEdit
    }
});