3 * Copyright(c) 2006-2010 Ext JS, Inc.
5 * http://www.extjs.com/license
8 * @class Ext.grid.GridPanel
10 * <p>This class represents the primary interface of a component based grid control to represent data
11 * in a tabular format of rows and columns. The GridPanel is composed of the following:</p>
12 * <div class="mdetail-params"><ul>
13 * <li><b>{@link Ext.data.Store Store}</b> : The Model holding the data records (rows)
14 * <div class="sub-desc"></div></li>
15 * <li><b>{@link Ext.grid.ColumnModel Column model}</b> : Column makeup
16 * <div class="sub-desc"></div></li>
17 * <li><b>{@link Ext.grid.GridView View}</b> : Encapsulates the user interface
18 * <div class="sub-desc"></div></li>
19 * <li><b>{@link Ext.grid.AbstractSelectionModel selection model}</b> : Selection behavior
20 * <div class="sub-desc"></div></li>
22 * <p>Example usage:</p>
24 var grid = new Ext.grid.GridPanel({
25 {@link #store}: new {@link Ext.data.Store}({
26 {@link Ext.data.Store#autoDestroy autoDestroy}: true,
27 {@link Ext.data.Store#reader reader}: reader,
28 {@link Ext.data.Store#data data}: xg.dummyData
30 {@link #colModel}: new {@link Ext.grid.ColumnModel}({
31 {@link Ext.grid.ColumnModel#defaults defaults}: {
35 {@link Ext.grid.ColumnModel#columns columns}: [
36 {id: 'company', header: 'Company', width: 200, sortable: true, dataIndex: 'company'},
37 {header: 'Price', renderer: Ext.util.Format.usMoney, dataIndex: 'price'},
38 {header: 'Change', dataIndex: 'change'},
39 {header: '% Change', dataIndex: 'pctChange'},
40 // instead of specifying renderer: Ext.util.Format.dateRenderer('m/d/Y') use xtype
42 header: 'Last Updated', width: 135, dataIndex: 'lastChange',
43 xtype: 'datecolumn', format: 'M d, Y'
47 {@link #viewConfig}: {
48 {@link Ext.grid.GridView#forceFit forceFit}: true,
50 // Return CSS class to apply to rows depending upon data values
51 {@link Ext.grid.GridView#getRowClass getRowClass}: function(record, index) {
52 var c = record.{@link Ext.data.Record#get get}('change');
60 {@link #sm}: new Ext.grid.RowSelectionModel({singleSelect:true}),
64 title: 'Framed with Row Selection and Horizontal Scrolling',
68 * <p><b><u>Notes:</u></b></p>
69 * <div class="mdetail-params"><ul>
70 * <li>Although this class inherits many configuration options from base classes, some of them
71 * (such as autoScroll, autoWidth, layout, items, etc) are not used by this class, and will
72 * have no effect.</li>
73 * <li>A grid <b>requires</b> a width in which to scroll its columns, and a height in which to
74 * scroll its rows. These dimensions can either be set explicitly through the
75 * <tt>{@link Ext.BoxComponent#height height}</tt> and <tt>{@link Ext.BoxComponent#width width}</tt>
76 * configuration options or implicitly set by using the grid as a child item of a
77 * {@link Ext.Container Container} which will have a {@link Ext.Container#layout layout manager}
78 * provide the sizing of its child items (for example the Container of the Grid may specify
79 * <tt>{@link Ext.Container#layout layout}:'fit'</tt>).</li>
80 * <li>To access the data in a Grid, it is necessary to use the data model encapsulated
81 * by the {@link #store Store}. See the {@link #cellclick} event for more details.</li>
84 * @param {Object} config The config object
87 Ext.grid.GridPanel = Ext.extend(Ext.Panel, {
89 * @cfg {String} autoExpandColumn
90 * <p>The <tt>{@link Ext.grid.Column#id id}</tt> of a {@link Ext.grid.Column column} in
91 * this grid that should expand to fill unused space. This value specified here can not
93 * <br><p><b>Note</b>: If the Grid's {@link Ext.grid.GridView view} is configured with
94 * <tt>{@link Ext.grid.GridView#forceFit forceFit}=true</tt> the <tt>autoExpandColumn</tt>
95 * is ignored. See {@link Ext.grid.Column}.<tt>{@link Ext.grid.Column#width width}</tt>
96 * for additional details.</p>
97 * <p>See <tt>{@link #autoExpandMax}</tt> and <tt>{@link #autoExpandMin}</tt> also.</p>
99 autoExpandColumn : false,
101 * @cfg {Number} autoExpandMax The maximum width the <tt>{@link #autoExpandColumn}</tt>
102 * can have (if enabled). Defaults to <tt>1000</tt>.
104 autoExpandMax : 1000,
106 * @cfg {Number} autoExpandMin The minimum width the <tt>{@link #autoExpandColumn}</tt>
107 * can have (if enabled). Defaults to <tt>50</tt>.
111 * @cfg {Boolean} columnLines <tt>true</tt> to add css for column separation lines.
112 * Default is <tt>false</tt>.
116 * @cfg {Object} cm Shorthand for <tt>{@link #colModel}</tt>.
119 * @cfg {Object} colModel The {@link Ext.grid.ColumnModel} to use when rendering the grid (required).
122 * @cfg {Array} columns An array of {@link Ext.grid.Column columns} to auto create a
123 * {@link Ext.grid.ColumnModel}. The ColumnModel may be explicitly created via the
124 * <tt>{@link #colModel}</tt> configuration property.
127 * @cfg {String} ddGroup The DD group this GridPanel belongs to. Defaults to <tt>'GridDD'</tt> if not specified.
130 * @cfg {String} ddText
131 * Configures the text in the drag proxy. Defaults to:
133 * ddText : '{0} selected row{1}'
135 * <tt>{0}</tt> is replaced with the number of selected rows.
137 ddText : '{0} selected row{1}',
139 * @cfg {Boolean} deferRowRender <P>Defaults to <tt>true</tt> to enable deferred row rendering.</p>
140 * <p>This allows the GridPanel to be initially rendered empty, with the expensive update of the row
141 * structure deferred so that layouts with GridPanels appear more quickly.</p>
143 deferRowRender : true,
145 * @cfg {Boolean} disableSelection <p><tt>true</tt> to disable selections in the grid. Defaults to <tt>false</tt>.</p>
146 * <p>Ignored if a {@link #selModel SelectionModel} is specified.</p>
149 * @cfg {Boolean} enableColumnResize <tt>false</tt> to turn off column resizing for the whole grid. Defaults to <tt>true</tt>.
152 * @cfg {Boolean} enableColumnHide
153 * Defaults to <tt>true</tt> to enable {@link Ext.grid.Column#hidden hiding of columns}
154 * with the {@link #enableHdMenu header menu}.
156 enableColumnHide : true,
158 * @cfg {Boolean} enableColumnMove Defaults to <tt>true</tt> to enable drag and drop reorder of columns. <tt>false</tt>
159 * to turn off column reordering via drag drop.
161 enableColumnMove : true,
163 * @cfg {Boolean} enableDragDrop <p>Enables dragging of the selected rows of the GridPanel. Defaults to <tt>false</tt>.</p>
164 * <p>Setting this to <b><tt>true</tt></b> causes this GridPanel's {@link #getView GridView} to
165 * create an instance of {@link Ext.grid.GridDragZone}. <b>Note</b>: this is available only <b>after</b>
166 * the Grid has been rendered as the GridView's <tt>{@link Ext.grid.GridView#dragZone dragZone}</tt>
168 * <p>A cooperating {@link Ext.dd.DropZone DropZone} must be created who's implementations of
169 * {@link Ext.dd.DropZone#onNodeEnter onNodeEnter}, {@link Ext.dd.DropZone#onNodeOver onNodeOver},
170 * {@link Ext.dd.DropZone#onNodeOut onNodeOut} and {@link Ext.dd.DropZone#onNodeDrop onNodeDrop} are able
171 * to process the {@link Ext.grid.GridDragZone#getDragData data} which is provided.</p>
173 enableDragDrop : false,
175 * @cfg {Boolean} enableHdMenu Defaults to <tt>true</tt> to enable the drop down button for menu in the headers.
179 * @cfg {Boolean} hideHeaders True to hide the grid's header. Defaults to <code>false</code>.
182 * @cfg {Object} loadMask An {@link Ext.LoadMask} config or true to mask the grid while
183 * loading. Defaults to <code>false</code>.
187 * @cfg {Number} maxHeight Sets the maximum height of the grid - ignored if <tt>autoHeight</tt> is not on.
190 * @cfg {Number} minColumnWidth The minimum width a column can be resized to. Defaults to <tt>25</tt>.
194 * @cfg {Object} sm Shorthand for <tt>{@link #selModel}</tt>.
197 * @cfg {Object} selModel Any subclass of {@link Ext.grid.AbstractSelectionModel} that will provide
198 * the selection model for the grid (defaults to {@link Ext.grid.RowSelectionModel} if not specified).
201 * @cfg {Ext.data.Store} store The {@link Ext.data.Store} the grid should use as its data source (required).
204 * @cfg {Boolean} stripeRows <tt>true</tt> to stripe the rows. Default is <tt>false</tt>.
205 * <p>This causes the CSS class <tt><b>x-grid3-row-alt</b></tt> to be added to alternate rows of
206 * the grid. A default CSS rule is provided which sets a background colour, but you can override this
207 * with a rule which either overrides the <b>background-color</b> style using the '!important'
208 * modifier, or which uses a CSS selector of higher specificity.</p>
212 * @cfg {Boolean} trackMouseOver True to highlight rows when the mouse is over. Default is <tt>true</tt>
213 * for GridPanel, but <tt>false</tt> for EditorGridPanel.
215 trackMouseOver : true,
217 * @cfg {Array} stateEvents
218 * An array of events that, when fired, should trigger this component to save its state.
219 * Defaults to:<pre><code>
220 * stateEvents: ['columnmove', 'columnresize', 'sortchange', 'groupchange']
222 * <p>These can be any types of events supported by this component, including browser or
223 * custom events (e.g., <tt>['click', 'customerchange']</tt>).</p>
224 * <p>See {@link Ext.Component#stateful} for an explanation of saving and restoring
225 * Component state.</p>
227 stateEvents : ['columnmove', 'columnresize', 'sortchange', 'groupchange'],
229 * @cfg {Object} view The {@link Ext.grid.GridView} used by the grid. This can be set
230 * before a call to {@link Ext.Component#render render()}.
235 * @cfg {Array} bubbleEvents
236 * <p>An array of events that, when fired, should be bubbled to any parent container.
237 * See {@link Ext.util.Observable#enableBubble}.
238 * Defaults to <tt>[]</tt>.
243 * @cfg {Object} viewConfig A config object that will be applied to the grid's UI view. Any of
244 * the config options available for {@link Ext.grid.GridView} can be specified here. This option
245 * is ignored if <tt>{@link #view}</tt> is specified.
254 initComponent : function(){
255 Ext.grid.GridPanel.superclass.initComponent.call(this);
257 if(this.columnLines){
258 this.cls = (this.cls || '') + ' x-grid-with-col-lines';
260 // override any provided value since it isn't valid
261 // and is causing too many bug reports ;)
262 this.autoScroll = false;
263 this.autoWidth = false;
265 if(Ext.isArray(this.columns)){
266 this.colModel = new Ext.grid.ColumnModel(this.columns);
270 // check and correct shorthanded configs
272 this.store = this.ds;
276 this.colModel = this.cm;
280 this.selModel = this.sm;
283 this.store = Ext.StoreMgr.lookup(this.store);
289 * The raw click event for the entire grid.
290 * @param {Ext.EventObject} e
295 * The raw dblclick event for the entire grid.
296 * @param {Ext.EventObject} e
301 * The raw contextmenu event for the entire grid.
302 * @param {Ext.EventObject} e
307 * The raw mousedown event for the entire grid.
308 * @param {Ext.EventObject} e
313 * The raw mouseup event for the entire grid.
314 * @param {Ext.EventObject} e
319 * The raw mouseover event for the entire grid.
320 * @param {Ext.EventObject} e
325 * The raw mouseout event for the entire grid.
326 * @param {Ext.EventObject} e
331 * The raw keypress event for the entire grid.
332 * @param {Ext.EventObject} e
337 * The raw keydown event for the entire grid.
338 * @param {Ext.EventObject} e
344 * @event cellmousedown
345 * Fires before a cell is clicked
347 * @param {Number} rowIndex
348 * @param {Number} columnIndex
349 * @param {Ext.EventObject} e
353 * @event rowmousedown
354 * Fires before a row is clicked
356 * @param {Number} rowIndex
357 * @param {Ext.EventObject} e
361 * @event headermousedown
362 * Fires before a header is clicked
364 * @param {Number} columnIndex
365 * @param {Ext.EventObject} e
370 * @event groupmousedown
371 * Fires before a group header is clicked. <b>Only applies for grids with a {@link Ext.grid.GroupingView GroupingView}</b>.
373 * @param {String} groupField
374 * @param {String} groupValue
375 * @param {Ext.EventObject} e
380 * @event rowbodymousedown
381 * Fires before the row body is clicked. <b>Only applies for grids with {@link Ext.grid.GridView#enableRowBody enableRowBody} configured.</b>
383 * @param {Number} rowIndex
384 * @param {Ext.EventObject} e
389 * @event containermousedown
390 * Fires before the container is clicked. The container consists of any part of the grid body that is not covered by a row.
392 * @param {Ext.EventObject} e
394 'containermousedown',
398 * Fires when a cell is clicked.
399 * The data for the cell is drawn from the {@link Ext.data.Record Record}
400 * for this row. To access the data in the listener function use the
401 * following technique:
403 function(grid, rowIndex, columnIndex, e) {
404 var record = grid.getStore().getAt(rowIndex); // Get the Record
405 var fieldName = grid.getColumnModel().getDataIndex(columnIndex); // Get field name
406 var data = record.get(fieldName);
410 * @param {Number} rowIndex
411 * @param {Number} columnIndex
412 * @param {Ext.EventObject} e
416 * @event celldblclick
417 * Fires when a cell is double clicked
419 * @param {Number} rowIndex
420 * @param {Number} columnIndex
421 * @param {Ext.EventObject} e
426 * Fires when a row is clicked
428 * @param {Number} rowIndex
429 * @param {Ext.EventObject} e
434 * Fires when a row is double clicked
436 * @param {Number} rowIndex
437 * @param {Ext.EventObject} e
442 * Fires when a header is clicked
444 * @param {Number} columnIndex
445 * @param {Ext.EventObject} e
449 * @event headerdblclick
450 * Fires when a header cell is double clicked
452 * @param {Number} columnIndex
453 * @param {Ext.EventObject} e
458 * Fires when group header is clicked. <b>Only applies for grids with a {@link Ext.grid.GroupingView GroupingView}</b>.
460 * @param {String} groupField
461 * @param {String} groupValue
462 * @param {Ext.EventObject} e
466 * @event groupdblclick
467 * Fires when group header is double clicked. <b>Only applies for grids with a {@link Ext.grid.GroupingView GroupingView}</b>.
469 * @param {String} groupField
470 * @param {String} groupValue
471 * @param {Ext.EventObject} e
475 * @event containerclick
476 * Fires when the container is clicked. The container consists of any part of the grid body that is not covered by a row.
478 * @param {Ext.EventObject} e
482 * @event containerdblclick
483 * Fires when the container is double clicked. The container consists of any part of the grid body that is not covered by a row.
485 * @param {Ext.EventObject} e
490 * @event rowbodyclick
491 * Fires when the row body is clicked. <b>Only applies for grids with {@link Ext.grid.GridView#enableRowBody enableRowBody} configured.</b>
493 * @param {Number} rowIndex
494 * @param {Ext.EventObject} e
498 * @event rowbodydblclick
499 * Fires when the row body is double clicked. <b>Only applies for grids with {@link Ext.grid.GridView#enableRowBody enableRowBody} configured.</b>
501 * @param {Number} rowIndex
502 * @param {Ext.EventObject} e
507 * @event rowcontextmenu
508 * Fires when a row is right clicked
510 * @param {Number} rowIndex
511 * @param {Ext.EventObject} e
515 * @event cellcontextmenu
516 * Fires when a cell is right clicked
518 * @param {Number} rowIndex
519 * @param {Number} cellIndex
520 * @param {Ext.EventObject} e
524 * @event headercontextmenu
525 * Fires when a header is right clicked
527 * @param {Number} columnIndex
528 * @param {Ext.EventObject} e
532 * @event groupcontextmenu
533 * Fires when group header is right clicked. <b>Only applies for grids with a {@link Ext.grid.GroupingView GroupingView}</b>.
535 * @param {String} groupField
536 * @param {String} groupValue
537 * @param {Ext.EventObject} e
541 * @event containercontextmenu
542 * Fires when the container is right clicked. The container consists of any part of the grid body that is not covered by a row.
544 * @param {Ext.EventObject} e
546 'containercontextmenu',
548 * @event rowbodycontextmenu
549 * Fires when the row body is right clicked. <b>Only applies for grids with {@link Ext.grid.GridView#enableRowBody enableRowBody} configured.</b>
551 * @param {Number} rowIndex
552 * @param {Ext.EventObject} e
554 'rowbodycontextmenu',
557 * Fires when the body element is scrolled
558 * @param {Number} scrollLeft
559 * @param {Number} scrollTop
563 * @event columnresize
564 * Fires when the user resizes a column
565 * @param {Number} columnIndex
566 * @param {Number} newSize
571 * Fires when the user moves a column
572 * @param {Number} oldIndex
573 * @param {Number} newIndex
578 * Fires when the grid's store sort changes
580 * @param {Object} sortInfo An object with the keys field and direction
585 * Fires when the grid's grouping changes (only applies for grids with a {@link Ext.grid.GroupingView GroupingView})
587 * @param {String} groupField A string with the grouping field, null if the store is not grouped.
592 * Fires when the grid is reconfigured with a new store and/or column model.
594 * @param {Ext.data.Store} store The new store
595 * @param {Ext.grid.ColumnModel} colModel The new column model
600 * Fires when the grid view is available (use this for selecting a default row).
608 onRender : function(ct, position){
609 Ext.grid.GridPanel.superclass.onRender.apply(this, arguments);
611 var c = this.getGridEl();
613 this.el.addClass('x-grid-panel');
617 mousedown: this.onMouseDown,
619 dblclick: this.onDblClick,
620 contextmenu: this.onContextMenu
623 this.relayEvents(c, ['mousedown','mouseup','mouseover','mouseout','keypress', 'keydown']);
625 var view = this.getView();
628 this.getSelectionModel().init(this);
632 initEvents : function(){
633 Ext.grid.GridPanel.superclass.initEvents.call(this);
636 this.loadMask = new Ext.LoadMask(this.bwrap,
637 Ext.apply({store:this.store}, this.loadMask));
641 initStateEvents : function(){
642 Ext.grid.GridPanel.superclass.initStateEvents.call(this);
643 this.mon(this.colModel, 'hiddenchange', this.saveState, this, {delay: 100});
646 applyState : function(state){
647 var cm = this.colModel,
655 for(var i = 0, len = cs.length; i < len; i++){
657 c = cm.getColumnById(s.id);
661 oldIndex = cm.getIndexById(s.id);
663 cm.moveColumn(oldIndex, i);
671 store[store.remoteSort ? 'setDefaultSort' : 'sort'](s.field, s.direction);
678 store.clearGrouping();
683 var o = Ext.apply({}, state);
686 Ext.grid.GridPanel.superclass.applyState.call(this, o);
689 getState : function(){
690 var o = {columns: []},
695 for(var i = 0, c; (c = this.colModel.config[i]); i++){
701 o.columns[i].hidden = true;
705 ss = store.getSortState();
709 if(store.getGroupState){
710 gs = store.getGroupState();
720 afterRender : function(){
721 Ext.grid.GridPanel.superclass.afterRender.call(this);
723 this.on('bodyresize', v.layout, v);
725 if(this.deferRowRender){
726 if (!this.deferRowRenderTask){
727 this.deferRowRenderTask = new Ext.util.DelayedTask(v.afterRender, this.view);
729 this.deferRowRenderTask.delay(10);
733 this.viewReady = true;
737 * <p>Reconfigures the grid to use a different Store and Column Model
738 * and fires the 'reconfigure' event. The View will be bound to the new
739 * objects and refreshed.</p>
740 * <p>Be aware that upon reconfiguring a GridPanel, certain existing settings <i>may</i> become
741 * invalidated. For example the configured {@link #autoExpandColumn} may no longer exist in the
742 * new ColumnModel. Also, an existing {@link Ext.PagingToolbar PagingToolbar} will still be bound
743 * to the old Store, and will need rebinding. Any {@link #plugins} might also need reconfiguring
744 * with the new data.</p>
745 * @param {Ext.data.Store} store The new {@link Ext.data.Store} object
746 * @param {Ext.grid.ColumnModel} colModel The new {@link Ext.grid.ColumnModel} object
748 reconfigure : function(store, colModel){
749 var rendered = this.rendered;
752 this.loadMask.destroy();
753 this.loadMask = new Ext.LoadMask(this.bwrap,
754 Ext.apply({}, {store:store}, this.initialConfig.loadMask));
758 this.view.initData(store, colModel);
761 this.colModel = colModel;
763 this.view.refresh(true);
765 this.fireEvent('reconfigure', this, store, colModel);
769 onDestroy : function(){
770 if (this.deferRowRenderTask && this.deferRowRenderTask.cancel){
771 this.deferRowRenderTask.cancel();
774 Ext.destroy(this.view, this.loadMask);
775 }else if(this.store && this.store.autoDestroy){
776 this.store.destroy();
778 Ext.destroy(this.colModel, this.selModel);
779 this.store = this.selModel = this.colModel = this.view = this.loadMask = null;
780 Ext.grid.GridPanel.superclass.onDestroy.call(this);
784 processEvent : function(name, e){
785 this.view.processEvent(name, e);
789 onClick : function(e){
790 this.processEvent('click', e);
794 onMouseDown : function(e){
795 this.processEvent('mousedown', e);
799 onContextMenu : function(e, t){
800 this.processEvent('contextmenu', e);
804 onDblClick : function(e){
805 this.processEvent('dblclick', e);
809 walkCells : function(row, col, step, fn, scope){
810 var cm = this.colModel,
811 clen = cm.getColumnCount(),
813 rlen = ds.getCount(),
827 if(fn.call(scope || this, row, col, cm) === true){
845 if(fn.call(scope || this, row, col, cm) === true){
857 * Returns the grid's underlying element.
858 * @return {Element} The element
860 getGridEl : function(){
864 // private for compatibility, overridden by editor grid
865 stopEditing : Ext.emptyFn,
868 * Returns the grid's selection model configured by the <code>{@link #selModel}</code>
869 * configuration option. If no selection model was configured, this will create
870 * and return a {@link Ext.grid.RowSelectionModel RowSelectionModel}.
871 * @return {SelectionModel}
873 getSelectionModel : function(){
875 this.selModel = new Ext.grid.RowSelectionModel(
876 this.disableSelection ? {selectRow: Ext.emptyFn} : null);
878 return this.selModel;
882 * Returns the grid's data store.
883 * @return {Ext.data.Store} The store
885 getStore : function(){
890 * Returns the grid's ColumnModel.
891 * @return {Ext.grid.ColumnModel} The column model
893 getColumnModel : function(){
894 return this.colModel;
898 * Returns the grid's GridView object.
899 * @return {Ext.grid.GridView} The grid view
901 getView : function(){
903 this.view = new Ext.grid.GridView(this.viewConfig);
908 * Called to get grid's drag proxy text, by default returns this.ddText.
909 * @return {String} The text
911 getDragDropText : function(){
912 var count = this.selModel.getCount();
913 return String.format(this.ddText, count, count == 1 ? '' : 's');
917 * @cfg {String/Number} activeItem
921 * @cfg {Boolean} autoDestroy
925 * @cfg {Object/String/Function} autoLoad
929 * @cfg {Boolean} autoWidth
933 * @cfg {Boolean/Number} bufferResize
937 * @cfg {String} defaultType
941 * @cfg {Object} defaults
945 * @cfg {Boolean} hideBorders
953 * @cfg {String} layout
957 * @cfg {Object} layoutConfig
961 * @cfg {Boolean} monitorResize
997 * @method getComponent
1005 * @method getUpdater
1025 * @event afterlayout
1033 * @event beforeremove
1044 * @cfg {String} allowDomMove @hide
1047 * @cfg {String} autoEl @hide
1050 * @cfg {String} applyTo @hide
1053 * @cfg {String} autoScroll @hide
1056 * @cfg {String} bodyBorder @hide
1059 * @cfg {String} bodyStyle @hide
1062 * @cfg {String} contentEl @hide
1065 * @cfg {String} disabledClass @hide
1068 * @cfg {String} elements @hide
1071 * @cfg {String} html @hide
1074 * @cfg {Boolean} preventBodyReset
1078 * @property disabled
1082 * @method applyToMarkup
1094 * @method setDisabled
1098 Ext.reg('grid', Ext.grid.GridPanel);