3 * Copyright(c) 2006-2009 Ext JS, LLC
5 * http://www.extjs.com/license
8 * @class Ext.grid.GridPanel
\r
10 * <p>This class represents the primary interface of a component based grid control to represent data
\r
11 * in a tabular format of rows and columns. The GridPanel is composed of the following:</p>
\r
12 * <div class="mdetail-params"><ul>
\r
13 * <li><b>{@link Ext.data.Store Store}</b> : The Model holding the data records (rows)
\r
14 * <div class="sub-desc"></div></li>
\r
15 * <li><b>{@link Ext.grid.ColumnModel Column model}</b> : Column makeup
\r
16 * <div class="sub-desc"></div></li>
\r
17 * <li><b>{@link Ext.grid.GridView View}</b> : Encapsulates the user interface
\r
18 * <div class="sub-desc"></div></li>
\r
19 * <li><b>{@link Ext.grid.AbstractSelectionModel selection model}</b> : Selection behavior
\r
20 * <div class="sub-desc"></div></li>
\r
22 * <p>Example usage:</p>
\r
24 var grid = new Ext.grid.GridPanel({
\r
25 {@link #store}: new (@link Ext.data.Store}({
\r
26 {@link Ext.data.Store#autoDestroy autoDestroy}: true,
\r
27 {@link Ext.data.Store#reader reader}: reader,
\r
28 {@link Ext.data.Store#data data}: xg.dummyData
\r
31 {id: 'company', header: 'Company', width: 200, sortable: true, dataIndex: 'company'},
\r
32 {header: 'Price', width: 120, sortable: true, renderer: Ext.util.Format.usMoney, dataIndex: 'price'},
\r
33 {header: 'Change', width: 120, sortable: true, dataIndex: 'change'},
\r
34 {header: '% Change', width: 120, sortable: true, dataIndex: 'pctChange'},
\r
35 // instead of specifying renderer: Ext.util.Format.dateRenderer('m/d/Y') use xtype
\r
36 {header: 'Last Updated', width: 135, sortable: true, dataIndex: 'lastChange', xtype: 'datecolumn', format: 'M d, Y'}
\r
38 {@link #viewConfig}: {
\r
39 {@link Ext.grid.GridView#forceFit forceFit}: true,
\r
41 // Return CSS class to apply to rows depending upon data values
\r
42 {@link Ext.grid.GridView#getRowClass getRowClass}: function(record, index) {
\r
43 var c = record.{@link Ext.data.Record#get get}('change');
\r
45 return 'price-fall';
\r
47 return 'price-rise';
\r
51 {@link #sm}: new Ext.grid.RowSelectionModel({singleSelect:true}),
\r
55 title: 'Framed with Row Selection and Horizontal Scrolling',
\r
56 iconCls: 'icon-grid'
\r
59 * <p><b><u>Notes:</u></b></p>
\r
60 * <div class="mdetail-params"><ul>
\r
61 * <li>Although this class inherits many configuration options from base classes, some of them
\r
62 * (such as autoScroll, autoWidth, layout, items, etc) are not used by this class, and will
\r
63 * have no effect.</li>
\r
64 * <li>A grid <b>requires</b> a width in which to scroll its columns, and a height in which to
\r
65 * scroll its rows. These dimensions can either be set explicitly through the
\r
66 * <tt>{@link Ext.BoxComponent#height height}</tt> and <tt>{@link Ext.BoxComponent#width width}</tt>
\r
67 * configuration options or implicitly set by using the grid as a child item of a
\r
68 * {@link Ext.Container Container} which will have a {@link Ext.Container#layout layout manager}
\r
69 * provide the sizing of its child items (for example the Container of the Grid may specify
\r
70 * <tt>{@link Ext.Container#layout layout}:'fit'</tt>).</li>
\r
71 * <li>To access the data in a Grid, it is necessary to use the data model encapsulated
\r
72 * by the {@link #store Store}. See the {@link #cellclick} event for more details.</li>
\r
75 * @param {Object} config The config object
\r
78 Ext.grid.GridPanel = Ext.extend(Ext.Panel, {
\r
80 * @cfg {String} autoExpandColumn
\r
81 * <p>The <tt>{@link Ext.grid.Column#id id}</tt> of a {@link Ext.grid.Column column} in
\r
82 * this grid that should expand to fill unused space. This value specified here can not
\r
83 * be <tt>0</tt>.</p>
\r
84 * <br><p><b>Note</b>: If the Grid's {@link Ext.grid.GridView view} is configured with
\r
85 * <tt>{@link Ext.grid.GridView#forceFit forceFit}=true</tt> the <tt>autoExpandColumn</tt>
\r
86 * is ignored. See {@link Ext.grid.Column}.<tt>{@link Ext.grid.Column#width width}</tt>
\r
87 * for additional details.</p>
\r
88 * <p>See <tt>{@link #autoExpandMax}</tt> and <tt>{@link #autoExpandMin}</tt> also.</p>
\r
90 autoExpandColumn : false,
\r
92 * @cfg {Number} autoExpandMax The maximum width the <tt>{@link #autoExpandColumn}</tt>
\r
93 * can have (if enabled). Defaults to <tt>1000</tt>.
\r
95 autoExpandMax : 1000,
\r
97 * @cfg {Number} autoExpandMin The minimum width the <tt>{@link #autoExpandColumn}</tt>
\r
98 * can have (if enabled). Defaults to <tt>50</tt>.
\r
100 autoExpandMin : 50,
\r
102 * @cfg {Boolean} columnLines <tt>true</tt> to add css for column separation lines.
\r
103 * Default is <tt>false</tt>.
\r
105 columnLines : false,
\r
107 * @cfg {Object} cm Shorthand for <tt>{@link #colModel}</tt>.
\r
110 * @cfg {Object} colModel The {@link Ext.grid.ColumnModel} to use when rendering the grid (required).
\r
113 * @cfg {Array} columns An array of {@link Ext.grid.Column columns} to auto create a
\r
114 * {@link Ext.grid.ColumnModel}. The ColumnModel may be explicitly created via the
\r
115 * <tt>{@link #colModel}</tt> configuration property.
\r
118 * @cfg {String} ddGroup The DD group this GridPanel belongs to. Defaults to <tt>'GridDD'</tt> if not specified.
\r
121 * @cfg {String} ddText
\r
122 * Configures the text in the drag proxy. Defaults to:
\r
124 * ddText : '{0} selected row{1}'
\r
126 * <tt>{0}</tt> is replaced with the number of selected rows.
\r
128 ddText : '{0} selected row{1}',
\r
130 * @cfg {Boolean} deferRowRender <P>Defaults to <tt>true</tt> to enable deferred row rendering.</p>
\r
131 * <p>This allows the GridPanel to be initially rendered empty, with the expensive update of the row
\r
132 * structure deferred so that layouts with GridPanels appear more quickly.</p>
\r
134 deferRowRender : true,
\r
136 * @cfg {Boolean} disableSelection <p><tt>true</tt> to disable selections in the grid. Defaults to <tt>false</tt>.</p>
\r
137 * <p>Ignored if a {@link #selModel SelectionModel} is specified.</p>
\r
140 * @cfg {Boolean} enableColumnResize <tt>false</tt> to turn off column resizing for the whole grid. Defaults to <tt>true</tt>.
\r
143 * @cfg {Boolean} enableColumnHide Defaults to <tt>true</tt> to enable hiding of columns with the header context menu.
\r
145 enableColumnHide : true,
\r
147 * @cfg {Boolean} enableColumnMove Defaults to <tt>true</tt> to enable drag and drop reorder of columns. <tt>false</tt>
\r
148 * to turn off column reordering via drag drop.
\r
150 enableColumnMove : true,
\r
152 * @cfg {Boolean} enableDragDrop <p>Enables dragging of the selected rows of the GridPanel. Defaults to <tt>false</tt>.</p>
\r
153 * <p>Setting this to <b><tt>true</tt></b> causes this GridPanel's {@link #getView GridView} to
\r
154 * create an instance of {@link Ext.grid.GridDragZone}. <b>Note</b>: this is available only <b>after</b>
\r
155 * the Grid has been rendered as the GridView's <tt>{@link Ext.grid.GridView#dragZone dragZone}</tt>
\r
157 * <p>A cooperating {@link Ext.dd.DropZone DropZone} must be created who's implementations of
\r
158 * {@link Ext.dd.DropZone#onNodeEnter onNodeEnter}, {@link Ext.dd.DropZone#onNodeOver onNodeOver},
\r
159 * {@link Ext.dd.DropZone#onNodeOut onNodeOut} and {@link Ext.dd.DropZone#onNodeDrop onNodeDrop} are able
\r
160 * to process the {@link Ext.grid.GridDragZone#getDragData data} which is provided.</p>
\r
162 enableDragDrop : false,
\r
164 * @cfg {Boolean} enableHdMenu Defaults to <tt>true</tt> to enable the drop down button for menu in the headers.
\r
166 enableHdMenu : true,
\r
168 * @cfg {Boolean} hideHeaders True to hide the grid's header. Defaults to <code>false</code>.
\r
171 * @cfg {Object} loadMask An {@link Ext.LoadMask} config or true to mask the grid while
\r
172 * loading. Defaults to <code>false</code>.
\r
176 * @cfg {Number} maxHeight Sets the maximum height of the grid - ignored if <tt>autoHeight</tt> is not on.
\r
179 * @cfg {Number} minColumnWidth The minimum width a column can be resized to. Defaults to <tt>25</tt>.
\r
181 minColumnWidth : 25,
\r
183 * @cfg {Object} sm Shorthand for <tt>{@link #selModel}</tt>.
\r
186 * @cfg {Object} selModel Any subclass of {@link Ext.grid.AbstractSelectionModel} that will provide
\r
187 * the selection model for the grid (defaults to {@link Ext.grid.RowSelectionModel} if not specified).
\r
190 * @cfg {Ext.data.Store} store The {@link Ext.data.Store} the grid should use as its data source (required).
\r
193 * @cfg {Boolean} stripeRows <tt>true</tt> to stripe the rows. Default is <tt>false</tt>.
\r
194 * <p>This causes the CSS class <tt><b>x-grid3-row-alt</b></tt> to be added to alternate rows of
\r
195 * the grid. A default CSS rule is provided which sets a background colour, but you can override this
\r
196 * with a rule which either overrides the <b>background-color</b> style using the '!important'
\r
197 * modifier, or which uses a CSS selector of higher specificity.</p>
\r
199 stripeRows : false,
\r
201 * @cfg {Boolean} trackMouseOver True to highlight rows when the mouse is over. Default is <tt>true</tt>
\r
202 * for GridPanel, but <tt>false</tt> for EditorGridPanel.
\r
204 trackMouseOver : true,
\r
206 * @cfg {Array} stateEvents
\r
207 * An array of events that, when fired, should trigger this component to save its state.
\r
208 * Defaults to:<pre><code>
\r
209 * stateEvents: ['columnmove', 'columnresize', 'sortchange']
\r
211 * <p>These can be any types of events supported by this component, including browser or
\r
212 * custom events (e.g., <tt>['click', 'customerchange']</tt>).</p>
\r
213 * <p>See {@link Ext.Component#stateful} for an explanation of saving and restoring
\r
214 * Component state.</p>
\r
216 stateEvents : ['columnmove', 'columnresize', 'sortchange'],
\r
218 * @cfg {Object} view The {@link Ext.grid.GridView} used by the grid. This can be set
\r
219 * before a call to {@link Ext.Component#render render()}.
\r
223 * @cfg {Object} viewConfig A config object that will be applied to the grid's UI view. Any of
\r
224 * the config options available for {@link Ext.grid.GridView} can be specified here. This option
\r
225 * is ignored if <tt>{@link #view}</tt> is specified.
\r
234 initComponent : function(){
\r
235 Ext.grid.GridPanel.superclass.initComponent.call(this);
\r
237 if(this.columnLines){
\r
238 this.cls = (this.cls || '') + ' x-grid-with-col-lines';
\r
240 // override any provided value since it isn't valid
\r
241 // and is causing too many bug reports ;)
\r
242 this.autoScroll = false;
\r
243 this.autoWidth = false;
\r
245 if(Ext.isArray(this.columns)){
\r
246 this.colModel = new Ext.grid.ColumnModel(this.columns);
\r
247 delete this.columns;
\r
250 // check and correct shorthanded configs
\r
252 this.store = this.ds;
\r
256 this.colModel = this.cm;
\r
260 this.selModel = this.sm;
\r
263 this.store = Ext.StoreMgr.lookup(this.store);
\r
269 * The raw click event for the entire grid.
\r
270 * @param {Ext.EventObject} e
\r
275 * The raw dblclick event for the entire grid.
\r
276 * @param {Ext.EventObject} e
\r
280 * @event contextmenu
\r
281 * The raw contextmenu event for the entire grid.
\r
282 * @param {Ext.EventObject} e
\r
287 * The raw mousedown event for the entire grid.
\r
288 * @param {Ext.EventObject} e
\r
293 * The raw mouseup event for the entire grid.
\r
294 * @param {Ext.EventObject} e
\r
299 * The raw mouseover event for the entire grid.
\r
300 * @param {Ext.EventObject} e
\r
305 * The raw mouseout event for the entire grid.
\r
306 * @param {Ext.EventObject} e
\r
311 * The raw keypress event for the entire grid.
\r
312 * @param {Ext.EventObject} e
\r
317 * The raw keydown event for the entire grid.
\r
318 * @param {Ext.EventObject} e
\r
324 * @event cellmousedown
\r
325 * Fires before a cell is clicked
\r
326 * @param {Grid} this
\r
327 * @param {Number} rowIndex
\r
328 * @param {Number} columnIndex
\r
329 * @param {Ext.EventObject} e
\r
333 * @event rowmousedown
\r
334 * Fires before a row is clicked
\r
335 * @param {Grid} this
\r
336 * @param {Number} rowIndex
\r
337 * @param {Ext.EventObject} e
\r
341 * @event headermousedown
\r
342 * Fires before a header is clicked
\r
343 * @param {Grid} this
\r
344 * @param {Number} columnIndex
\r
345 * @param {Ext.EventObject} e
\r
351 * Fires when a cell is clicked.
\r
352 * The data for the cell is drawn from the {@link Ext.data.Record Record}
\r
353 * for this row. To access the data in the listener function use the
\r
354 * following technique:
\r
356 function(grid, rowIndex, columnIndex, e) {
\r
357 var record = grid.getStore().getAt(rowIndex); // Get the Record
\r
358 var fieldName = grid.getColumnModel().getDataIndex(columnIndex); // Get field name
\r
359 var data = record.get(fieldName);
\r
362 * @param {Grid} this
\r
363 * @param {Number} rowIndex
\r
364 * @param {Number} columnIndex
\r
365 * @param {Ext.EventObject} e
\r
369 * @event celldblclick
\r
370 * Fires when a cell is double clicked
\r
371 * @param {Grid} this
\r
372 * @param {Number} rowIndex
\r
373 * @param {Number} columnIndex
\r
374 * @param {Ext.EventObject} e
\r
379 * Fires when a row is clicked
\r
380 * @param {Grid} this
\r
381 * @param {Number} rowIndex
\r
382 * @param {Ext.EventObject} e
\r
386 * @event rowdblclick
\r
387 * Fires when a row is double clicked
\r
388 * @param {Grid} this
\r
389 * @param {Number} rowIndex
\r
390 * @param {Ext.EventObject} e
\r
394 * @event headerclick
\r
395 * Fires when a header is clicked
\r
396 * @param {Grid} this
\r
397 * @param {Number} columnIndex
\r
398 * @param {Ext.EventObject} e
\r
402 * @event headerdblclick
\r
403 * Fires when a header cell is double clicked
\r
404 * @param {Grid} this
\r
405 * @param {Number} columnIndex
\r
406 * @param {Ext.EventObject} e
\r
410 * @event rowcontextmenu
\r
411 * Fires when a row is right clicked
\r
412 * @param {Grid} this
\r
413 * @param {Number} rowIndex
\r
414 * @param {Ext.EventObject} e
\r
418 * @event cellcontextmenu
\r
419 * Fires when a cell is right clicked
\r
420 * @param {Grid} this
\r
421 * @param {Number} rowIndex
\r
422 * @param {Number} cellIndex
\r
423 * @param {Ext.EventObject} e
\r
427 * @event headercontextmenu
\r
428 * Fires when a header is right clicked
\r
429 * @param {Grid} this
\r
430 * @param {Number} columnIndex
\r
431 * @param {Ext.EventObject} e
\r
433 'headercontextmenu',
\r
435 * @event bodyscroll
\r
436 * Fires when the body element is scrolled
\r
437 * @param {Number} scrollLeft
\r
438 * @param {Number} scrollTop
\r
442 * @event columnresize
\r
443 * Fires when the user resizes a column
\r
444 * @param {Number} columnIndex
\r
445 * @param {Number} newSize
\r
449 * @event columnmove
\r
450 * Fires when the user moves a column
\r
451 * @param {Number} oldIndex
\r
452 * @param {Number} newIndex
\r
456 * @event sortchange
\r
457 * Fires when the grid's store sort changes
\r
458 * @param {Grid} this
\r
459 * @param {Object} sortInfo An object with the keys field and direction
\r
463 * @event reconfigure
\r
464 * Fires when the grid is reconfigured with a new store and/or column model.
\r
465 * @param {Grid} this
\r
466 * @param {Ext.data.Store} store The new store
\r
467 * @param {Ext.grid.ColumnModel} colModel The new column model
\r
474 onRender : function(ct, position){
\r
475 Ext.grid.GridPanel.superclass.onRender.apply(this, arguments);
\r
479 this.el.addClass('x-grid-panel');
\r
481 var view = this.getView();
\r
485 mousedown: this.onMouseDown,
\r
486 click: this.onClick,
\r
487 dblclick: this.onDblClick,
\r
488 contextmenu: this.onContextMenu,
\r
489 keydown: this.onKeyDown,
\r
493 this.relayEvents(c, ['mousedown','mouseup','mouseover','mouseout','keypress']);
\r
495 this.getSelectionModel().init(this);
\r
496 this.view.render();
\r
500 initEvents : function(){
\r
501 Ext.grid.GridPanel.superclass.initEvents.call(this);
\r
504 this.loadMask = new Ext.LoadMask(this.bwrap,
\r
505 Ext.apply({store:this.store}, this.loadMask));
\r
509 initStateEvents : function(){
\r
510 Ext.grid.GridPanel.superclass.initStateEvents.call(this);
\r
511 this.mon(this.colModel, 'hiddenchange', this.saveState, this, {delay: 100});
\r
514 applyState : function(state){
\r
515 var cm = this.colModel;
\r
516 var cs = state.columns;
\r
518 for(var i = 0, len = cs.length; i < len; i++){
\r
520 var c = cm.getColumnById(s.id);
\r
522 c.hidden = s.hidden;
\r
524 var oldIndex = cm.getIndexById(s.id);
\r
526 cm.moveColumn(oldIndex, i);
\r
531 if(state.sort && this.store){
\r
532 this.store[this.store.remoteSort ? 'setDefaultSort' : 'sort'](state.sort.field, state.sort.direction);
\r
534 delete state.columns;
\r
536 Ext.grid.GridPanel.superclass.applyState.call(this, state);
\r
539 getState : function(){
\r
540 var o = {columns: []};
\r
541 for(var i = 0, c; (c = this.colModel.config[i]); i++){
\r
547 o.columns[i].hidden = true;
\r
551 var ss = this.store.getSortState();
\r
560 afterRender : function(){
\r
561 Ext.grid.GridPanel.superclass.afterRender.call(this);
\r
562 this.view.layout();
\r
563 if(this.deferRowRender){
\r
564 this.view.afterRender.defer(10, this.view);
\r
566 this.view.afterRender();
\r
568 this.viewReady = true;
\r
572 * <p>Reconfigures the grid to use a different Store and Column Model
\r
573 * and fires the 'reconfigure' event. The View will be bound to the new
\r
574 * objects and refreshed.</p>
\r
575 * <p>Be aware that upon reconfiguring a GridPanel, certain existing settings <i>may</i> become
\r
576 * invalidated. For example the configured {@link #autoExpandColumn} may no longer exist in the
\r
577 * new ColumnModel. Also, an existing {@link Ext.PagingToolbar PagingToolbar} will still be bound
\r
578 * to the old Store, and will need rebinding. Any {@link #plugins} might also need reconfiguring
\r
579 * with the new data.</p>
\r
580 * @param {Ext.data.Store} store The new {@link Ext.data.Store} object
\r
581 * @param {Ext.grid.ColumnModel} colModel The new {@link Ext.grid.ColumnModel} object
\r
583 reconfigure : function(store, colModel){
\r
585 this.loadMask.destroy();
\r
586 this.loadMask = new Ext.LoadMask(this.bwrap,
\r
587 Ext.apply({}, {store:store}, this.initialConfig.loadMask));
\r
589 this.view.initData(store, colModel);
\r
590 this.store = store;
\r
591 this.colModel = colModel;
\r
593 this.view.refresh(true);
\r
595 this.fireEvent('reconfigure', this, store, colModel);
\r
599 onKeyDown : function(e){
\r
600 this.fireEvent('keydown', e);
\r
604 onDestroy : function(){
\r
607 c.removeAllListeners();
\r
609 Ext.destroy(this.view, this.loadMask);
\r
610 }else if(this.store && this.store.autoDestroy){
\r
611 this.store.destroy();
\r
613 Ext.destroy(this.colModel, this.selModel);
\r
614 this.store = this.selModel = this.colModel = this.view = this.loadMask = null;
\r
615 Ext.grid.GridPanel.superclass.onDestroy.call(this);
\r
619 processEvent : function(name, e){
\r
620 this.fireEvent(name, e);
\r
621 var t = e.getTarget();
\r
623 var header = v.findHeaderIndex(t);
\r
624 if(header !== false){
\r
625 this.fireEvent('header' + name, this, header, e);
\r
627 var row = v.findRowIndex(t);
\r
628 var cell = v.findCellIndex(t);
\r
630 this.fireEvent('row' + name, this, row, e);
\r
631 if(cell !== false){
\r
632 this.fireEvent('cell' + name, this, row, cell, e);
\r
639 onClick : function(e){
\r
640 this.processEvent('click', e);
\r
644 onMouseDown : function(e){
\r
645 this.processEvent('mousedown', e);
\r
649 onContextMenu : function(e, t){
\r
650 this.processEvent('contextmenu', e);
\r
654 onDblClick : function(e){
\r
655 this.processEvent('dblclick', e);
\r
659 walkCells : function(row, col, step, fn, scope){
\r
660 var cm = this.colModel, clen = cm.getColumnCount();
\r
661 var ds = this.store, rlen = ds.getCount(), first = true;
\r
673 if(fn.call(scope || this, row, col, cm) === true){
\r
691 if(fn.call(scope || this, row, col, cm) === true){
\r
703 onResize : function(){
\r
704 Ext.grid.GridPanel.superclass.onResize.apply(this, arguments);
\r
705 if(this.viewReady){
\r
706 this.view.layout();
\r
711 * Returns the grid's underlying element.
\r
712 * @return {Element} The element
\r
714 getGridEl : function(){
\r
718 // private for compatibility, overridden by editor grid
\r
719 stopEditing : Ext.emptyFn,
\r
722 * Returns the grid's selection model configured by the <code>{@link #selModel}</code>
\r
723 * configuration option. If no selection model was configured, this will create
\r
724 * and return a {@link Ext.grid.RowSelectionModel RowSelectionModel}.
\r
725 * @return {SelectionModel}
\r
727 getSelectionModel : function(){
\r
728 if(!this.selModel){
\r
729 this.selModel = new Ext.grid.RowSelectionModel(
\r
730 this.disableSelection ? {selectRow: Ext.emptyFn} : null);
\r
732 return this.selModel;
\r
736 * Returns the grid's data store.
\r
737 * @return {Ext.data.Store} The store
\r
739 getStore : function(){
\r
744 * Returns the grid's ColumnModel.
\r
745 * @return {Ext.grid.ColumnModel} The column model
\r
747 getColumnModel : function(){
\r
748 return this.colModel;
\r
752 * Returns the grid's GridView object.
\r
753 * @return {Ext.grid.GridView} The grid view
\r
755 getView : function(){
\r
757 this.view = new Ext.grid.GridView(this.viewConfig);
\r
762 * Called to get grid's drag proxy text, by default returns this.ddText.
\r
763 * @return {String} The text
\r
765 getDragDropText : function(){
\r
766 var count = this.selModel.getCount();
\r
767 return String.format(this.ddText, count, count == 1 ? '' : 's');
\r
771 * @cfg {String/Number} activeItem
\r
775 * @cfg {Boolean} autoDestroy
\r
779 * @cfg {Object/String/Function} autoLoad
\r
783 * @cfg {Boolean} autoWidth
\r
787 * @cfg {Boolean/Number} bufferResize
\r
791 * @cfg {String} defaultType
\r
795 * @cfg {Object} defaults
\r
799 * @cfg {Boolean} hideBorders
\r
803 * @cfg {Mixed} items
\r
807 * @cfg {String} layout
\r
811 * @cfg {Object} layoutConfig
\r
815 * @cfg {Boolean} monitorResize
\r
831 * @method doLayout
\r
843 * @method findById
\r
847 * @method findByType
\r
851 * @method getComponent
\r
855 * @method getLayout
\r
859 * @method getUpdater
\r
879 * @event afterLayout
\r
883 * @event beforeadd
\r
887 * @event beforeremove
\r
898 * @cfg {String} allowDomMove @hide
\r
901 * @cfg {String} autoEl @hide
\r
904 * @cfg {String} applyTo @hide
\r
907 * @cfg {String} autoScroll @hide
\r
910 * @cfg {String} bodyBorder @hide
\r
913 * @cfg {String} bodyStyle @hide
\r
916 * @cfg {String} contentEl @hide
\r
919 * @cfg {String} disabledClass @hide
\r
922 * @cfg {String} elements @hide
\r
925 * @cfg {String} html @hide
\r
928 * @cfg {Boolean} preventBodyReset
\r
932 * @property disabled
\r
936 * @method applyToMarkup
\r
948 * @method setDisabled
\r
952 Ext.reg('grid', Ext.grid.GridPanel);