1 | <div class="body-wrap"> |
---|
2 | <div class="top-tools"> |
---|
3 | <a class="inner-link" href="#Ext.grid.GridView-props"><img src="../resources/images/default/s.gif" class="item-icon icon-prop">Properties</a> |
---|
4 | <a class="inner-link" href="#Ext.grid.GridView-methods"><img src="../resources/images/default/s.gif" class="item-icon icon-method">Methods</a> |
---|
5 | <a class="inner-link" href="#Ext.grid.GridView-events"><img src="../resources/images/default/s.gif" class="item-icon icon-event">Events</a> |
---|
6 | <a class="inner-link" href="#Ext.grid.GridView-configs"><img src="../resources/images/default/s.gif" class="item-icon icon-config">Config Options</a> |
---|
7 | <a class="bookmark" href="../docs/?class=Ext.grid.GridView"><img src="../resources/images/default/s.gif" class="item-icon icon-fav">Direct Link</a> |
---|
8 | </div> |
---|
9 | <div class="inheritance res-block"> |
---|
10 | <pre class="res-block-inner"><a ext:cls="Ext.util.Observable" ext:member="" href="output/Ext.util.Observable.html">Observable</a> |
---|
11 | <img src="resources/elbow-end.gif"/>GridView</pre></div> |
---|
12 | <h1>Class Ext.grid.GridView</h1> |
---|
13 | <table cellspacing="0"> |
---|
14 | <tr><td class="label">Package:</td><td class="hd-info">Ext.grid</td></tr> |
---|
15 | <tr><td class="label">Defined In:</td><td class="hd-info"><a href="../src/GridView.js" target="_blank">GridView.js</a></td></tr> |
---|
16 | <tr><td class="label">Class:</td><td class="hd-info">GridView</td></tr> |
---|
17 | <tr><td class="label">Subclasses:</td><td class="hd-info"><a ext:cls="Ext.grid.GroupingView" href="output/Ext.grid.GroupingView.html">GroupingView</a></td></tr> |
---|
18 | <tr><td class="label">Extends:</td><td class="hd-info"><a ext:cls="Ext.util.Observable" ext:member="" href="output/Ext.util.Observable.html">Observable</a></td></tr> |
---|
19 | </table> |
---|
20 | <div class="description"> |
---|
21 | * |
---|
22 | <p>This class encapsulates the user interface of an <a ext:cls="Ext.grid.GridPanel" href="output/Ext.grid.GridPanel.html">Ext.grid.GridPanel</a>. |
---|
23 | Methods of this class may be used to access user interface elements to enable |
---|
24 | special display effects. Do not change the DOM structure of the user interface.</p> |
---|
25 | <p>This class does not provide ways to manipulate the underlying data. The data |
---|
26 | model of a Grid is held in an <a ext:cls="Ext.data.Store" href="output/Ext.data.Store.html">Ext.data.Store</a>.</p> </div> |
---|
27 | |
---|
28 | <div class="hr"></div> |
---|
29 | <a id="Ext.grid.GridView-configs"></a> |
---|
30 | <h2>Config Options</h2> |
---|
31 | <table cellspacing="0" class="member-table"> |
---|
32 | <tr> |
---|
33 | <th class="sig-header" colspan="2">Config Options</th> |
---|
34 | <th class="msource-header">Defined By</th> |
---|
35 | </tr> |
---|
36 | <tr class="config-row"> |
---|
37 | <td class="micon"><a class="exi" href="#expand"> </a></td> |
---|
38 | <td class="sig"> |
---|
39 | <a id="Ext.grid.GridView-autoFill"></a> |
---|
40 | <b>autoFill</b> : Boolean <div class="mdesc"> |
---|
41 | True to auto expand the columns to fit the grid <b>when the grid is created</b>. </div> |
---|
42 | </td> |
---|
43 | <td class="msource">GridView</td> |
---|
44 | </tr> |
---|
45 | <tr class="config-row alt"> |
---|
46 | <td class="micon"><a class="exi" href="#expand"> </a></td> |
---|
47 | <td class="sig"> |
---|
48 | <a id="Ext.grid.GridView-cellSelector"></a> |
---|
49 | <b>cellSelector</b> : String <div class="mdesc"> |
---|
50 | The selector used to find cells internally </div> |
---|
51 | </td> |
---|
52 | <td class="msource">GridView</td> |
---|
53 | </tr> |
---|
54 | <tr class="config-row"> |
---|
55 | <td class="micon"><a class="exi" href="#expand"> </a></td> |
---|
56 | <td class="sig"> |
---|
57 | <a id="Ext.grid.GridView-cellSelectorDepth"></a> |
---|
58 | <b>cellSelectorDepth</b> : Number <div class="mdesc"> |
---|
59 | The number of levels to search for cells in event delegation (defaults to 4) </div> |
---|
60 | </td> |
---|
61 | <td class="msource">GridView</td> |
---|
62 | </tr> |
---|
63 | <tr class="config-row alt"> |
---|
64 | <td class="micon"><a class="exi" href="#expand"> </a></td> |
---|
65 | <td class="sig"> |
---|
66 | <a id="Ext.grid.GridView-deferEmptyText"></a> |
---|
67 | <b>deferEmptyText</b> : Boolean <div class="mdesc"> |
---|
68 | True to defer emptyText being applied until the store's first load </div> |
---|
69 | </td> |
---|
70 | <td class="msource">GridView</td> |
---|
71 | </tr> |
---|
72 | <tr class="config-row"> |
---|
73 | <td class="micon"><a class="exi" href="#expand"> </a></td> |
---|
74 | <td class="sig"> |
---|
75 | <a id="Ext.grid.GridView-emptyText"></a> |
---|
76 | <b>emptyText</b> : String <div class="mdesc"> |
---|
77 | Default text to display in the grid body when no rows are available (defaults to ''). </div> |
---|
78 | </td> |
---|
79 | <td class="msource">GridView</td> |
---|
80 | </tr> |
---|
81 | <tr class="config-row alt expandable"> |
---|
82 | <td class="micon"><a class="exi" href="#expand"> </a></td> |
---|
83 | <td class="sig"> |
---|
84 | <a id="Ext.grid.GridView-enableRowBody"></a> |
---|
85 | <b>enableRowBody</b> : Boolean <div class="mdesc"> |
---|
86 | <div class="short">True to add a second TR element per row that can be used to provide a row body that spans beneath the data row. Use t...</div> |
---|
87 | <div class="long"> |
---|
88 | True to add a second TR element per row that can be used to provide a row body that spans beneath the data row. Use the <a ext:cls="Ext.grid.GridView" ext:member="getRowClass" href="output/Ext.grid.GridView.html#getRowClass">getRowClass</a> method's rowParams config to customize the row body. </div> |
---|
89 | </div> |
---|
90 | </td> |
---|
91 | <td class="msource">GridView</td> |
---|
92 | </tr> |
---|
93 | <tr class="config-row expandable"> |
---|
94 | <td class="micon"><a class="exi" href="#expand"> </a></td> |
---|
95 | <td class="sig"> |
---|
96 | <a id="Ext.grid.GridView-forceFit"></a> |
---|
97 | <b>forceFit</b> : Boolean <div class="mdesc"> |
---|
98 | <div class="short">True to auto expand/contract the size of the columns to fit the grid width and prevent horizontal scrolling. This opt...</div> |
---|
99 | <div class="long"> |
---|
100 | True to auto expand/contract the size of the columns to fit the grid width and prevent horizontal scrolling. This option overrides any (@link Ext.grid.ColumnModel#width width} settings in the ColumnModel. </div> |
---|
101 | </div> |
---|
102 | </td> |
---|
103 | <td class="msource">GridView</td> |
---|
104 | </tr> |
---|
105 | <tr class="config-row inherited alt expandable"> |
---|
106 | <td class="micon"><a class="exi" href="#expand"> </a></td> |
---|
107 | <td class="sig"> |
---|
108 | <a id="Ext.grid.GridView-listeners"></a> |
---|
109 | <b>listeners</b> : Object <div class="mdesc"> |
---|
110 | <div class="short">(optional) A config object containing one or more event handlers to be added to this object during initialization. Th...</div> |
---|
111 | <div class="long"> |
---|
112 | (optional) A config object containing one or more event handlers to be added to this object during initialization. This should be a valid listeners config object as specified in the <a ext:cls="Ext.util.Observable" ext:member="addListener" href="output/Ext.util.Observable.html#addListener">addListener</a> example for attaching multiple handlers at once. </div> |
---|
113 | </div> |
---|
114 | </td> |
---|
115 | <td class="msource"><a ext:cls="Ext.util.Observable" ext:member="#listeners" href="output/Ext.util.Observable.html#listeners">Observable</a></td> |
---|
116 | </tr> |
---|
117 | <tr class="config-row"> |
---|
118 | <td class="micon"><a class="exi" href="#expand"> </a></td> |
---|
119 | <td class="sig"> |
---|
120 | <a id="Ext.grid.GridView-rowSelector"></a> |
---|
121 | <b>rowSelector</b> : String <div class="mdesc"> |
---|
122 | The selector used to find rows internally </div> |
---|
123 | </td> |
---|
124 | <td class="msource">GridView</td> |
---|
125 | </tr> |
---|
126 | <tr class="config-row alt"> |
---|
127 | <td class="micon"><a class="exi" href="#expand"> </a></td> |
---|
128 | <td class="sig"> |
---|
129 | <a id="Ext.grid.GridView-rowSelectorDepth"></a> |
---|
130 | <b>rowSelectorDepth</b> : Number <div class="mdesc"> |
---|
131 | The number of levels to search for rows in event delegation (defaults to 10) </div> |
---|
132 | </td> |
---|
133 | <td class="msource">GridView</td> |
---|
134 | </tr> |
---|
135 | </table> |
---|
136 | <a id="Ext.grid.GridView-props"></a> |
---|
137 | <h2>Public Properties</h2> |
---|
138 | <table cellspacing="0" class="member-table"> |
---|
139 | <tr> |
---|
140 | <th class="sig-header" colspan="2">Property</th> |
---|
141 | <th class="msource-header">Defined By</th> |
---|
142 | </tr> |
---|
143 | <tr class="property-row"> |
---|
144 | <td class="micon"><a class="exi" href="#expand"> </a></td> |
---|
145 | <td class="sig"> |
---|
146 | <a id="Ext.grid.GridView-columnsText"></a> |
---|
147 | <b>columnsText</b> : String <div class="mdesc"> |
---|
148 | The text displayed in the "Columns" menu item </div> |
---|
149 | </td> |
---|
150 | <td class="msource">GridView</td> |
---|
151 | </tr> |
---|
152 | <tr class="property-row alt"> |
---|
153 | <td class="micon"><a class="exi" href="#expand"> </a></td> |
---|
154 | <td class="sig"> |
---|
155 | <a id="Ext.grid.GridView-dragZone"></a> |
---|
156 | <b>dragZone</b> : Ext.grid.GridDragZone |
---|
157 | <p><b>This <div class="mdesc"> |
---|
158 | </div> |
---|
159 | </td> |
---|
160 | <td class="msource">GridView</td> |
---|
161 | </tr> |
---|
162 | <tr class="property-row expandable"> |
---|
163 | <td class="micon"><a class="exi" href="#expand"> </a></td> |
---|
164 | <td class="sig"> |
---|
165 | <a id="Ext.grid.GridView-mainBody"></a> |
---|
166 | <b>mainBody</b> : Ext.Element <div class="mdesc"> |
---|
167 | <div class="short">The GridView's body Element which encapsulates all rows in the Grid. Element. Read-only. |
---|
168 | This Element is only availab...</div> |
---|
169 | <div class="long"> |
---|
170 | The GridView's body Element which encapsulates all rows in the Grid. <a ext:cls="Ext.Element" href="output/Ext.Element.html">Element</a>. Read-only. |
---|
171 | <p>This Element is only available after the GridPanel has been rendered.</p> </div> |
---|
172 | </div> |
---|
173 | </td> |
---|
174 | <td class="msource">GridView</td> |
---|
175 | </tr> |
---|
176 | <tr class="property-row alt"> |
---|
177 | <td class="micon"><a class="exi" href="#expand"> </a></td> |
---|
178 | <td class="sig"> |
---|
179 | <a id="Ext.grid.GridView-scrollOffset"></a> |
---|
180 | <b>scrollOffset</b> : Number <div class="mdesc"> |
---|
181 | The amount of space to reserve for the scrollbar (defaults to 19 pixels) </div> |
---|
182 | </td> |
---|
183 | <td class="msource">GridView</td> |
---|
184 | </tr> |
---|
185 | <tr class="property-row"> |
---|
186 | <td class="micon"><a class="exi" href="#expand"> </a></td> |
---|
187 | <td class="sig"> |
---|
188 | <a id="Ext.grid.GridView-sortAscText"></a> |
---|
189 | <b>sortAscText</b> : String <div class="mdesc"> |
---|
190 | The text displayed in the "Sort Ascending" menu item </div> |
---|
191 | </td> |
---|
192 | <td class="msource">GridView</td> |
---|
193 | </tr> |
---|
194 | <tr class="property-row alt"> |
---|
195 | <td class="micon"><a class="exi" href="#expand"> </a></td> |
---|
196 | <td class="sig"> |
---|
197 | <a id="Ext.grid.GridView-sortClasses"></a> |
---|
198 | <b>sortClasses</b> : Array <div class="mdesc"> |
---|
199 | The CSS classes applied to a header when it is sorted. (defaults to ["sort-asc", "sort-desc"]) </div> |
---|
200 | </td> |
---|
201 | <td class="msource">GridView</td> |
---|
202 | </tr> |
---|
203 | <tr class="property-row"> |
---|
204 | <td class="micon"><a class="exi" href="#expand"> </a></td> |
---|
205 | <td class="sig"> |
---|
206 | <a id="Ext.grid.GridView-sortDescText"></a> |
---|
207 | <b>sortDescText</b> : String <div class="mdesc"> |
---|
208 | The text displayed in the "Sort Descending" menu item </div> |
---|
209 | </td> |
---|
210 | <td class="msource">GridView</td> |
---|
211 | </tr> |
---|
212 | </table> |
---|
213 | <a id="Ext.grid.GridView-methods"></a> |
---|
214 | <h2>Public Methods</h2> |
---|
215 | <table cellspacing="0" class="member-table"> |
---|
216 | <tr> |
---|
217 | <th class="sig-header" colspan="2">Method</th> |
---|
218 | <th class="msource-header">Defined By</th> |
---|
219 | </tr> |
---|
220 | <tr class="method-row expandable"> |
---|
221 | <td class="micon"><a class="exi" href="#expand"> </a></td> |
---|
222 | <td class="sig"> |
---|
223 | <a id="Ext.grid.GridView-GridView"></a> |
---|
224 | <b>GridView</b>( <code>Object config</code> ) <div class="mdesc"> |
---|
225 | <div class="short"></div> |
---|
226 | <div class="long"> |
---|
227 | <div class="mdetail-params"> |
---|
228 | <strong>Parameters:</strong> |
---|
229 | <ul><li><code>config</code> : Object<div class="sub-desc"></div></li> </ul> |
---|
230 | <strong>Returns:</strong> |
---|
231 | <ul> |
---|
232 | <li><code></code></li> |
---|
233 | </ul> |
---|
234 | </div> |
---|
235 | </div> |
---|
236 | </div> |
---|
237 | </td> |
---|
238 | <td class="msource">GridView</td> |
---|
239 | </tr> |
---|
240 | <tr class="method-row inherited alt expandable"> |
---|
241 | <td class="micon"><a class="exi" href="#expand"> </a></td> |
---|
242 | <td class="sig"> |
---|
243 | <a id="Ext.grid.GridView-addEvents"></a> |
---|
244 | <b>addEvents</b>( <code>Object object</code> ) : void <div class="mdesc"> |
---|
245 | <div class="short">Used to define events on this Observable</div> |
---|
246 | <div class="long"> |
---|
247 | Used to define events on this Observable <div class="mdetail-params"> |
---|
248 | <strong>Parameters:</strong> |
---|
249 | <ul><li><code>object</code> : Object<div class="sub-desc">The object with the events defined</div></li> </ul> |
---|
250 | <strong>Returns:</strong> |
---|
251 | <ul> |
---|
252 | <li><code>void</code></li> |
---|
253 | </ul> |
---|
254 | </div> |
---|
255 | </div> |
---|
256 | </div> |
---|
257 | </td> |
---|
258 | <td class="msource"><a ext:cls="Ext.util.Observable" ext:member="#addEvents" href="output/Ext.util.Observable.html#addEvents">Observable</a></td> |
---|
259 | </tr> |
---|
260 | <tr class="method-row inherited expandable"> |
---|
261 | <td class="micon"><a class="exi" href="#expand"> </a></td> |
---|
262 | <td class="sig"> |
---|
263 | <a id="Ext.grid.GridView-addListener"></a> |
---|
264 | <b>addListener</b>( <code>String eventName</code>, <code>Function handler</code>, <span class="optional" title="Optional">[<code>Object scope</code>]</span>, <span class="optional" title="Optional">[<code>Object options</code>]</span> ) : void <div class="mdesc"> |
---|
265 | <div class="short">Appends an event handler to this component</div> |
---|
266 | <div class="long"> |
---|
267 | Appends an event handler to this component <div class="mdetail-params"> |
---|
268 | <strong>Parameters:</strong> |
---|
269 | <ul><li><code>eventName</code> : String<div class="sub-desc">The type of event to listen for</div></li><li><code>handler</code> : Function<div class="sub-desc">The method the event invokes</div></li><li><code>scope</code> : Object<div class="sub-desc">(optional) The scope in which to execute the handler |
---|
270 | function. The handler function's "this" context.</div></li><li><code>options</code> : Object<div class="sub-desc">(optional) An object containing handler configuration |
---|
271 | properties. This may contain any of the following properties:<ul> |
---|
272 | <li><b>scope</b> : Object<p class="sub-desc">The scope in which to execute the handler function. The handler function's "this" context.</p></li> |
---|
273 | <li><b>delay</b> : Number<p class="sub-desc">The number of milliseconds to delay the invocation of the handler after the event fires.</p></li> |
---|
274 | <li><b>single</b> : Boolean<p class="sub-desc">True to add a handler to handle just the next firing of the event, and then remove itself.</p></li> |
---|
275 | <li><b>buffer</b> : Number<p class="sub-desc">Causes the handler to be scheduled to run in an <a ext:cls="Ext.util.DelayedTask" href="output/Ext.util.DelayedTask.html">Ext.util.DelayedTask</a> delayed |
---|
276 | by the specified number of milliseconds. If the event fires again within that time, the original |
---|
277 | handler is <em>not</em> invoked, but the new handler is scheduled in its place.</p></li> |
---|
278 | </ul><br> |
---|
279 | <p> |
---|
280 | <b>Combining Options</b><br> |
---|
281 | Using the options argument, it is possible to combine different types of listeners:<br> |
---|
282 | <br> |
---|
283 | A normalized, delayed, one-time listener that auto stops the event and passes a custom argument (forumId) |
---|
284 | <pre><code>el.on(<em>'click'</em>, <b>this</b>.onClick, <b>this</b>, { |
---|
285 | single: true, |
---|
286 | delay: 100, |
---|
287 | forumId: 4 |
---|
288 | });</code></pre> |
---|
289 | <p> |
---|
290 | <b>Attaching multiple handlers in 1 call</b><br> |
---|
291 | The method also allows for a single argument to be passed which is a config object containing properties |
---|
292 | which specify multiple handlers. |
---|
293 | <p> |
---|
294 | <pre><code>foo.on({ |
---|
295 | <em>'click'</em> : { |
---|
296 | fn: <b>this</b>.onClick, |
---|
297 | scope: <b>this</b>, |
---|
298 | delay: 100 |
---|
299 | }, |
---|
300 | <em>'mouseover'</em> : { |
---|
301 | fn: <b>this</b>.onMouseOver, |
---|
302 | scope: <b>this</b> |
---|
303 | }, |
---|
304 | <em>'mouseout'</em> : { |
---|
305 | fn: <b>this</b>.onMouseOut, |
---|
306 | scope: <b>this</b> |
---|
307 | } |
---|
308 | });</code></pre> |
---|
309 | <p> |
---|
310 | Or a shorthand syntax:<br> |
---|
311 | <pre><code>foo.on({ |
---|
312 | <em>'click'</em> : <b>this</b>.onClick, |
---|
313 | <em>'mouseover'</em> : <b>this</b>.onMouseOver, |
---|
314 | <em>'mouseout'</em> : <b>this</b>.onMouseOut, |
---|
315 | scope: <b>this</b> |
---|
316 | });</code></pre></div></li> </ul> |
---|
317 | <strong>Returns:</strong> |
---|
318 | <ul> |
---|
319 | <li><code>void</code></li> |
---|
320 | </ul> |
---|
321 | </div> |
---|
322 | </div> |
---|
323 | </div> |
---|
324 | </td> |
---|
325 | <td class="msource"><a ext:cls="Ext.util.Observable" ext:member="#addListener" href="output/Ext.util.Observable.html#addListener">Observable</a></td> |
---|
326 | </tr> |
---|
327 | <tr class="method-row alt expandable"> |
---|
328 | <td class="micon"><a class="exi" href="#expand"> </a></td> |
---|
329 | <td class="sig"> |
---|
330 | <a id="Ext.grid.GridView-findRow"></a> |
---|
331 | <b>findRow</b>( <code>Element el</code> ) : The <div class="mdesc"> |
---|
332 | <div class="short">Return the HtmlElement representing the grid row which contains the passed element.</div> |
---|
333 | <div class="long"> |
---|
334 | Return the HtmlElement representing the grid row which contains the passed element. <div class="mdetail-params"> |
---|
335 | <strong>Parameters:</strong> |
---|
336 | <ul><li><code>el</code> : Element<div class="sub-desc">The target element</div></li> </ul> |
---|
337 | <strong>Returns:</strong> |
---|
338 | <ul> |
---|
339 | <li><code>The</code><div class="sub-desc">row element, or null if the target element is not within a row of this GridView.</div></li> |
---|
340 | </ul> |
---|
341 | </div> |
---|
342 | </div> |
---|
343 | </div> |
---|
344 | </td> |
---|
345 | <td class="msource">GridView</td> |
---|
346 | </tr> |
---|
347 | <tr class="method-row expandable"> |
---|
348 | <td class="micon"><a class="exi" href="#expand"> </a></td> |
---|
349 | <td class="sig"> |
---|
350 | <a id="Ext.grid.GridView-findRowIndex"></a> |
---|
351 | <b>findRowIndex</b>( <code>Element el</code> ) : The <div class="mdesc"> |
---|
352 | <div class="short">Return the index of the grid row which contains the passed element.</div> |
---|
353 | <div class="long"> |
---|
354 | Return the index of the grid row which contains the passed element. <div class="mdetail-params"> |
---|
355 | <strong>Parameters:</strong> |
---|
356 | <ul><li><code>el</code> : Element<div class="sub-desc">The target element</div></li> </ul> |
---|
357 | <strong>Returns:</strong> |
---|
358 | <ul> |
---|
359 | <li><code>The</code><div class="sub-desc">row index, or <b>false</b> if the target element is not within a row of this GridView.</div></li> |
---|
360 | </ul> |
---|
361 | </div> |
---|
362 | </div> |
---|
363 | </div> |
---|
364 | </td> |
---|
365 | <td class="msource">GridView</td> |
---|
366 | </tr> |
---|
367 | <tr class="method-row inherited alt expandable"> |
---|
368 | <td class="micon"><a class="exi" href="#expand"> </a></td> |
---|
369 | <td class="sig"> |
---|
370 | <a id="Ext.grid.GridView-fireEvent"></a> |
---|
371 | <b>fireEvent</b>( <code>String eventName</code>, <code>Object... args</code> ) : Boolean <div class="mdesc"> |
---|
372 | <div class="short">Fires the specified event with the passed parameters (minus the event name).</div> |
---|
373 | <div class="long"> |
---|
374 | Fires the specified event with the passed parameters (minus the event name). <div class="mdetail-params"> |
---|
375 | <strong>Parameters:</strong> |
---|
376 | <ul><li><code>eventName</code> : String<div class="sub-desc"></div></li><li><code>args</code> : Object...<div class="sub-desc">Variable number of parameters are passed to handlers</div></li> </ul> |
---|
377 | <strong>Returns:</strong> |
---|
378 | <ul> |
---|
379 | <li><code>Boolean</code><div class="sub-desc">returns false if any of the handlers return false otherwise it returns true</div></li> |
---|
380 | </ul> |
---|
381 | </div> |
---|
382 | </div> |
---|
383 | </div> |
---|
384 | </td> |
---|
385 | <td class="msource"><a ext:cls="Ext.util.Observable" ext:member="#fireEvent" href="output/Ext.util.Observable.html#fireEvent">Observable</a></td> |
---|
386 | </tr> |
---|
387 | <tr class="method-row expandable"> |
---|
388 | <td class="micon"><a class="exi" href="#expand"> </a></td> |
---|
389 | <td class="sig"> |
---|
390 | <a id="Ext.grid.GridView-focusCell"></a> |
---|
391 | <b>focusCell</b>( <code>Number row</code>, <code>Number col</code> ) : void <div class="mdesc"> |
---|
392 | <div class="short">Focuses the specified cell.</div> |
---|
393 | <div class="long"> |
---|
394 | Focuses the specified cell. <div class="mdetail-params"> |
---|
395 | <strong>Parameters:</strong> |
---|
396 | <ul><li><code>row</code> : Number<div class="sub-desc">The row index</div></li><li><code>col</code> : Number<div class="sub-desc">The column index</div></li> </ul> |
---|
397 | <strong>Returns:</strong> |
---|
398 | <ul> |
---|
399 | <li><code>void</code></li> |
---|
400 | </ul> |
---|
401 | </div> |
---|
402 | </div> |
---|
403 | </div> |
---|
404 | </td> |
---|
405 | <td class="msource">GridView</td> |
---|
406 | </tr> |
---|
407 | <tr class="method-row alt expandable"> |
---|
408 | <td class="micon"><a class="exi" href="#expand"> </a></td> |
---|
409 | <td class="sig"> |
---|
410 | <a id="Ext.grid.GridView-focusRow"></a> |
---|
411 | <b>focusRow</b>( <code>Number row</code> ) : void <div class="mdesc"> |
---|
412 | <div class="short">Focuses the specified row.</div> |
---|
413 | <div class="long"> |
---|
414 | Focuses the specified row. <div class="mdetail-params"> |
---|
415 | <strong>Parameters:</strong> |
---|
416 | <ul><li><code>row</code> : Number<div class="sub-desc">The row index</div></li> </ul> |
---|
417 | <strong>Returns:</strong> |
---|
418 | <ul> |
---|
419 | <li><code>void</code></li> |
---|
420 | </ul> |
---|
421 | </div> |
---|
422 | </div> |
---|
423 | </div> |
---|
424 | </td> |
---|
425 | <td class="msource">GridView</td> |
---|
426 | </tr> |
---|
427 | <tr class="method-row expandable"> |
---|
428 | <td class="micon"><a class="exi" href="#expand"> </a></td> |
---|
429 | <td class="sig"> |
---|
430 | <a id="Ext.grid.GridView-getCell"></a> |
---|
431 | <b>getCell</b>( <code>Number row</code>, <code>Number col</code> ) : HtmlElement <div class="mdesc"> |
---|
432 | <div class="short">Returns the grid's <TD> HtmlElement at the specified coordinates.</div> |
---|
433 | <div class="long"> |
---|
434 | Returns the grid's <TD> HtmlElement at the specified coordinates. <div class="mdetail-params"> |
---|
435 | <strong>Parameters:</strong> |
---|
436 | <ul><li><code>row</code> : Number<div class="sub-desc">The row index in which to find the cell.</div></li><li><code>col</code> : Number<div class="sub-desc">The column index of the cell.</div></li> </ul> |
---|
437 | <strong>Returns:</strong> |
---|
438 | <ul> |
---|
439 | <li><code>HtmlElement</code><div class="sub-desc">The <TD> at the specified coordinates.</div></li> |
---|
440 | </ul> |
---|
441 | </div> |
---|
442 | </div> |
---|
443 | </div> |
---|
444 | </td> |
---|
445 | <td class="msource">GridView</td> |
---|
446 | </tr> |
---|
447 | <tr class="method-row alt expandable"> |
---|
448 | <td class="micon"><a class="exi" href="#expand"> </a></td> |
---|
449 | <td class="sig"> |
---|
450 | <a id="Ext.grid.GridView-getHeaderCell"></a> |
---|
451 | <b>getHeaderCell</b>( <code>Number index</code> ) : HtmlElement <div class="mdesc"> |
---|
452 | <div class="short">Return the <TD> HtmlElement which represents the Grid's header cell for the specified column index.</div> |
---|
453 | <div class="long"> |
---|
454 | Return the <TD> HtmlElement which represents the Grid's header cell for the specified column index. <div class="mdetail-params"> |
---|
455 | <strong>Parameters:</strong> |
---|
456 | <ul><li><code>index</code> : Number<div class="sub-desc">The column index</div></li> </ul> |
---|
457 | <strong>Returns:</strong> |
---|
458 | <ul> |
---|
459 | <li><code>HtmlElement</code><div class="sub-desc">The <TD> element.</div></li> |
---|
460 | </ul> |
---|
461 | </div> |
---|
462 | </div> |
---|
463 | </div> |
---|
464 | </td> |
---|
465 | <td class="msource">GridView</td> |
---|
466 | </tr> |
---|
467 | <tr class="method-row expandable"> |
---|
468 | <td class="micon"><a class="exi" href="#expand"> </a></td> |
---|
469 | <td class="sig"> |
---|
470 | <a id="Ext.grid.GridView-getRow"></a> |
---|
471 | <b>getRow</b>( <code>Number index</code> ) : HtmlElement <div class="mdesc"> |
---|
472 | <div class="short">Return the <TR> HtmlElement which represents a Grid row for the specified index.</div> |
---|
473 | <div class="long"> |
---|
474 | Return the <TR> HtmlElement which represents a Grid row for the specified index. <div class="mdetail-params"> |
---|
475 | <strong>Parameters:</strong> |
---|
476 | <ul><li><code>index</code> : Number<div class="sub-desc">The row index</div></li> </ul> |
---|
477 | <strong>Returns:</strong> |
---|
478 | <ul> |
---|
479 | <li><code>HtmlElement</code><div class="sub-desc">The <TR> element.</div></li> |
---|
480 | </ul> |
---|
481 | </div> |
---|
482 | </div> |
---|
483 | </div> |
---|
484 | </td> |
---|
485 | <td class="msource">GridView</td> |
---|
486 | </tr> |
---|
487 | <tr class="method-row alt expandable"> |
---|
488 | <td class="micon"><a class="exi" href="#expand"> </a></td> |
---|
489 | <td class="sig"> |
---|
490 | <a id="Ext.grid.GridView-getRowClass"></a> |
---|
491 | <b>getRowClass</b>( <code>Record record</code>, <code>Number index</code>, <code>Object rowParams</code>, <code>Store store</code> ) : String <div class="mdesc"> |
---|
492 | <div class="short">Override this function to apply custom CSS classes to rows during rendering. You can also supply custom |
---|
493 | parameters t...</div> |
---|
494 | <div class="long"> |
---|
495 | Override this function to apply custom CSS classes to rows during rendering. You can also supply custom |
---|
496 | parameters to the row template for the current row to customize how it is rendered using the <b>rowParams</b> |
---|
497 | parameter. This function should return the CSS class name (or empty string '' for none) that will be added |
---|
498 | to the row's wrapping div. To apply multiple class names, simply return them space-delimited within the string |
---|
499 | (e.g., 'my-class another-class'). <div class="mdetail-params"> |
---|
500 | <strong>Parameters:</strong> |
---|
501 | <ul><li><code>record</code> : Record<div class="sub-desc">The <a ext:cls="Ext.data.Record" href="output/Ext.data.Record.html">Ext.data.Record</a> corresponding to the current row</div></li><li><code>index</code> : Number<div class="sub-desc">The row index</div></li><li><code>rowParams</code> : Object<div class="sub-desc">A config object that is passed to the row template during rendering that allows |
---|
502 | customization of various aspects of a body row, if applicable. Note that this object will only be applied if |
---|
503 | <a ext:cls="Ext.grid.GridView" ext:member="enableRowBody" href="output/Ext.grid.GridView.html#enableRowBody">enableRowBody</a> = true, otherwise it will be ignored. The object may contain any of these properties:<ul> |
---|
504 | <li><code>body</code> : String <div class="sub-desc">An HTML fragment to be rendered as the cell's body content (defaults to '').</div></li> |
---|
505 | <li><code>bodyStyle</code> : String <div class="sub-desc">A CSS style string that will be applied to the row's TR style attribute (defaults to '').</div></li> |
---|
506 | <li><code>cols</code> : Number <div class="sub-desc">The column count to apply to the body row's TD colspan attribute (defaults to the current |
---|
507 | column count of the grid).</div></li> |
---|
508 | </ul></div></li><li><code>store</code> : Store<div class="sub-desc">The <a ext:cls="Ext.data.Store" href="output/Ext.data.Store.html">Ext.data.Store</a> this grid is bound to</div></li> </ul> |
---|
509 | <strong>Returns:</strong> |
---|
510 | <ul> |
---|
511 | <li><code>String</code><div class="sub-desc">a CSS class name to add to the row.</div></li> |
---|
512 | </ul> |
---|
513 | </div> |
---|
514 | </div> |
---|
515 | </div> |
---|
516 | </td> |
---|
517 | <td class="msource">GridView</td> |
---|
518 | </tr> |
---|
519 | <tr class="method-row inherited expandable"> |
---|
520 | <td class="micon"><a class="exi" href="#expand"> </a></td> |
---|
521 | <td class="sig"> |
---|
522 | <a id="Ext.grid.GridView-hasListener"></a> |
---|
523 | <b>hasListener</b>( <code>String eventName</code> ) : Boolean <div class="mdesc"> |
---|
524 | <div class="short">Checks to see if this object has any listeners for a specified event</div> |
---|
525 | <div class="long"> |
---|
526 | Checks to see if this object has any listeners for a specified event <div class="mdetail-params"> |
---|
527 | <strong>Parameters:</strong> |
---|
528 | <ul><li><code>eventName</code> : String<div class="sub-desc">The name of the event to check for</div></li> </ul> |
---|
529 | <strong>Returns:</strong> |
---|
530 | <ul> |
---|
531 | <li><code>Boolean</code><div class="sub-desc">True if the event is being listened for, else false</div></li> |
---|
532 | </ul> |
---|
533 | </div> |
---|
534 | </div> |
---|
535 | </div> |
---|
536 | </td> |
---|
537 | <td class="msource"><a ext:cls="Ext.util.Observable" ext:member="#hasListener" href="output/Ext.util.Observable.html#hasListener">Observable</a></td> |
---|
538 | </tr> |
---|
539 | <tr class="method-row inherited alt expandable"> |
---|
540 | <td class="micon"><a class="exi" href="#expand"> </a></td> |
---|
541 | <td class="sig"> |
---|
542 | <a id="Ext.grid.GridView-on"></a> |
---|
543 | <b>on</b>( <code>String eventName</code>, <code>Function handler</code>, <span class="optional" title="Optional">[<code>Object scope</code>]</span>, <span class="optional" title="Optional">[<code>Object options</code>]</span> ) : void <div class="mdesc"> |
---|
544 | <div class="short">Appends an event handler to this element (shorthand for addListener)</div> |
---|
545 | <div class="long"> |
---|
546 | Appends an event handler to this element (shorthand for addListener) <div class="mdetail-params"> |
---|
547 | <strong>Parameters:</strong> |
---|
548 | <ul><li><code>eventName</code> : String<div class="sub-desc">The type of event to listen for</div></li><li><code>handler</code> : Function<div class="sub-desc">The method the event invokes</div></li><li><code>scope</code> : Object<div class="sub-desc">(optional) The scope in which to execute the handler |
---|
549 | function. The handler function's "this" context.</div></li><li><code>options</code> : Object<div class="sub-desc">(optional)</div></li> </ul> |
---|
550 | <strong>Returns:</strong> |
---|
551 | <ul> |
---|
552 | <li><code>void</code></li> |
---|
553 | </ul> |
---|
554 | </div> |
---|
555 | </div> |
---|
556 | </div> |
---|
557 | </td> |
---|
558 | <td class="msource"><a ext:cls="Ext.util.Observable" ext:member="#on" href="output/Ext.util.Observable.html#on">Observable</a></td> |
---|
559 | </tr> |
---|
560 | <tr class="method-row inherited expandable"> |
---|
561 | <td class="micon"><a class="exi" href="#expand"> </a></td> |
---|
562 | <td class="sig"> |
---|
563 | <a id="Ext.grid.GridView-purgeListeners"></a> |
---|
564 | <b>purgeListeners</b>() : void <div class="mdesc"> |
---|
565 | <div class="short">Removes all listeners for this object</div> |
---|
566 | <div class="long"> |
---|
567 | Removes all listeners for this object <div class="mdetail-params"> |
---|
568 | <strong>Parameters:</strong> |
---|
569 | <ul><li>None.</li> </ul> |
---|
570 | <strong>Returns:</strong> |
---|
571 | <ul> |
---|
572 | <li><code>void</code></li> |
---|
573 | </ul> |
---|
574 | </div> |
---|
575 | </div> |
---|
576 | </div> |
---|
577 | </td> |
---|
578 | <td class="msource"><a ext:cls="Ext.util.Observable" ext:member="#purgeListeners" href="output/Ext.util.Observable.html#purgeListeners">Observable</a></td> |
---|
579 | </tr> |
---|
580 | <tr class="method-row alt expandable"> |
---|
581 | <td class="micon"><a class="exi" href="#expand"> </a></td> |
---|
582 | <td class="sig"> |
---|
583 | <a id="Ext.grid.GridView-refresh"></a> |
---|
584 | <b>refresh</b>( <span class="optional" title="Optional">[<code>Boolean headersToo</code>]</span> ) : void <div class="mdesc"> |
---|
585 | <div class="short">Refreshs the grid UI</div> |
---|
586 | <div class="long"> |
---|
587 | Refreshs the grid UI <div class="mdetail-params"> |
---|
588 | <strong>Parameters:</strong> |
---|
589 | <ul><li><code>headersToo</code> : Boolean<div class="sub-desc">(optional) True to also refresh the headers</div></li> </ul> |
---|
590 | <strong>Returns:</strong> |
---|
591 | <ul> |
---|
592 | <li><code>void</code></li> |
---|
593 | </ul> |
---|
594 | </div> |
---|
595 | </div> |
---|
596 | </div> |
---|
597 | </td> |
---|
598 | <td class="msource">GridView</td> |
---|
599 | </tr> |
---|
600 | <tr class="method-row inherited expandable"> |
---|
601 | <td class="micon"><a class="exi" href="#expand"> </a></td> |
---|
602 | <td class="sig"> |
---|
603 | <a id="Ext.grid.GridView-relayEvents"></a> |
---|
604 | <b>relayEvents</b>( <code>Object o</code>, <code>Array events</code> ) : void <div class="mdesc"> |
---|
605 | <div class="short">Relays selected events from the specified Observable as if the events were fired by <tt><b>this</b></tt>.</div> |
---|
606 | <div class="long"> |
---|
607 | Relays selected events from the specified Observable as if the events were fired by <tt><b>this</b></tt>. <div class="mdetail-params"> |
---|
608 | <strong>Parameters:</strong> |
---|
609 | <ul><li><code>o</code> : Object<div class="sub-desc">The Observable whose events this object is to relay.</div></li><li><code>events</code> : Array<div class="sub-desc">Array of event names to relay.</div></li> </ul> |
---|
610 | <strong>Returns:</strong> |
---|
611 | <ul> |
---|
612 | <li><code>void</code></li> |
---|
613 | </ul> |
---|
614 | </div> |
---|
615 | </div> |
---|
616 | </div> |
---|
617 | </td> |
---|
618 | <td class="msource"><a ext:cls="Ext.util.Observable" ext:member="#relayEvents" href="output/Ext.util.Observable.html#relayEvents">Observable</a></td> |
---|
619 | </tr> |
---|
620 | <tr class="method-row inherited alt expandable"> |
---|
621 | <td class="micon"><a class="exi" href="#expand"> </a></td> |
---|
622 | <td class="sig"> |
---|
623 | <a id="Ext.grid.GridView-removeListener"></a> |
---|
624 | <b>removeListener</b>( <code>String eventName</code>, <code>Function handler</code>, <span class="optional" title="Optional">[<code>Object scope</code>]</span> ) : void <div class="mdesc"> |
---|
625 | <div class="short">Removes a listener</div> |
---|
626 | <div class="long"> |
---|
627 | Removes a listener <div class="mdetail-params"> |
---|
628 | <strong>Parameters:</strong> |
---|
629 | <ul><li><code>eventName</code> : String<div class="sub-desc">The type of event to listen for</div></li><li><code>handler</code> : Function<div class="sub-desc">The handler to remove</div></li><li><code>scope</code> : Object<div class="sub-desc">(optional) The scope (this object) for the handler</div></li> </ul> |
---|
630 | <strong>Returns:</strong> |
---|
631 | <ul> |
---|
632 | <li><code>void</code></li> |
---|
633 | </ul> |
---|
634 | </div> |
---|
635 | </div> |
---|
636 | </div> |
---|
637 | </td> |
---|
638 | <td class="msource"><a ext:cls="Ext.util.Observable" ext:member="#removeListener" href="output/Ext.util.Observable.html#removeListener">Observable</a></td> |
---|
639 | </tr> |
---|
640 | <tr class="method-row inherited expandable"> |
---|
641 | <td class="micon"><a class="exi" href="#expand"> </a></td> |
---|
642 | <td class="sig"> |
---|
643 | <a id="Ext.grid.GridView-resumeEvents"></a> |
---|
644 | <b>resumeEvents</b>() : void <div class="mdesc"> |
---|
645 | <div class="short">Resume firing events. (see <a ext:cls="Ext.util.Observable" ext:member="suspendEvents" href="output/Ext.util.Observable.html#suspendEvents">suspendEvents</a>)</div> |
---|
646 | <div class="long"> |
---|
647 | Resume firing events. (see <a ext:cls="Ext.util.Observable" ext:member="suspendEvents" href="output/Ext.util.Observable.html#suspendEvents">suspendEvents</a>) <div class="mdetail-params"> |
---|
648 | <strong>Parameters:</strong> |
---|
649 | <ul><li>None.</li> </ul> |
---|
650 | <strong>Returns:</strong> |
---|
651 | <ul> |
---|
652 | <li><code>void</code></li> |
---|
653 | </ul> |
---|
654 | </div> |
---|
655 | </div> |
---|
656 | </div> |
---|
657 | </td> |
---|
658 | <td class="msource"><a ext:cls="Ext.util.Observable" ext:member="#resumeEvents" href="output/Ext.util.Observable.html#resumeEvents">Observable</a></td> |
---|
659 | </tr> |
---|
660 | <tr class="method-row alt expandable"> |
---|
661 | <td class="micon"><a class="exi" href="#expand"> </a></td> |
---|
662 | <td class="sig"> |
---|
663 | <a id="Ext.grid.GridView-scrollToTop"></a> |
---|
664 | <b>scrollToTop</b>() : void <div class="mdesc"> |
---|
665 | <div class="short">Scrolls the grid to the top</div> |
---|
666 | <div class="long"> |
---|
667 | Scrolls the grid to the top <div class="mdetail-params"> |
---|
668 | <strong>Parameters:</strong> |
---|
669 | <ul><li>None.</li> </ul> |
---|
670 | <strong>Returns:</strong> |
---|
671 | <ul> |
---|
672 | <li><code>void</code></li> |
---|
673 | </ul> |
---|
674 | </div> |
---|
675 | </div> |
---|
676 | </div> |
---|
677 | </td> |
---|
678 | <td class="msource">GridView</td> |
---|
679 | </tr> |
---|
680 | <tr class="method-row inherited expandable"> |
---|
681 | <td class="micon"><a class="exi" href="#expand"> </a></td> |
---|
682 | <td class="sig"> |
---|
683 | <a id="Ext.grid.GridView-suspendEvents"></a> |
---|
684 | <b>suspendEvents</b>() : void <div class="mdesc"> |
---|
685 | <div class="short">Suspend the firing of all events. (see <a ext:cls="Ext.util.Observable" ext:member="resumeEvents" href="output/Ext.util.Observable.html#resumeEvents">resumeEvents</a>)</div> |
---|
686 | <div class="long"> |
---|
687 | Suspend the firing of all events. (see <a ext:cls="Ext.util.Observable" ext:member="resumeEvents" href="output/Ext.util.Observable.html#resumeEvents">resumeEvents</a>) <div class="mdetail-params"> |
---|
688 | <strong>Parameters:</strong> |
---|
689 | <ul><li>None.</li> </ul> |
---|
690 | <strong>Returns:</strong> |
---|
691 | <ul> |
---|
692 | <li><code>void</code></li> |
---|
693 | </ul> |
---|
694 | </div> |
---|
695 | </div> |
---|
696 | </div> |
---|
697 | </td> |
---|
698 | <td class="msource"><a ext:cls="Ext.util.Observable" ext:member="#suspendEvents" href="output/Ext.util.Observable.html#suspendEvents">Observable</a></td> |
---|
699 | </tr> |
---|
700 | <tr class="method-row inherited alt expandable"> |
---|
701 | <td class="micon"><a class="exi" href="#expand"> </a></td> |
---|
702 | <td class="sig"> |
---|
703 | <a id="Ext.grid.GridView-un"></a> |
---|
704 | <b>un</b>( <code>String eventName</code>, <code>Function handler</code>, <span class="optional" title="Optional">[<code>Object scope</code>]</span> ) : void <div class="mdesc"> |
---|
705 | <div class="short">Removes a listener (shorthand for removeListener)</div> |
---|
706 | <div class="long"> |
---|
707 | Removes a listener (shorthand for removeListener) <div class="mdetail-params"> |
---|
708 | <strong>Parameters:</strong> |
---|
709 | <ul><li><code>eventName</code> : String<div class="sub-desc">The type of event to listen for</div></li><li><code>handler</code> : Function<div class="sub-desc">The handler to remove</div></li><li><code>scope</code> : Object<div class="sub-desc">(optional) The scope (this object) for the handler</div></li> </ul> |
---|
710 | <strong>Returns:</strong> |
---|
711 | <ul> |
---|
712 | <li><code>void</code></li> |
---|
713 | </ul> |
---|
714 | </div> |
---|
715 | </div> |
---|
716 | </div> |
---|
717 | </td> |
---|
718 | <td class="msource"><a ext:cls="Ext.util.Observable" ext:member="#un" href="output/Ext.util.Observable.html#un">Observable</a></td> |
---|
719 | </tr> |
---|
720 | </table> |
---|
721 | <a id="Ext.grid.GridView-events"></a> |
---|
722 | <h2>Public Events</h2> |
---|
723 | <table cellspacing="0" class="member-table"> |
---|
724 | <tr> |
---|
725 | <th class="sig-header" colspan="2">Event</th> |
---|
726 | <th class="msource-header">Defined By</th> |
---|
727 | </tr> |
---|
728 | <tr class="event-row expandable"> |
---|
729 | <td class="micon"><a class="exi" href="#expand"> </a></td> |
---|
730 | <td class="sig"> |
---|
731 | <a id="Ext.grid.GridView-beforerefresh"></a> |
---|
732 | <b>beforerefresh</b> : ( <code>Ext.grid.GridView view</code> ) <div class="mdesc"> |
---|
733 | <div class="short">Internal UI Event. Fired before the view is refreshed.</div> |
---|
734 | <div class="long"> |
---|
735 | Internal UI Event. Fired before the view is refreshed. <div class="mdetail-params"> |
---|
736 | <strong style="font-weight:normal;">Listeners will be called with the following arguments:</strong> |
---|
737 | <ul><li><code>view</code> : Ext.grid.GridView<div class="sub-desc"></div></li> </ul> |
---|
738 | </div> |
---|
739 | </div> |
---|
740 | </div> |
---|
741 | </td> |
---|
742 | <td class="msource">GridView</td> |
---|
743 | </tr> |
---|
744 | <tr class="event-row alt expandable"> |
---|
745 | <td class="micon"><a class="exi" href="#expand"> </a></td> |
---|
746 | <td class="sig"> |
---|
747 | <a id="Ext.grid.GridView-beforerowremoved"></a> |
---|
748 | <b>beforerowremoved</b> : ( <code>Ext.grid.GridView view</code>, <code>Number rowIndex</code>, <code>Ext.data.Record record</code> ) <div class="mdesc"> |
---|
749 | <div class="short">Internal UI Event. Fired before a row is removed.</div> |
---|
750 | <div class="long"> |
---|
751 | Internal UI Event. Fired before a row is removed. <div class="mdetail-params"> |
---|
752 | <strong style="font-weight:normal;">Listeners will be called with the following arguments:</strong> |
---|
753 | <ul><li><code>view</code> : Ext.grid.GridView<div class="sub-desc"></div></li><li><code>rowIndex</code> : Number<div class="sub-desc">The index of the row to be removed.</div></li><li><code>record</code> : Ext.data.Record<div class="sub-desc">The Record to be removed</div></li> </ul> |
---|
754 | </div> |
---|
755 | </div> |
---|
756 | </div> |
---|
757 | </td> |
---|
758 | <td class="msource">GridView</td> |
---|
759 | </tr> |
---|
760 | <tr class="event-row expandable"> |
---|
761 | <td class="micon"><a class="exi" href="#expand"> </a></td> |
---|
762 | <td class="sig"> |
---|
763 | <a id="Ext.grid.GridView-beforerowsinserted"></a> |
---|
764 | <b>beforerowsinserted</b> : ( <code>Ext.grid.GridView view</code>, <code>Number firstRow</code>, <code>Number lastRow</code> ) <div class="mdesc"> |
---|
765 | <div class="short">Internal UI Event. Fired before rows are inserted.</div> |
---|
766 | <div class="long"> |
---|
767 | Internal UI Event. Fired before rows are inserted. <div class="mdetail-params"> |
---|
768 | <strong style="font-weight:normal;">Listeners will be called with the following arguments:</strong> |
---|
769 | <ul><li><code>view</code> : Ext.grid.GridView<div class="sub-desc"></div></li><li><code>firstRow</code> : Number<div class="sub-desc">The index of the first row to be inserted.</div></li><li><code>lastRow</code> : Number<div class="sub-desc">The index of the last row to be inserted.</div></li> </ul> |
---|
770 | </div> |
---|
771 | </div> |
---|
772 | </div> |
---|
773 | </td> |
---|
774 | <td class="msource">GridView</td> |
---|
775 | </tr> |
---|
776 | <tr class="event-row alt expandable"> |
---|
777 | <td class="micon"><a class="exi" href="#expand"> </a></td> |
---|
778 | <td class="sig"> |
---|
779 | <a id="Ext.grid.GridView-refresh"></a> |
---|
780 | <b>refresh</b> : ( <code>Ext.grid.GridView view</code> ) <div class="mdesc"> |
---|
781 | <div class="short">Internal UI Event. Fired after the GridView's body has been refreshed.</div> |
---|
782 | <div class="long"> |
---|
783 | Internal UI Event. Fired after the GridView's body has been refreshed. <div class="mdetail-params"> |
---|
784 | <strong style="font-weight:normal;">Listeners will be called with the following arguments:</strong> |
---|
785 | <ul><li><code>view</code> : Ext.grid.GridView<div class="sub-desc"></div></li> </ul> |
---|
786 | </div> |
---|
787 | </div> |
---|
788 | </div> |
---|
789 | </td> |
---|
790 | <td class="msource">GridView</td> |
---|
791 | </tr> |
---|
792 | <tr class="event-row expandable"> |
---|
793 | <td class="micon"><a class="exi" href="#expand"> </a></td> |
---|
794 | <td class="sig"> |
---|
795 | <a id="Ext.grid.GridView-rowremoved"></a> |
---|
796 | <b>rowremoved</b> : ( <code>Ext.grid.GridView view</code>, <code>Number rowIndex</code>, <code>Ext.data.Record record</code> ) <div class="mdesc"> |
---|
797 | <div class="short">Internal UI Event. Fired after a row is removed.</div> |
---|
798 | <div class="long"> |
---|
799 | Internal UI Event. Fired after a row is removed. <div class="mdetail-params"> |
---|
800 | <strong style="font-weight:normal;">Listeners will be called with the following arguments:</strong> |
---|
801 | <ul><li><code>view</code> : Ext.grid.GridView<div class="sub-desc"></div></li><li><code>rowIndex</code> : Number<div class="sub-desc">The index of the row that was removed.</div></li><li><code>record</code> : Ext.data.Record<div class="sub-desc">The Record that was removed</div></li> </ul> |
---|
802 | </div> |
---|
803 | </div> |
---|
804 | </div> |
---|
805 | </td> |
---|
806 | <td class="msource">GridView</td> |
---|
807 | </tr> |
---|
808 | <tr class="event-row alt expandable"> |
---|
809 | <td class="micon"><a class="exi" href="#expand"> </a></td> |
---|
810 | <td class="sig"> |
---|
811 | <a id="Ext.grid.GridView-rowsinserted"></a> |
---|
812 | <b>rowsinserted</b> : ( <code>Ext.grid.GridView view</code>, <code>Number firstRow</code>, <code>Number lastRow</code> ) <div class="mdesc"> |
---|
813 | <div class="short">Internal UI Event. Fired after rows are inserted.</div> |
---|
814 | <div class="long"> |
---|
815 | Internal UI Event. Fired after rows are inserted. <div class="mdetail-params"> |
---|
816 | <strong style="font-weight:normal;">Listeners will be called with the following arguments:</strong> |
---|
817 | <ul><li><code>view</code> : Ext.grid.GridView<div class="sub-desc"></div></li><li><code>firstRow</code> : Number<div class="sub-desc">The index of the first inserted.</div></li><li><code>lastRow</code> : Number<div class="sub-desc">The index of the last row inserted.</div></li> </ul> |
---|
818 | </div> |
---|
819 | </div> |
---|
820 | </div> |
---|
821 | </td> |
---|
822 | <td class="msource">GridView</td> |
---|
823 | </tr> |
---|
824 | <tr class="event-row expandable"> |
---|
825 | <td class="micon"><a class="exi" href="#expand"> </a></td> |
---|
826 | <td class="sig"> |
---|
827 | <a id="Ext.grid.GridView-rowupdated"></a> |
---|
828 | <b>rowupdated</b> : ( <code>Ext.grid.GridView view</code>, <code>Number firstRow</code>, <code>Ext.data.record record</code> ) <div class="mdesc"> |
---|
829 | <div class="short">Internal UI Event. Fired after a row has been updated.</div> |
---|
830 | <div class="long"> |
---|
831 | Internal UI Event. Fired after a row has been updated. <div class="mdetail-params"> |
---|
832 | <strong style="font-weight:normal;">Listeners will be called with the following arguments:</strong> |
---|
833 | <ul><li><code>view</code> : Ext.grid.GridView<div class="sub-desc"></div></li><li><code>firstRow</code> : Number<div class="sub-desc">The index of the row updated.</div></li><li><code>record</code> : Ext.data.record<div class="sub-desc">The Record backing the row updated.</div></li> </ul> |
---|
834 | </div> |
---|
835 | </div> |
---|
836 | </div> |
---|
837 | </td> |
---|
838 | <td class="msource">GridView</td> |
---|
839 | </tr> |
---|
840 | </table> |
---|
841 | |
---|
842 | </div> |
---|