Ext4.define('Kwf.Ext4.Controller.Grid.InlineEditing', {
    mixins: {
        observable: 'Ext.util.Observable'
    },
    constructor: function(config) {
        this.mixins.observable.constructor.call(this, config);
        this.init();
    },

    init: function()
    {
        var grid = this.grid;
        if (!this.gridAddButton) this.gridAddButton = grid.down('button#add');
        if (this.gridAddButton) {
            this.gridAddButton.on('click', function() {
                var s = grid.getStore();
                var row = s.model.create();
                s.add(row);
                this.fireEvent('add', row);
                grid.getSelectionModel().select(row);
                grid.getPlugin('cellediting').startEdit(row, 1);
            }, this);
        }
    }
});

@@ -313,9 +313,15 @@
 if (
-!
+typeof 
 this
@@ -334,16 +334,31 @@
 ddButton
+ == 'undefined'
 ) this.g
@@ -397,16 +397,120 @@
 #add');%0A
+        if (typeof this.gridSaveButton == 'undefined') this.gridSaveButton = grid.down('button#save');%0A%0A
         
@@ -798,24 +798,24 @@
 elect(row);%0A
-
             
@@ -898,16 +898,208 @@
        %7D
+%0A%0A        if (this.gridSaveButton) %7B%0A            this.gridSaveButton.on('click', function() %7B%0A                var s = grid.getStore();%0A                s.sync();%0A            %7D, this);%0A        %7D
 %0A    %7D%0A%7D

add save button to InlineEditing grid