X-Git-Url: http://git.roojs.org/?a=blobdiff_plain;f=roojs-debug.js;h=bbfe5cb85ef225f8ac3c6838b16bd643c33921e2;hb=refs%2Fheads%2Fwip_alan_T6652_pass_gridview_events_into_grid;hp=257bcc48dca6d05ffd91cf1c9e0e7ce185cf0365;hpb=86b8de9b171833430cbdebcd05af0a1240f5832f;p=roojs1 diff --git a/roojs-debug.js b/roojs-debug.js index 257bcc48dc..bbfe5cb85e 100644 --- a/roojs-debug.js +++ b/roojs-debug.js @@ -55398,7 +55398,52 @@ Roo.grid.Grid = function(container, config){ * Fires when the grid is rendered * @param {Grid} grid */ - 'render' : true + 'render' : true, + + /** + * @event beforerowremoved + * Fires before row is removed + * @param {Roo.grid.GridView} gridview + */ + "beforerowremoved" : true, + /** + * @event beforerowsinserted + * Fires before row is inserted + * @param {Roo.grid.GridView} grid + */ + "beforerowsinserted" : true, + /** + * @event beforerefresh + * Fires before grid is refresh + * @param {Roo.grid.GridView} gridView + */ + "beforerefresh" : true, + /** + * @event rowremoved + * Fires when row is removed + * @param {Roo.grid.GridView} grid + */ + "rowremoved" : true, + /** + * @event rowsinserted + * Fires when the row is inserted + * @param {Roo.grid.GridView} grid + */ + "rowsinserted" : true, + /** + * @event rowupdated + * Fires when the row is updated + * @param {Roo.grid.GridView} grid + */ + "rowupdated" : true, + /** + * @event refresh + * Fires when the grid is refreshed + * @param {Roo.grid.GridView} grid + */ + "refresh" : true + + }); Roo.grid.Grid.superclass.constructor.call(this); @@ -55843,6 +55888,11 @@ Roo.extend(Roo.grid.Grid, Roo.util.Observable, { getView : function(){ if(!this.view){ this.view = new Roo.grid.GridView(this.viewConfig); + this.view.relayEvents(this, [ + "beforerowremoved", "beforerowsinserted", + "beforerefresh", "rowremoved", + "rowsinserted", "rowupdated" ,"refresh" + ]); } return this.view; }, @@ -55954,7 +56004,7 @@ Roo.extend(Roo.grid.AbstractGridView, Roo.util.Observable, { this.splitSelector, cid, " {\n}\n"); } return Roo.util.CSS.createStyleSheet(ruleBuf.join(""), rulesId); - } + } });/* * Based on: * Ext JS Library 1.1.1