Web Interface For Lite Argus Control modules
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

1130 lines
42 KiB

​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
  1. <html>
  2. <head>
  3. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  4. <title>The source code</title>
  5. <link href="../resources/prettify/prettify.css" type="text/css" rel="stylesheet" />
  6. <script type="text/javascript" src="../resources/prettify/prettify.js"></script>
  7. </head>
  8. <body onload="prettyPrint();">
  9. <pre class="prettyprint lang-js">/*!
  10. * Ext JS Library 3.3.1
  11. * Copyright(c) 2006-2010 Sencha Inc.
  12. * licensing@sencha.com
  13. * http://www.sencha.com/license
  14. */
  15. <div id="cls-Ext.grid.GridPanel"></div>/**
  16. * @class Ext.grid.GridPanel
  17. * @extends Ext.Panel
  18. * <p>This class represents the primary interface of a component based grid control to represent data
  19. * in a tabular format of rows and columns. The GridPanel is composed of the following:</p>
  20. * <div class="mdetail-params"><ul>
  21. * <li><b>{@link Ext.data.Store Store}</b> : The Model holding the data records (rows)
  22. * <div class="sub-desc"></div></li>
  23. * <li><b>{@link Ext.grid.ColumnModel Column model}</b> : Column makeup
  24. * <div class="sub-desc"></div></li>
  25. * <li><b>{@link Ext.grid.GridView View}</b> : Encapsulates the user interface
  26. * <div class="sub-desc"></div></li>
  27. * <li><b>{@link Ext.grid.AbstractSelectionModel selection model}</b> : Selection behavior
  28. * <div class="sub-desc"></div></li>
  29. * </ul></div>
  30. * <p>Example usage:</p>
  31. * <pre><code>
  32. var grid = new Ext.grid.GridPanel({
  33. {@link #store}: new {@link Ext.data.Store}({
  34. {@link Ext.data.Store#autoDestroy autoDestroy}: true,
  35. {@link Ext.data.Store#reader reader}: reader,
  36. {@link Ext.data.Store#data data}: xg.dummyData
  37. }),
  38. {@link #colModel}: new {@link Ext.grid.ColumnModel}({
  39. {@link Ext.grid.ColumnModel#defaults defaults}: {
  40. width: 120,
  41. sortable: true
  42. },
  43. {@link Ext.grid.ColumnModel#columns columns}: [
  44. {id: 'company', header: 'Company', width: 200, sortable: true, dataIndex: 'company'},
  45. {header: 'Price', renderer: Ext.util.Format.usMoney, dataIndex: 'price'},
  46. {header: 'Change', dataIndex: 'change'},
  47. {header: '% Change', dataIndex: 'pctChange'},
  48. // instead of specifying renderer: Ext.util.Format.dateRenderer('m/d/Y') use xtype
  49. {
  50. header: 'Last Updated', width: 135, dataIndex: 'lastChange',
  51. xtype: 'datecolumn', format: 'M d, Y'
  52. }
  53. ],
  54. }),
  55. {@link #viewConfig}: {
  56. {@link Ext.grid.GridView#forceFit forceFit}: true,
  57. // Return CSS class to apply to rows depending upon data values
  58. {@link Ext.grid.GridView#getRowClass getRowClass}: function(record, index) {
  59. var c = record.{@link Ext.data.Record#get get}('change');
  60. if (c < 0) {
  61. return 'price-fall';
  62. } else if (c > 0) {
  63. return 'price-rise';
  64. }
  65. }
  66. },
  67. {@link #sm}: new Ext.grid.RowSelectionModel({singleSelect:true}),
  68. width: 600,
  69. height: 300,
  70. frame: true,
  71. title: 'Framed with Row Selection and Horizontal Scrolling',
  72. iconCls: 'icon-grid'
  73. });
  74. * </code></pre>
  75. * <p><b><u>Notes:</u></b></p>
  76. * <div class="mdetail-params"><ul>
  77. * <li>Although this class inherits many configuration options from base classes, some of them
  78. * (such as autoScroll, autoWidth, layout, items, etc) are not used by this class, and will
  79. * have no effect.</li>
  80. * <li>A grid <b>requires</b> a width in which to scroll its columns, and a height in which to
  81. * scroll its rows. These dimensions can either be set explicitly through the
  82. * <tt>{@link Ext.BoxComponent#height height}</tt> and <tt>{@link Ext.BoxComponent#width width}</tt>
  83. * configuration options or implicitly set by using the grid as a child item of a
  84. * {@link Ext.Container Container} which will have a {@link Ext.Container#layout layout manager}
  85. * provide the sizing of its child items (for example the Container of the Grid may specify
  86. * <tt>{@link Ext.Container#layout layout}:'fit'</tt>).</li>
  87. * <li>To access the data in a Grid, it is necessary to use the data model encapsulated
  88. * by the {@link #store Store}. See the {@link #cellclick} event for more details.</li>
  89. * </ul></div>
  90. * @constructor
  91. * @param {Object} config The config object
  92. * @xtype grid
  93. */
  94. Ext.grid.GridPanel = Ext.extend(Ext.Panel, {
  95. <div id="cfg-Ext.grid.GridPanel-autoExpandColumn"></div>/**
  96. * @cfg {String} autoExpandColumn
  97. * <p>The <tt>{@link Ext.grid.Column#id id}</tt> of a {@link Ext.grid.Column column} in
  98. * this grid that should expand to fill unused space. This value specified here can not
  99. * be <tt>0</tt>.</p>
  100. * <br><p><b>Note</b>: If the Grid's {@link Ext.grid.GridView view} is configured with
  101. * <tt>{@link Ext.grid.GridView#forceFit forceFit}=true</tt> the <tt>autoExpandColumn</tt>
  102. * is ignored. See {@link Ext.grid.Column}.<tt>{@link Ext.grid.Column#width width}</tt>
  103. * for additional details.</p>
  104. * <p>See <tt>{@link #autoExpandMax}</tt> and <tt>{@link #autoExpandMin}</tt> also.</p>
  105. */
  106. autoExpandColumn : false,
  107. <div id="cfg-Ext.grid.GridPanel-autoExpandMax"></div>/**
  108. * @cfg {Number} autoExpandMax The maximum width the <tt>{@link #autoExpandColumn}</tt>
  109. * can have (if enabled). Defaults to <tt>1000</tt>.
  110. */
  111. autoExpandMax : 1000,
  112. <div id="cfg-Ext.grid.GridPanel-autoExpandMin"></div>/**
  113. * @cfg {Number} autoExpandMin The minimum width the <tt>{@link #autoExpandColumn}</tt>
  114. * can have (if enabled). Defaults to <tt>50</tt>.
  115. */
  116. autoExpandMin : 50,
  117. <div id="cfg-Ext.grid.GridPanel-columnLines"></div>/**
  118. * @cfg {Boolean} columnLines <tt>true</tt> to add css for column separation lines.
  119. * Default is <tt>false</tt>.
  120. */
  121. columnLines : false,
  122. <div id="cfg-Ext.grid.GridPanel-cm"></div>/**
  123. * @cfg {Object} cm Shorthand for <tt>{@link #colModel}</tt>.
  124. */
  125. <div id="cfg-Ext.grid.GridPanel-colModel"></div>/**
  126. * @cfg {Object} colModel The {@link Ext.grid.ColumnModel} to use when rendering the grid (required).
  127. */
  128. <div id="cfg-Ext.grid.GridPanel-columns"></div>/**
  129. * @cfg {Array} columns An array of {@link Ext.grid.Column columns} to auto create a
  130. * {@link Ext.grid.ColumnModel}. The ColumnModel may be explicitly created via the
  131. * <tt>{@link #colModel}</tt> configuration property.
  132. */
  133. <div id="cfg-Ext.grid.GridPanel-ddGroup"></div>/**
  134. * @cfg {String} ddGroup The DD group this GridPanel belongs to. Defaults to <tt>'GridDD'</tt> if not specified.
  135. */
  136. <div id="cfg-Ext.grid.GridPanel-ddText"></div>/**
  137. * @cfg {String} ddText
  138. * Configures the text in the drag proxy. Defaults to:
  139. * <pre><code>
  140. * ddText : '{0} selected row{1}'
  141. * </code></pre>
  142. * <tt>{0}</tt> is replaced with the number of selected rows.
  143. */
  144. ddText : '{0} selected row{1}',
  145. <div id="cfg-Ext.grid.GridPanel-deferRowRender"></div>/**
  146. * @cfg {Boolean} deferRowRender <P>Defaults to <tt>true</tt> to enable deferred row rendering.</p>
  147. * <p>This allows the GridPanel to be initially rendered empty, with the expensive update of the row
  148. * structure deferred so that layouts with GridPanels appear more quickly.</p>
  149. */
  150. deferRowRender : true,
  151. <div id="cfg-Ext.grid.GridPanel-disableSelection"></div>/**
  152. * @cfg {Boolean} disableSelection <p><tt>true</tt> to disable selections in the grid. Defaults to <tt>false</tt>.</p>
  153. * <p>Ignored if a {@link #selModel SelectionModel} is specified.</p>
  154. */
  155. <div id="cfg-Ext.grid.GridPanel-enableColumnResize"></div>/**
  156. * @cfg {Boolean} enableColumnResize <tt>false</tt> to turn off column resizing for the whole grid. Defaults to <tt>true</tt>.
  157. */
  158. <div id="cfg-Ext.grid.GridPanel-enableColumnHide"></div>/**
  159. * @cfg {Boolean} enableColumnHide
  160. * Defaults to <tt>true</tt> to enable {@link Ext.grid.Column#hidden hiding of columns}
  161. * with the {@link #enableHdMenu header menu}.
  162. */
  163. enableColumnHide : true,
  164. <div id="cfg-Ext.grid.GridPanel-enableColumnMove"></div>/**
  165. * @cfg {Boolean} enableColumnMove Defaults to <tt>true</tt> to enable drag and drop reorder of columns. <tt>false</tt>
  166. * to turn off column reordering via drag drop.
  167. */
  168. enableColumnMove : true,
  169. <div id="cfg-Ext.grid.GridPanel-enableDragDrop"></div>/**
  170. * @cfg {Boolean} enableDragDrop <p>Enables dragging of the selected rows of the GridPanel. Defaults to <tt>false</tt>.</p>
  171. * <p>Setting this to <b><tt>true</tt></b> causes this GridPanel's {@link #getView GridView} to
  172. * create an instance of {@link Ext.grid.GridDragZone}. <b>Note</b>: this is available only <b>after</b>
  173. * the Grid has been rendered as the GridView's <tt>{@link Ext.grid.GridView#dragZone dragZone}</tt>
  174. * property.</p>
  175. * <p>A cooperating {@link Ext.dd.DropZone DropZone} must be created who's implementations of
  176. * {@link Ext.dd.DropZone#onNodeEnter onNodeEnter}, {@link Ext.dd.DropZone#onNodeOver onNodeOver},
  177. * {@link Ext.dd.DropZone#onNodeOut onNodeOut} and {@link Ext.dd.DropZone#onNodeDrop onNodeDrop} are able
  178. * to process the {@link Ext.grid.GridDragZone#getDragData data} which is provided.</p>
  179. */
  180. enableDragDrop : false,
  181. <div id="cfg-Ext.grid.GridPanel-enableHdMenu"></div>/**
  182. * @cfg {Boolean} enableHdMenu Defaults to <tt>true</tt> to enable the drop down button for menu in the headers.
  183. */
  184. enableHdMenu : true,
  185. <div id="cfg-Ext.grid.GridPanel-hideHeaders"></div>/**
  186. * @cfg {Boolean} hideHeaders True to hide the grid's header. Defaults to <code>false</code>.
  187. */
  188. <div id="cfg-Ext.grid.GridPanel-loadMask"></div>/**
  189. * @cfg {Object} loadMask An {@link Ext.LoadMask} config or true to mask the grid while
  190. * loading. Defaults to <code>false</code>.
  191. */
  192. loadMask : false,
  193. <div id="cfg-Ext.grid.GridPanel-maxHeight"></div>/**
  194. * @cfg {Number} maxHeight Sets the maximum height of the grid - ignored if <tt>autoHeight</tt> is not on.
  195. */
  196. <div id="cfg-Ext.grid.GridPanel-minColumnWidth"></div>/**
  197. * @cfg {Number} minColumnWidth The minimum width a column can be resized to. Defaults to <tt>25</tt>.
  198. */
  199. minColumnWidth : 25,
  200. <div id="cfg-Ext.grid.GridPanel-sm"></div>/**
  201. * @cfg {Object} sm Shorthand for <tt>{@link #selModel}</tt>.
  202. */
  203. <div id="cfg-Ext.grid.GridPanel-selModel"></div>/**
  204. * @cfg {Object} selModel Any subclass of {@link Ext.grid.AbstractSelectionModel} that will provide
  205. * the selection model for the grid (defaults to {@link Ext.grid.RowSelectionModel} if not specified).
  206. */
  207. <div id="cfg-Ext.grid.GridPanel-store"></div>/**
  208. * @cfg {Ext.data.Store} store The {@link Ext.data.Store} the grid should use as its data source (required).
  209. */
  210. <div id="cfg-Ext.grid.GridPanel-stripeRows"></div>/**
  211. * @cfg {Boolean} stripeRows <tt>true</tt> to stripe the rows. Default is <tt>false</tt>.
  212. * <p>This causes the CSS class <tt><b>x-grid3-row-alt</b></tt> to be added to alternate rows of
  213. * the grid. A default CSS rule is provided which sets a background colour, but you can override this
  214. * with a rule which either overrides the <b>background-color</b> style using the '!important'
  215. * modifier, or which uses a CSS selector of higher specificity.</p>
  216. */
  217. stripeRows : false,
  218. <div id="cfg-Ext.grid.GridPanel-trackMouseOver"></div>/**
  219. * @cfg {Boolean} trackMouseOver True to highlight rows when the mouse is over. Default is <tt>true</tt>
  220. * for GridPanel, but <tt>false</tt> for EditorGridPanel.
  221. */
  222. trackMouseOver : true,
  223. <div id="cfg-Ext.grid.GridPanel-stateEvents"></div>/**
  224. * @cfg {Array} stateEvents
  225. * An array of events that, when fired, should trigger this component to save its state.
  226. * Defaults to:<pre><code>
  227. * stateEvents: ['columnmove', 'columnresize', 'sortchange', 'groupchange']
  228. * </code></pre>
  229. * <p>These can be any types of events supported by this component, including browser or
  230. * custom events (e.g., <tt>['click', 'customerchange']</tt>).</p>
  231. * <p>See {@link Ext.Component#stateful} for an explanation of saving and restoring
  232. * Component state.</p>
  233. */
  234. stateEvents : ['columnmove', 'columnresize', 'sortchange', 'groupchange'],
  235. <div id="cfg-Ext.grid.GridPanel-view"></div>/**
  236. * @cfg {Object} view The {@link Ext.grid.GridView} used by the grid. This can be set
  237. * before a call to {@link Ext.Component#render render()}.
  238. */
  239. view : null,
  240. <div id="cfg-Ext.grid.GridPanel-bubbleEvents"></div>/**
  241. * @cfg {Array} bubbleEvents
  242. * <p>An array of events that, when fired, should be bubbled to any parent container.
  243. * See {@link Ext.util.Observable#enableBubble}.
  244. * Defaults to <tt>[]</tt>.
  245. */
  246. bubbleEvents: [],
  247. <div id="cfg-Ext.grid.GridPanel-viewConfig"></div>/**
  248. * @cfg {Object} viewConfig A config object that will be applied to the grid's UI view. Any of
  249. * the config options available for {@link Ext.grid.GridView} can be specified here. This option
  250. * is ignored if <tt>{@link #view}</tt> is specified.
  251. */
  252. // private
  253. rendered : false,
  254. // private
  255. viewReady : false,
  256. // private
  257. initComponent : function() {
  258. Ext.grid.GridPanel.superclass.initComponent.call(this);
  259. if (this.columnLines) {
  260. this.cls = (this.cls || '') + ' x-grid-with-col-lines';
  261. }
  262. // override any provided value since it isn't valid
  263. // and is causing too many bug reports ;)
  264. this.autoScroll = false;
  265. this.autoWidth = false;
  266. if(Ext.isArray(this.columns)){
  267. this.colModel = new Ext.grid.ColumnModel(this.columns);
  268. delete this.columns;
  269. }
  270. // check and correct shorthanded configs
  271. if(this.ds){
  272. this.store = this.ds;
  273. delete this.ds;
  274. }
  275. if(this.cm){
  276. this.colModel = this.cm;
  277. delete this.cm;
  278. }
  279. if(this.sm){
  280. this.selModel = this.sm;
  281. delete this.sm;
  282. }
  283. this.store = Ext.StoreMgr.lookup(this.store);
  284. this.addEvents(
  285. // raw events
  286. <div id="event-Ext.grid.GridPanel-click"></div>/**
  287. * @event click
  288. * The raw click event for the entire grid.
  289. * @param {Ext.EventObject} e
  290. */
  291. 'click',
  292. <div id="event-Ext.grid.GridPanel-dblclick"></div>/**
  293. * @event dblclick
  294. * The raw dblclick event for the entire grid.
  295. * @param {Ext.EventObject} e
  296. */
  297. 'dblclick',
  298. <div id="event-Ext.grid.GridPanel-contextmenu"></div>/**
  299. * @event contextmenu
  300. * The raw contextmenu event for the entire grid.
  301. * @param {Ext.EventObject} e
  302. */
  303. 'contextmenu',
  304. <div id="event-Ext.grid.GridPanel-mousedown"></div>/**
  305. * @event mousedown
  306. * The raw mousedown event for the entire grid.
  307. * @param {Ext.EventObject} e
  308. */
  309. 'mousedown',
  310. <div id="event-Ext.grid.GridPanel-mouseup"></div>/**
  311. * @event mouseup
  312. * The raw mouseup event for the entire grid.
  313. * @param {Ext.EventObject} e
  314. */
  315. 'mouseup',
  316. <div id="event-Ext.grid.GridPanel-mouseover"></div>/**
  317. * @event mouseover
  318. * The raw mouseover event for the entire grid.
  319. * @param {Ext.EventObject} e
  320. */
  321. 'mouseover',
  322. <div id="event-Ext.grid.GridPanel-mouseout"></div>/**
  323. * @event mouseout
  324. * The raw mouseout event for the entire grid.
  325. * @param {Ext.EventObject} e
  326. */
  327. 'mouseout',
  328. <div id="event-Ext.grid.GridPanel-keypress"></div>/**
  329. * @event keypress
  330. * The raw keypress event for the entire grid.
  331. * @param {Ext.EventObject} e
  332. */
  333. 'keypress',
  334. <div id="event-Ext.grid.GridPanel-keydown"></div>/**
  335. * @event keydown
  336. * The raw keydown event for the entire grid.
  337. * @param {Ext.EventObject} e
  338. */
  339. 'keydown',
  340. // custom events
  341. <div id="event-Ext.grid.GridPanel-cellmousedown"></div>/**
  342. * @event cellmousedown
  343. * Fires before a cell is clicked
  344. * @param {Grid} this
  345. * @param {Number} rowIndex
  346. * @param {Number} columnIndex
  347. * @param {Ext.EventObject} e
  348. */
  349. 'cellmousedown',
  350. <div id="event-Ext.grid.GridPanel-rowmousedown"></div>/**
  351. * @event rowmousedown
  352. * Fires before a row is clicked
  353. * @param {Grid} this
  354. * @param {Number} rowIndex
  355. * @param {Ext.EventObject} e
  356. */
  357. 'rowmousedown',
  358. <div id="event-Ext.grid.GridPanel-headermousedown"></div>/**
  359. * @event headermousedown
  360. * Fires before a header is clicked
  361. * @param {Grid} this
  362. * @param {Number} columnIndex
  363. * @param {Ext.EventObject} e
  364. */
  365. 'headermousedown',
  366. <div id="event-Ext.grid.GridPanel-groupmousedown"></div>/**
  367. * @event groupmousedown
  368. * Fires before a group header is clicked. <b>Only applies for grids with a {@link Ext.grid.GroupingView GroupingView}</b>.
  369. * @param {Grid} this
  370. * @param {String} groupField
  371. * @param {String} groupValue
  372. * @param {Ext.EventObject} e
  373. */
  374. 'groupmousedown',
  375. <div id="event-Ext.grid.GridPanel-rowbodymousedown"></div>/**
  376. * @event rowbodymousedown
  377. * Fires before the row body is clicked. <b>Only applies for grids with {@link Ext.grid.GridView#enableRowBody enableRowBody} configured.</b>
  378. * @param {Grid} this
  379. * @param {Number} rowIndex
  380. * @param {Ext.EventObject} e
  381. */
  382. 'rowbodymousedown',
  383. <div id="event-Ext.grid.GridPanel-containermousedown"></div>/**
  384. * @event containermousedown
  385. * Fires before the container is clicked. The container consists of any part of the grid body that is not covered by a row.
  386. * @param {Grid} this
  387. * @param {Ext.EventObject} e
  388. */
  389. 'containermousedown',
  390. <div id="event-Ext.grid.GridPanel-cellclick"></div>/**
  391. * @event cellclick
  392. * Fires when a cell is clicked.
  393. * The data for the cell is drawn from the {@link Ext.data.Record Record}
  394. * for this row. To access the data in the listener function use the
  395. * following technique:
  396. * <pre><code>
  397. function(grid, rowIndex, columnIndex, e) {
  398. var record = grid.getStore().getAt(rowIndex); // Get the Record
  399. var fieldName = grid.getColumnModel().getDataIndex(columnIndex); // Get field name
  400. var data = record.get(fieldName);
  401. }
  402. </code></pre>
  403. * @param {Grid} this
  404. * @param {Number} rowIndex
  405. * @param {Number} columnIndex
  406. * @param {Ext.EventObject} e
  407. */
  408. 'cellclick',
  409. <div id="event-Ext.grid.GridPanel-celldblclick"></div>/**
  410. * @event celldblclick
  411. * Fires when a cell is double clicked
  412. * @param {Grid} this
  413. * @param {Number} rowIndex
  414. * @param {Number} columnIndex
  415. * @param {Ext.EventObject} e
  416. */
  417. 'celldblclick',
  418. <div id="event-Ext.grid.GridPanel-rowclick"></div>/**
  419. * @event rowclick
  420. * Fires when a row is clicked
  421. * @param {Grid} this
  422. * @param {Number} rowIndex
  423. * @param {Ext.EventObject} e
  424. */
  425. 'rowclick',
  426. <div id="event-Ext.grid.GridPanel-rowdblclick"></div>/**
  427. * @event rowdblclick
  428. * Fires when a row is double clicked
  429. * @param {Grid} this
  430. * @param {Number} rowIndex
  431. * @param {Ext.EventObject} e
  432. */
  433. 'rowdblclick',
  434. <div id="event-Ext.grid.GridPanel-headerclick"></div>/**
  435. * @event headerclick
  436. * Fires when a header is clicked
  437. * @param {Grid} this
  438. * @param {Number} columnIndex
  439. * @param {Ext.EventObject} e
  440. */
  441. 'headerclick',
  442. <div id="event-Ext.grid.GridPanel-headerdblclick"></div>/**
  443. * @event headerdblclick
  444. * Fires when a header cell is double clicked
  445. * @param {Grid} this
  446. * @param {Number} columnIndex
  447. * @param {Ext.EventObject} e
  448. */
  449. 'headerdblclick',
  450. <div id="event-Ext.grid.GridPanel-groupclick"></div>/**
  451. * @event groupclick
  452. * Fires when group header is clicked. <b>Only applies for grids with a {@link Ext.grid.GroupingView GroupingView}</b>.
  453. * @param {Grid} this
  454. * @param {String} groupField
  455. * @param {String} groupValue
  456. * @param {Ext.EventObject} e
  457. */
  458. 'groupclick',
  459. <div id="event-Ext.grid.GridPanel-groupdblclick"></div>/**
  460. * @event groupdblclick
  461. * Fires when group header is double clicked. <b>Only applies for grids with a {@link Ext.grid.GroupingView GroupingView}</b>.
  462. * @param {Grid} this
  463. * @param {String} groupField
  464. * @param {String} groupValue
  465. * @param {Ext.EventObject} e
  466. */
  467. 'groupdblclick',
  468. <div id="event-Ext.grid.GridPanel-containerclick"></div>/**
  469. * @event containerclick
  470. * Fires when the container is clicked. The container consists of any part of the grid body that is not covered by a row.
  471. * @param {Grid} this
  472. * @param {Ext.EventObject} e
  473. */
  474. 'containerclick',
  475. <div id="event-Ext.grid.GridPanel-containerdblclick"></div>/**
  476. * @event containerdblclick
  477. * Fires when the container is double clicked. The container consists of any part of the grid body that is not covered by a row.
  478. * @param {Grid} this
  479. * @param {Ext.EventObject} e
  480. */
  481. 'containerdblclick',
  482. <div id="event-Ext.grid.GridPanel-rowbodyclick"></div>/**
  483. * @event rowbodyclick
  484. * Fires when the row body is clicked. <b>Only applies for grids with {@link Ext.grid.GridView#enableRowBody enableRowBody} configured.</b>
  485. * @param {Grid} this
  486. * @param {Number} rowIndex
  487. * @param {Ext.EventObject} e
  488. */
  489. 'rowbodyclick',
  490. <div id="event-Ext.grid.GridPanel-rowbodydblclick"></div>/**
  491. * @event rowbodydblclick
  492. * Fires when the row body is double clicked. <b>Only applies for grids with {@link Ext.grid.GridView#enableRowBody enableRowBody} configured.</b>
  493. * @param {Grid} this
  494. * @param {Number} rowIndex
  495. * @param {Ext.EventObject} e
  496. */
  497. 'rowbodydblclick',
  498. <div id="event-Ext.grid.GridPanel-rowcontextmenu"></div>/**
  499. * @event rowcontextmenu
  500. * Fires when a row is right clicked
  501. * @param {Grid} this
  502. * @param {Number} rowIndex
  503. * @param {Ext.EventObject} e
  504. */
  505. 'rowcontextmenu',
  506. <div id="event-Ext.grid.GridPanel-cellcontextmenu"></div>/**
  507. * @event cellcontextmenu
  508. * Fires when a cell is right clicked
  509. * @param {Grid} this
  510. * @param {Number} rowIndex
  511. * @param {Number} cellIndex
  512. * @param {Ext.EventObject} e
  513. */
  514. 'cellcontextmenu',
  515. <div id="event-Ext.grid.GridPanel-headercontextmenu"></div>/**
  516. * @event headercontextmenu
  517. * Fires when a header is right clicked
  518. * @param {Grid} this
  519. * @param {Number} columnIndex
  520. * @param {Ext.EventObject} e
  521. */
  522. 'headercontextmenu',
  523. <div id="event-Ext.grid.GridPanel-groupcontextmenu"></div>/**
  524. * @event groupcontextmenu
  525. * Fires when group header is right clicked. <b>Only applies for grids with a {@link Ext.grid.GroupingView GroupingView}</b>.
  526. * @param {Grid} this
  527. * @param {String} groupField
  528. * @param {String} groupValue
  529. * @param {Ext.EventObject} e
  530. */
  531. 'groupcontextmenu',
  532. <div id="event-Ext.grid.GridPanel-containercontextmenu"></div>/**
  533. * @event containercontextmenu
  534. * Fires when the container is right clicked. The container consists of any part of the grid body that is not covered by a row.
  535. * @param {Grid} this
  536. * @param {Ext.EventObject} e
  537. */
  538. 'containercontextmenu',
  539. <div id="event-Ext.grid.GridPanel-rowbodycontextmenu"></div>/**
  540. * @event rowbodycontextmenu
  541. * Fires when the row body is right clicked. <b>Only applies for grids with {@link Ext.grid.GridView#enableRowBody enableRowBody} configured.</b>
  542. * @param {Grid} this
  543. * @param {Number} rowIndex
  544. * @param {Ext.EventObject} e
  545. */
  546. 'rowbodycontextmenu',
  547. <div id="event-Ext.grid.GridPanel-bodyscroll"></div>/**
  548. * @event bodyscroll
  549. * Fires when the body element is scrolled
  550. * @param {Number} scrollLeft
  551. * @param {Number} scrollTop
  552. */
  553. 'bodyscroll',
  554. <div id="event-Ext.grid.GridPanel-columnresize"></div>/**
  555. * @event columnresize
  556. * Fires when the user resizes a column
  557. * @param {Number} columnIndex
  558. * @param {Number} newSize
  559. */
  560. 'columnresize',
  561. <div id="event-Ext.grid.GridPanel-columnmove"></div>/**
  562. * @event columnmove
  563. * Fires when the user moves a column
  564. * @param {Number} oldIndex
  565. * @param {Number} newIndex
  566. */
  567. 'columnmove',
  568. <div id="event-Ext.grid.GridPanel-sortchange"></div>/**
  569. * @event sortchange
  570. * Fires when the grid's store sort changes
  571. * @param {Grid} this
  572. * @param {Object} sortInfo An object with the keys field and direction
  573. */
  574. 'sortchange',
  575. <div id="event-Ext.grid.GridPanel-groupchange"></div>/**
  576. * @event groupchange
  577. * Fires when the grid's grouping changes (only applies for grids with a {@link Ext.grid.GroupingView GroupingView})
  578. * @param {Grid} this
  579. * @param {String} groupField A string with the grouping field, null if the store is not grouped.
  580. */
  581. 'groupchange',
  582. <div id="event-Ext.grid.GridPanel-reconfigure"></div>/**
  583. * @event reconfigure
  584. * Fires when the grid is reconfigured with a new store and/or column model.
  585. * @param {Grid} this
  586. * @param {Ext.data.Store} store The new store
  587. * @param {Ext.grid.ColumnModel} colModel The new column model
  588. */
  589. 'reconfigure',
  590. <div id="event-Ext.grid.GridPanel-viewready"></div>/**
  591. * @event viewready
  592. * Fires when the grid view is available (use this for selecting a default row).
  593. * @param {Grid} this
  594. */
  595. 'viewready'
  596. );
  597. },
  598. // private
  599. onRender : function(ct, position){
  600. Ext.grid.GridPanel.superclass.onRender.apply(this, arguments);
  601. var c = this.getGridEl();
  602. this.el.addClass('x-grid-panel');
  603. this.mon(c, {
  604. scope: this,
  605. mousedown: this.onMouseDown,
  606. click: this.onClick,
  607. dblclick: this.onDblClick,
  608. contextmenu: this.onContextMenu
  609. });
  610. this.relayEvents(c, ['mousedown','mouseup','mouseover','mouseout','keypress', 'keydown']);
  611. var view = this.getView();
  612. view.init(this);
  613. view.render();
  614. this.getSelectionModel().init(this);
  615. },
  616. // private
  617. initEvents : function(){
  618. Ext.grid.GridPanel.superclass.initEvents.call(this);
  619. if(this.loadMask){
  620. this.loadMask = new Ext.LoadMask(this.bwrap,
  621. Ext.apply({store:this.store}, this.loadMask));
  622. }
  623. },
  624. initStateEvents : function(){
  625. Ext.grid.GridPanel.superclass.initStateEvents.call(this);
  626. this.mon(this.colModel, 'hiddenchange', this.saveState, this, {delay: 100});
  627. },
  628. applyState : function(state){
  629. var cm = this.colModel,
  630. cs = state.columns,
  631. store = this.store,
  632. s,
  633. c,
  634. colIndex;
  635. if(cs){
  636. for(var i = 0, len = cs.length; i < len; i++){
  637. s = cs[i];
  638. c = cm.getColumnById(s.id);
  639. if(c){
  640. colIndex = cm.getIndexById(s.id);
  641. cm.setState(colIndex, {
  642. hidden: s.hidden,
  643. width: s.width,
  644. sortable: s.sortable
  645. });
  646. if(colIndex != i){
  647. cm.moveColumn(colIndex, i);
  648. }
  649. }
  650. }
  651. }
  652. if(store){
  653. s = state.sort;
  654. if(s){
  655. store[store.remoteSort ? 'setDefaultSort' : 'sort'](s.field, s.direction);
  656. }
  657. s = state.group;
  658. if(store.groupBy){
  659. if(s){
  660. store.groupBy(s);
  661. }else{
  662. store.clearGrouping();
  663. }
  664. }
  665. }
  666. var o = Ext.apply({}, state);
  667. delete o.columns;
  668. delete o.sort;
  669. Ext.grid.GridPanel.superclass.applyState.call(this, o);
  670. },
  671. getState : function(){
  672. var o = {columns: []},
  673. store = this.store,
  674. ss,
  675. gs;
  676. for(var i = 0, c; (c = this.colModel.config[i]); i++){
  677. o.columns[i] = {
  678. id: c.id,
  679. width: c.width
  680. };
  681. if(c.hidden){
  682. o.columns[i].hidden = true;
  683. }
  684. if(c.sortable){
  685. o.columns[i].sortable = true;
  686. }
  687. }
  688. if(store){
  689. ss = store.getSortState();
  690. if(ss){
  691. o.sort = ss;
  692. }
  693. if(store.getGroupState){
  694. gs = store.getGroupState();
  695. if(gs){
  696. o.group = gs;
  697. }
  698. }
  699. }
  700. return o;
  701. },
  702. // private
  703. afterRender : function(){
  704. Ext.grid.GridPanel.superclass.afterRender.call(this);
  705. var v = this.view;
  706. this.on('bodyresize', v.layout, v);
  707. v.layout(true);
  708. if(this.deferRowRender){
  709. if (!this.deferRowRenderTask){
  710. this.deferRowRenderTask = new Ext.util.DelayedTask(v.afterRender, this.view);
  711. }
  712. this.deferRowRenderTask.delay(10);
  713. }else{
  714. v.afterRender();
  715. }
  716. this.viewReady = true;
  717. },
  718. <div id="method-Ext.grid.GridPanel-reconfigure"></div>/**
  719. * <p>Reconfigures the grid to use a different Store and Column Model
  720. * and fires the 'reconfigure' event. The View will be bound to the new
  721. * objects and refreshed.</p>
  722. * <p>Be aware that upon reconfiguring a GridPanel, certain existing settings <i>may</i> become
  723. * invalidated. For example the configured {@link #autoExpandColumn} may no longer exist in the
  724. * new ColumnModel. Also, an existing {@link Ext.PagingToolbar PagingToolbar} will still be bound
  725. * to the old Store, and will need rebinding. Any {@link #plugins} might also need reconfiguring
  726. * with the new data.</p>
  727. * @param {Ext.data.Store} store The new {@link Ext.data.Store} object
  728. * @param {Ext.grid.ColumnModel} colModel The new {@link Ext.grid.ColumnModel} object
  729. */
  730. reconfigure : function(store, colModel){
  731. var rendered = this.rendered;
  732. if(rendered){
  733. if(this.loadMask){
  734. this.loadMask.destroy();
  735. this.loadMask = new Ext.LoadMask(this.bwrap,
  736. Ext.apply({}, {store:store}, this.initialConfig.loadMask));
  737. }
  738. }
  739. if(this.view){
  740. this.view.initData(store, colModel);
  741. }
  742. this.store = store;
  743. this.colModel = colModel;
  744. if(rendered){
  745. this.view.refresh(true);
  746. }
  747. this.fireEvent('reconfigure', this, store, colModel);
  748. },
  749. // private
  750. onDestroy : function(){
  751. if (this.deferRowRenderTask && this.deferRowRenderTask.cancel){
  752. this.deferRowRenderTask.cancel();
  753. }
  754. if(this.rendered){
  755. Ext.destroy(this.view, this.loadMask);
  756. }else if(this.store && this.store.autoDestroy){
  757. this.store.destroy();
  758. }
  759. Ext.destroy(this.colModel, this.selModel);
  760. this.store = this.selModel = this.colModel = this.view = this.loadMask = null;
  761. Ext.grid.GridPanel.superclass.onDestroy.call(this);
  762. },
  763. // private
  764. processEvent : function(name, e){
  765. this.view.processEvent(name, e);
  766. },
  767. // private
  768. onClick : function(e){
  769. this.processEvent('click', e);
  770. },
  771. // private
  772. onMouseDown : function(e){
  773. this.processEvent('mousedown', e);
  774. },
  775. // private
  776. onContextMenu : function(e, t){
  777. this.processEvent('contextmenu', e);
  778. },
  779. // private
  780. onDblClick : function(e){
  781. this.processEvent('dblclick', e);
  782. },
  783. // private
  784. walkCells : function(row, col, step, fn, scope){
  785. var cm = this.colModel,
  786. clen = cm.getColumnCount(),
  787. ds = this.store,
  788. rlen = ds.getCount(),
  789. first = true;
  790. if(step < 0){
  791. if(col < 0){
  792. row--;
  793. first = false;
  794. }
  795. while(row >= 0){
  796. if(!first){
  797. col = clen-1;
  798. }
  799. first = false;
  800. while(col >= 0){
  801. if(fn.call(scope || this, row, col, cm) === true){
  802. return [row, col];
  803. }
  804. col--;
  805. }
  806. row--;
  807. }
  808. } else {
  809. if(col >= clen){
  810. row++;
  811. first = false;
  812. }
  813. while(row < rlen){
  814. if(!first){
  815. col = 0;
  816. }
  817. first = false;
  818. while(col < clen){
  819. if(fn.call(scope || this, row, col, cm) === true){
  820. return [row, col];
  821. }
  822. col++;
  823. }
  824. row++;
  825. }
  826. }
  827. return null;
  828. },
  829. <div id="method-Ext.grid.GridPanel-getGridEl"></div>/**
  830. * Returns the grid's underlying element.
  831. * @return {Element} The element
  832. */
  833. getGridEl : function(){
  834. return this.body;
  835. },
  836. // private for compatibility, overridden by editor grid
  837. stopEditing : Ext.emptyFn,
  838. <div id="method-Ext.grid.GridPanel-getSelectionModel"></div>/**
  839. * Returns the grid's selection model configured by the <code>{@link #selModel}</code>
  840. * configuration option. If no selection model was configured, this will create
  841. * and return a {@link Ext.grid.RowSelectionModel RowSelectionModel}.
  842. * @return {SelectionModel}
  843. */
  844. getSelectionModel : function(){
  845. if(!this.selModel){
  846. this.selModel = new Ext.grid.RowSelectionModel(
  847. this.disableSelection ? {selectRow: Ext.emptyFn} : null);
  848. }
  849. return this.selModel;
  850. },
  851. <div id="method-Ext.grid.GridPanel-getStore"></div>/**
  852. * Returns the grid's data store.
  853. * @return {Ext.data.Store} The store
  854. */
  855. getStore : function(){
  856. return this.store;
  857. },
  858. <div id="method-Ext.grid.GridPanel-getColumnModel"></div>/**
  859. * Returns the grid's ColumnModel.
  860. * @return {Ext.grid.ColumnModel} The column model
  861. */
  862. getColumnModel : function(){
  863. return this.colModel;
  864. },
  865. <div id="method-Ext.grid.GridPanel-getView"></div>/**
  866. * Returns the grid's GridView object.
  867. * @return {Ext.grid.GridView} The grid view
  868. */
  869. getView : function() {
  870. if (!this.view) {
  871. this.view = new Ext.grid.GridView(this.viewConfig);
  872. }
  873. return this.view;
  874. },
  875. <div id="method-Ext.grid.GridPanel-getDragDropText"></div>/**
  876. * Called to get grid's drag proxy text, by default returns this.ddText.
  877. * @return {String} The text
  878. */
  879. getDragDropText : function(){
  880. var count = this.selModel.getCount();
  881. return String.format(this.ddText, count, count == 1 ? '' : 's');
  882. }
  883. <div id="cfg-Ext.grid.GridPanel-activeItem"></div>/**
  884. * @cfg {String/Number} activeItem
  885. * @hide
  886. */
  887. <div id="cfg-Ext.grid.GridPanel-autoDestroy"></div>/**
  888. * @cfg {Boolean} autoDestroy
  889. * @hide
  890. */
  891. <div id="cfg-Ext.grid.GridPanel-autoLoad"></div>/**
  892. * @cfg {Object/String/Function} autoLoad
  893. * @hide
  894. */
  895. <div id="cfg-Ext.grid.GridPanel-autoWidth"></div>/**
  896. * @cfg {Boolean} autoWidth
  897. * @hide
  898. */
  899. <div id="cfg-Ext.grid.GridPanel-bufferResize"></div>/**
  900. * @cfg {Boolean/Number} bufferResize
  901. * @hide
  902. */
  903. <div id="cfg-Ext.grid.GridPanel-defaultType"></div>/**
  904. * @cfg {String} defaultType
  905. * @hide
  906. */
  907. <div id="cfg-Ext.grid.GridPanel-defaults"></div>/**
  908. * @cfg {Object} defaults
  909. * @hide
  910. */
  911. <div id="cfg-Ext.grid.GridPanel-hideBorders"></div>/**
  912. * @cfg {Boolean} hideBorders
  913. * @hide
  914. */
  915. <div id="cfg-Ext.grid.GridPanel-items"></div>/**
  916. * @cfg {Mixed} items
  917. * @hide
  918. */
  919. <div id="cfg-Ext.grid.GridPanel-layout"></div>/**
  920. * @cfg {String} layout
  921. * @hide
  922. */
  923. <div id="cfg-Ext.grid.GridPanel-layoutConfig"></div>/**
  924. * @cfg {Object} layoutConfig
  925. * @hide
  926. */
  927. <div id="cfg-Ext.grid.GridPanel-monitorResize"></div>/**
  928. * @cfg {Boolean} monitorResize
  929. * @hide
  930. */
  931. <div id="prop-Ext.grid.GridPanel-items"></div>/**
  932. * @property items
  933. * @hide
  934. */
  935. <div id="method-Ext.grid.GridPanel-add"></div>/**
  936. * @method add
  937. * @hide
  938. */
  939. <div id="method-Ext.grid.GridPanel-cascade"></div>/**
  940. * @method cascade
  941. * @hide
  942. */
  943. <div id="method-Ext.grid.GridPanel-doLayout"></div>/**
  944. * @method doLayout
  945. * @hide
  946. */
  947. <div id="method-Ext.grid.GridPanel-find"></div>/**
  948. * @method find
  949. * @hide
  950. */
  951. <div id="method-Ext.grid.GridPanel-findBy"></div>/**
  952. * @method findBy
  953. * @hide
  954. */
  955. <div id="method-Ext.grid.GridPanel-findById"></div>/**
  956. * @method findById
  957. * @hide
  958. */
  959. <div id="method-Ext.grid.GridPanel-findByType"></div>/**
  960. * @method findByType
  961. * @hide
  962. */
  963. <div id="method-Ext.grid.GridPanel-getComponent"></div>/**
  964. * @method getComponent
  965. * @hide
  966. */
  967. <div id="method-Ext.grid.GridPanel-getLayout"></div>/**
  968. * @method getLayout
  969. * @hide
  970. */
  971. <div id="method-Ext.grid.GridPanel-getUpdater"></div>/**
  972. * @method getUpdater
  973. * @hide
  974. */
  975. <div id="method-Ext.grid.GridPanel-insert"></div>/**
  976. * @method insert
  977. * @hide
  978. */
  979. <div id="method-Ext.grid.GridPanel-load"></div>/**
  980. * @method load
  981. * @hide
  982. */
  983. <div id="method-Ext.grid.GridPanel-remove"></div>/**
  984. * @method remove
  985. * @hide
  986. */
  987. <div id="event-Ext.grid.GridPanel-add"></div>/**
  988. * @event add
  989. * @hide
  990. */
  991. <div id="event-Ext.grid.GridPanel-afterlayout"></div>/**
  992. * @event afterlayout
  993. * @hide
  994. */
  995. <div id="event-Ext.grid.GridPanel-beforeadd"></div>/**
  996. * @event beforeadd
  997. * @hide
  998. */
  999. <div id="event-Ext.grid.GridPanel-beforeremove"></div>/**
  1000. * @event beforeremove
  1001. * @hide
  1002. */
  1003. <div id="event-Ext.grid.GridPanel-remove"></div>/**
  1004. * @event remove
  1005. * @hide
  1006. */
  1007. <div id="cfg-Ext.grid.GridPanel-allowDomMove"></div>/**
  1008. * @cfg {String} allowDomMove @hide
  1009. */
  1010. <div id="cfg-Ext.grid.GridPanel-autoEl"></div>/**
  1011. * @cfg {String} autoEl @hide
  1012. */
  1013. <div id="cfg-Ext.grid.GridPanel-applyTo"></div>/**
  1014. * @cfg {String} applyTo @hide
  1015. */
  1016. <div id="cfg-Ext.grid.GridPanel-autoScroll"></div>/**
  1017. * @cfg {String} autoScroll @hide
  1018. */
  1019. <div id="cfg-Ext.grid.GridPanel-bodyBorder"></div>/**
  1020. * @cfg {String} bodyBorder @hide
  1021. */
  1022. <div id="cfg-Ext.grid.GridPanel-bodyStyle"></div>/**
  1023. * @cfg {String} bodyStyle @hide
  1024. */
  1025. <div id="cfg-Ext.grid.GridPanel-contentEl"></div>/**
  1026. * @cfg {String} contentEl @hide
  1027. */
  1028. <div id="cfg-Ext.grid.GridPanel-disabledClass"></div>/**
  1029. * @cfg {String} disabledClass @hide
  1030. */
  1031. <div id="cfg-Ext.grid.GridPanel-elements"></div>/**
  1032. * @cfg {String} elements @hide
  1033. */
  1034. <div id="cfg-Ext.grid.GridPanel-html"></div>/**
  1035. * @cfg {String} html @hide
  1036. */
  1037. <div id="cfg-Ext.grid.GridPanel-preventBodyReset"></div>/**
  1038. * @cfg {Boolean} preventBodyReset
  1039. * @hide
  1040. */
  1041. <div id="prop-Ext.grid.GridPanel-disabled"></div>/**
  1042. * @property disabled
  1043. * @hide
  1044. */
  1045. <div id="method-Ext.grid.GridPanel-applyToMarkup"></div>/**
  1046. * @method applyToMarkup
  1047. * @hide
  1048. */
  1049. <div id="method-Ext.grid.GridPanel-enable"></div>/**
  1050. * @method enable
  1051. * @hide
  1052. */
  1053. <div id="method-Ext.grid.GridPanel-disable"></div>/**
  1054. * @method disable
  1055. * @hide
  1056. */
  1057. <div id="method-Ext.grid.GridPanel-setDisabled"></div>/**
  1058. * @method setDisabled
  1059. * @hide
  1060. */
  1061. });
  1062. Ext.reg('grid', Ext.grid.GridPanel);</pre>
  1063. </body>
  1064. </html>