Clear Up
SharpKit Reference

EditingEvents Class

Namespace: Ext.grid.plugin

Base Types

Constructors

Name Description
EditingEvents(Object[])

Methods

Name Description
beforeedit(Editing, object, object) Fires before editing is triggered. Return false from event handler to stop the editing.
canceledit(Editing, object, object) Fires when the user started editing but then cancelled the edit.
edit(Editing, object, object) Fires after a editing. Usage example:
grid.on('edit', function(editor, e) {
            // commit the changes right after editing finished
            e.record.commit();
            });
            
validateedit(Editing, object, object) Fires after editing, but before the value is set in the record. Return false from event handler to cancel the change. Usage example showing how to remove the red triangle (dirty record indicator) from some records (not all). By observing the grid's validateedit event, it can be cancelled if the edit occurs on a targeted row (for example) and then setting the field's new value in the Record directly:
grid.on('validateedit', function(editor, e) {
            var myTargetRow = 6;
            if (e.rowIdx == myTargetRow) {
            e.cancel = true;
            e.record.data[e.field] = e.value;
            }
            });
            
© Copyright 2005-2011 SharpKit. All rights reserved.