commit extjs-2.2.1
[extjs.git] / docs / output / Ext.data.Store.html
1         <div class="body-wrap">
2         <div class="top-tools">
3             <a class="inner-link" href="#Ext.data.Store-props"><img src="../resources/images/default/s.gif" class="item-icon icon-prop">Properties</a>
4             <a class="inner-link" href="#Ext.data.Store-methods"><img src="../resources/images/default/s.gif" class="item-icon icon-method">Methods</a>
5             <a class="inner-link" href="#Ext.data.Store-events"><img src="../resources/images/default/s.gif" class="item-icon icon-event">Events</a>
6                             <a class="inner-link" href="#Ext.data.Store-configs"><img src="../resources/images/default/s.gif" class="item-icon icon-config">Config Options</a>
7                         <a class="bookmark" href="../docs/?class=Ext.data.Store"><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"/>Store</pre></div>
12                 <h1>Class Ext.data.Store</h1>
13         <table cellspacing="0">
14             <tr><td class="label">Package:</td><td class="hd-info">Ext.data</td></tr>
15             <tr><td class="label">Defined In:</td><td class="hd-info"><a href="../src/Store.js" target="_blank">Store.js</a></td></tr>
16             <tr><td class="label">Class:</td><td class="hd-info">Store</td></tr>
17                         <tr><td class="label">Subclasses:</td><td class="hd-info"><a ext:cls="Ext.data.GroupingStore" href="output/Ext.data.GroupingStore.html">GroupingStore</a>, <a ext:cls="Ext.data.JsonStore" href="output/Ext.data.JsonStore.html">JsonStore</a>, <a ext:cls="Ext.data.SimpleStore" href="output/Ext.data.SimpleStore.html">SimpleStore</a>, <a ext:cls="Ext.sql.SQLiteStore" href="output/Ext.sql.SQLiteStore.html">SQLiteStore</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 The Store class encapsulates a client side cache of <a ext:cls="Ext.data.Record" href="output/Ext.data.Record.html">Record</a>
23 objects which provide input data for Components such as the <a ext:cls="Ext.grid.GridPanel" href="output/Ext.grid.GridPanel.html">GridPanel</a>,
24 the <a ext:cls="Ext.form.ComboBox" href="output/Ext.form.ComboBox.html">ComboBox</a>, or the <a ext:cls="Ext.DataView" href="output/Ext.DataView.html">DataView</a></p>
25 <p>A Store object uses its <a ext:cls="Ext.data.Store" ext:member="proxy" href="output/Ext.data.Store.html#proxy">configured</a> implementation of <a ext:cls="Ext.data.DataProxy" href="output/Ext.data.DataProxy.html">DataProxy</a>
26 to access a data object unless you call <a ext:cls="Ext.data.Store" ext:member="loadData" href="output/Ext.data.Store.html#loadData">loadData</a> directly and pass in your data.</p>
27 <p>A Store object has no knowledge of the format of the data returned by the Proxy.</p>
28 <p>A Store object uses its <a ext:cls="Ext.data.Store" ext:member="reader" href="output/Ext.data.Store.html#reader">configured</a> implementation of <a ext:cls="Ext.data.DataReader" href="output/Ext.data.DataReader.html">DataReader</a>
29 to create <a ext:cls="Ext.data.Record" href="output/Ext.data.Record.html">Record</a> instances from the data object. These Records
30 are cached and made available through accessor functions.</p>        </div>
31         
32         <div class="hr"></div>
33                 <a id="Ext.data.Store-configs"></a>
34         <h2>Config Options</h2>
35         <table cellspacing="0" class="member-table">
36             <tr>
37                 <th class="sig-header" colspan="2">Config Options</th>
38                 <th class="msource-header">Defined By</th>
39             </tr>
40                 <tr class="config-row">\r
41         <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>\r
42         <td class="sig">\r
43         <a id="Ext.data.Store-autoLoad"></a>\r
44             <b>autoLoad</b> : Boolean/Object            <div class="mdesc">\r
45                             If passed, this store's load method is automatically called after creation with the autoLoad object                        </div>\r
46         </td>\r
47         <td class="msource">Store</td>\r
48     </tr>\r
49         <tr class="config-row alt">\r
50         <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>\r
51         <td class="sig">\r
52         <a id="Ext.data.Store-baseParams"></a>\r
53             <b>baseParams</b> : Object            <div class="mdesc">\r
54                             An object containing properties which are to be sent as parameters on any HTTP request                        </div>\r
55         </td>\r
56         <td class="msource">Store</td>\r
57     </tr>\r
58         <tr class="config-row">\r
59         <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>\r
60         <td class="sig">\r
61         <a id="Ext.data.Store-data"></a>\r
62             <b>data</b> : Array            <div class="mdesc">\r
63                             Inline data to be loaded when the store is initialized.                        </div>\r
64         </td>\r
65         <td class="msource">Store</td>\r
66     </tr>\r
67         <tr class="config-row inherited alt expandable">\r
68         <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>\r
69         <td class="sig">\r
70         <a id="Ext.data.Store-listeners"></a>\r
71             <b>listeners</b> : Object            <div class="mdesc">\r
72                         <div class="short">(optional) A config object containing one or more event handlers to be added to this object during initialization. Th...</div>\r
73             <div class="long">\r
74                 (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>\r
75                         </div>\r
76         </td>\r
77         <td class="msource"><a ext:cls="Ext.util.Observable" ext:member="#listeners" href="output/Ext.util.Observable.html#listeners">Observable</a></td>\r
78     </tr>\r
79         <tr class="config-row">\r
80         <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>\r
81         <td class="sig">\r
82         <a id="Ext.data.Store-proxy"></a>\r
83             <b>proxy</b> : Ext.data.DataProxy            <div class="mdesc">\r
84                             The Proxy object which provides access to a data object.                        </div>\r
85         </td>\r
86         <td class="msource">Store</td>\r
87     </tr>\r
88         <tr class="config-row alt expandable">\r
89         <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>\r
90         <td class="sig">\r
91         <a id="Ext.data.Store-pruneModifiedRecords"></a>\r
92             <b>pruneModifiedRecords</b> : boolean            <div class="mdesc">\r
93                         <div class="short">True to clear all modified record information each time the store is loaded or when a record is removed. (defaults to...</div>\r
94             <div class="long">\r
95                 True to clear all modified record information each time the store is loaded or when a record is removed. (defaults to false).            </div>\r
96                         </div>\r
97         </td>\r
98         <td class="msource">Store</td>\r
99     </tr>\r
100         <tr class="config-row expandable">\r
101         <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>\r
102         <td class="sig">\r
103         <a id="Ext.data.Store-reader"></a>\r
104             <b>reader</b> : Ext.data.DataReader            <div class="mdesc">\r
105                         <div class="short">The DataReader object which processes the data object and returns an Array of Ext.data.Record objects which are cache...</div>\r
106             <div class="long">\r
107                 The DataReader object which processes the data object and returns an Array of Ext.data.Record objects which are cached keyed by their <em>id</em> property.            </div>\r
108                         </div>\r
109         </td>\r
110         <td class="msource">Store</td>\r
111     </tr>\r
112         <tr class="config-row alt expandable">\r
113         <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>\r
114         <td class="sig">\r
115         <a id="Ext.data.Store-remoteSort"></a>\r
116             <b>remoteSort</b> : boolean            <div class="mdesc">\r
117                         <div class="short">True if sorting is to be handled by requesting the Proxy to provide a refreshed version of the data object in sorted ...</div>\r
118             <div class="long">\r
119                 True if sorting is to be handled by requesting the Proxy to provide a refreshed version of the data object in sorted order, as opposed to sorting the Record cache in place (defaults to false). <p>If remote sorting is specified, then clicking on a column header causes the current page to be requested from the server with the addition of the following two parameters: <div class="mdetail-params"><ul> <li><b>sort</b> : String<p class="sub-desc">The name (as specified in the Record's Field definition) of the field to sort on.</p></li> <li><b>dir</b> : String<p class="sub-desc">The direction of the sort, "ASC" or "DESC" (case-sensitive).</p></li> </ul></div></p>            </div>\r
120                         </div>\r
121         </td>\r
122         <td class="msource">Store</td>\r
123     </tr>\r
124         <tr class="config-row expandable">\r
125         <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>\r
126         <td class="sig">\r
127         <a id="Ext.data.Store-sortInfo"></a>\r
128             <b>sortInfo</b> : Object            <div class="mdesc">\r
129                         <div class="short">A config object in the format: {field: "fieldName", direction: "ASC|DESC"} to specify the sort order in the request o...</div>\r
130             <div class="long">\r
131                 A config object in the format: {field: "fieldName", direction: "ASC|DESC"} to specify the sort order in the request of a remote Store's <a ext:cls="Ext.data.Store" ext:member="load" href="output/Ext.data.Store.html#load">load</a> operation. Note that for local sorting, the direction property is case-sensitive.            </div>\r
132                         </div>\r
133         </td>\r
134         <td class="msource">Store</td>\r
135     </tr>\r
136         <tr class="config-row alt">\r
137         <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>\r
138         <td class="sig">\r
139         <a id="Ext.data.Store-storeId"></a>\r
140             <b>storeId</b> : String            <div class="mdesc">\r
141                             If passed, the id to use to register with the StoreMgr                        </div>\r
142         </td>\r
143         <td class="msource">Store</td>\r
144     </tr>\r
145         <tr class="config-row">\r
146         <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>\r
147         <td class="sig">\r
148         <a id="Ext.data.Store-url"></a>\r
149             <b>url</b> : String            <div class="mdesc">\r
150                             If passed, an HttpProxy is created for the passed URL                        </div>\r
151         </td>\r
152         <td class="msource">Store</td>\r
153     </tr>\r
154             </table>
155                 <a id="Ext.data.Store-props"></a>
156         <h2>Public Properties</h2>
157                 <table cellspacing="0" class="member-table">
158             <tr>
159                 <th class="sig-header" colspan="2">Property</th>
160                 <th class="msource-header">Defined By</th>
161             </tr>
162                 <tr class="property-row expandable">\r
163         <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>\r
164         <td class="sig">\r
165         <a id="Ext.data.Store-baseParams"></a>\r
166             <b>baseParams</b> : Object            <div class="mdesc">\r
167                         <div class="short">An object containing properties which are used as parameters on any HTTP request.
168 This property can be changed after ...</div>\r
169             <div class="long">\r
170                 An object containing properties which are used as parameters on any HTTP request.
171 This property can be changed after creating the Store to send different parameters.            </div>\r
172                         </div>\r
173         </td>\r
174         <td class="msource">Store</td>\r
175     </tr>\r
176         <tr class="property-row alt">\r
177         <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>\r
178         <td class="sig">\r
179         <a id="Ext.data.Store-fields"></a>\r
180             <b>fields</b> : Ext.util.MixedCollection            <div class="mdesc">\r
181                             A MixedCollection containing the defined <a ext:cls="Ext.data.Field" href="output/Ext.data.Field.html">Field</a>s for the Records stored in this Store.  Read-only.                        </div>\r
182         </td>\r
183         <td class="msource">Store</td>\r
184     </tr>\r
185         <tr class="property-row expandable">\r
186         <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>\r
187         <td class="sig">\r
188         <a id="Ext.data.Store-lastOptions"></a>\r
189             <b>lastOptions</b> : Object            <div class="mdesc">\r
190                         <div class="short">Contains the last options object used as the parameter to the load method. See load
191 for the details of what this may ...</div>\r
192             <div class="long">\r
193                 Contains the last options object used as the parameter to the load method. See <a ext:cls="Ext.data.Store" ext:member="load" href="output/Ext.data.Store.html#load">load</a>
194 for the details of what this may contain. This may be useful for accessing any params which
195 were used to load the current Record cache.            </div>\r
196                         </div>\r
197         </td>\r
198         <td class="msource">Store</td>\r
199     </tr>\r
200         <tr class="property-row alt expandable">\r
201         <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>\r
202         <td class="sig">\r
203         <a id="Ext.data.Store-paramNames"></a>\r
204             <b>paramNames</b> : Object            <div class="mdesc">\r
205                         <div class="short">An object containing properties which specify the names of the paging and
206 sorting parameters passed to remote servers...</div>\r
207             <div class="long">\r
208                 <p>An object containing properties which specify the names of the paging and
209 sorting parameters passed to remote servers when loading blocks of data. By default, this
210 object takes the following form:</p><pre><code>{
211     start : <em>"start"</em>,    <i>// The parameter name which specifies the start row</i>
212     limit : <em>"limit"</em>,    <i>// The parameter name which specifies number of rows to <b>return</b></i>
213     sort : <em>"sort"</em>,      <i>// The parameter name which specifies the column to sort on</i>
214     dir : <em>"dir"</em>         <i>// The parameter name which specifies the sort direction</i>
215 }</code></pre>
216 <p>The server must produce the requested data block upon receipt of these parameter names.
217 If different parameter names are required, this property can be overriden using a configuration
218 property.</p>
219 <p>A <a ext:cls="Ext.PagingToolbar" href="output/Ext.PagingToolbar.html">PagingToolbar</a> bound to this grid uses this property to determine
220 the parameter names to use in its requests.            </div>\r
221                         </div>\r
222         </td>\r
223         <td class="msource">Store</td>\r
224     </tr>\r
225         <tr class="property-row expandable">\r
226         <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>\r
227         <td class="sig">\r
228         <a id="Ext.data.Store-recordType"></a>\r
229             <b>recordType</b> : Function            <div class="mdesc">\r
230                         <div class="short">The Record constructor as supplied to (or created by) the Reader.  Read-only.
231 If the Reader was constructed by passin...</div>\r
232             <div class="long">\r
233                 The <a ext:cls="Ext.data.Record" href="output/Ext.data.Record.html">Record</a> constructor as supplied to (or created by) the <a ext:cls="Ext.data.Reader" ext:member="Reader" href="output/Ext.data.Reader.html#Reader">Reader</a>.  Read-only.
234 <p>If the Reader was constructed by passing in an Array of field definition objects, instead of an created
235 Record constructor it will have <a ext:cls="Ext.data.Record" ext:member="create" href="output/Ext.data.Record.html#create">created a constructor</a> from that Array.</p>
236 <p>This property may be used to create new Records of the type held in this Store.</p>            </div>\r
237                         </div>\r
238         </td>\r
239         <td class="msource">Store</td>\r
240     </tr>\r
241             </table>
242                 <a id="Ext.data.Store-methods"></a>
243         <h2>Public Methods</h2>
244                 <table cellspacing="0" class="member-table">
245             <tr>
246                 <th class="sig-header" colspan="2">Method</th>
247                 <th class="msource-header">Defined By</th>
248             </tr>
249                 <tr class="method-row expandable">\r
250         <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>\r
251         <td class="sig">\r
252         <a id="Ext.data.Store-Store"></a>\r
253             <b>Store</b>(&nbsp;<code>Object config</code>&nbsp;)            <div class="mdesc">\r
254                         <div class="short">Creates a new Store.</div>\r
255             <div class="long">\r
256                 Creates a new Store.    <div class="mdetail-params">\r
257         <strong>Parameters:</strong>\r
258         <ul><li><code>config</code> : Object<div class="sub-desc">A config object containing the objects needed for the Store to access data,
259 and read the data into Records.</div></li>        </ul>\r
260         <strong>Returns:</strong>\r
261         <ul>\r
262             <li><code></code></li>\r
263         </ul>\r
264     </div>\r
265                 </div>\r
266                         </div>\r
267         </td>\r
268         <td class="msource">Store</td>\r
269     </tr>\r
270         <tr class="method-row alt expandable">\r
271         <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>\r
272         <td class="sig">\r
273         <a id="Ext.data.Store-add"></a>\r
274             <b>add</b>(&nbsp;<code>Ext.data.Record[] records</code>&nbsp;) : void            <div class="mdesc">\r
275                         <div class="short">Add Records to the Store and fires the <a ext:cls="Ext.data.Store" ext:member="add" href="output/Ext.data.Store.html#add">add</a> event.</div>\r
276             <div class="long">\r
277                 Add Records to the Store and fires the <a ext:cls="Ext.data.Store" ext:member="add" href="output/Ext.data.Store.html#add">add</a> event.    <div class="mdetail-params">\r
278         <strong>Parameters:</strong>\r
279         <ul><li><code>records</code> : Ext.data.Record[]<div class="sub-desc">An Array of Ext.data.Record objects to add to the cache.</div></li>        </ul>\r
280         <strong>Returns:</strong>\r
281         <ul>\r
282             <li><code>void</code></li>\r
283         </ul>\r
284     </div>\r
285                 </div>\r
286                         </div>\r
287         </td>\r
288         <td class="msource">Store</td>\r
289     </tr>\r
290         <tr class="method-row inherited expandable">\r
291         <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>\r
292         <td class="sig">\r
293         <a id="Ext.data.Store-addEvents"></a>\r
294             <b>addEvents</b>(&nbsp;<code>Object object</code>&nbsp;) : void            <div class="mdesc">\r
295                         <div class="short">Used to define events on this Observable</div>\r
296             <div class="long">\r
297                 Used to define events on this Observable    <div class="mdetail-params">\r
298         <strong>Parameters:</strong>\r
299         <ul><li><code>object</code> : Object<div class="sub-desc">The object with the events defined</div></li>        </ul>\r
300         <strong>Returns:</strong>\r
301         <ul>\r
302             <li><code>void</code></li>\r
303         </ul>\r
304     </div>\r
305                 </div>\r
306                         </div>\r
307         </td>\r
308         <td class="msource"><a ext:cls="Ext.util.Observable" ext:member="#addEvents" href="output/Ext.util.Observable.html#addEvents">Observable</a></td>\r
309     </tr>\r
310         <tr class="method-row inherited alt expandable">\r
311         <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>\r
312         <td class="sig">\r
313         <a id="Ext.data.Store-addListener"></a>\r
314             <b>addListener</b>(&nbsp;<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>&nbsp;) : void            <div class="mdesc">\r
315                         <div class="short">Appends an event handler to this component</div>\r
316             <div class="long">\r
317                 Appends an event handler to this component    <div class="mdetail-params">\r
318         <strong>Parameters:</strong>\r
319         <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
320 function. The handler function's "this" context.</div></li><li><code>options</code> : Object<div class="sub-desc">(optional) An object containing handler configuration
321 properties. This may contain any of the following properties:<ul>
322 <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>
323 <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>
324 <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>
325 <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
326 by the specified number of milliseconds. If the event fires again within that time, the original
327 handler is <em>not</em> invoked, but the new handler is scheduled in its place.</p></li>
328 </ul><br>
329 <p>
330 <b>Combining Options</b><br>
331 Using the options argument, it is possible to combine different types of listeners:<br>
332 <br>
333 A normalized, delayed, one-time listener that auto stops the event and passes a custom argument (forumId)
334 <pre><code>el.on(<em>'click'</em>, <b>this</b>.onClick, <b>this</b>, {
335     single: true,
336     delay: 100,
337     forumId: 4
338 });</code></pre>
339 <p>
340 <b>Attaching multiple handlers in 1 call</b><br>
341 The method also allows for a single argument to be passed which is a config object containing properties
342 which specify multiple handlers.
343 <p>
344 <pre><code>foo.on({
345     <em>'click'</em> : {
346         fn: <b>this</b>.onClick,
347         scope: <b>this</b>,
348         delay: 100
349     },
350     <em>'mouseover'</em> : {
351         fn: <b>this</b>.onMouseOver,
352         scope: <b>this</b>
353     },
354     <em>'mouseout'</em> : {
355         fn: <b>this</b>.onMouseOut,
356         scope: <b>this</b>
357     }
358 });</code></pre>
359 <p>
360 Or a shorthand syntax:<br>
361 <pre><code>foo.on({
362     <em>'click'</em> : <b>this</b>.onClick,
363     <em>'mouseover'</em> : <b>this</b>.onMouseOver,
364     <em>'mouseout'</em> : <b>this</b>.onMouseOut,
365      scope: <b>this</b>
366 });</code></pre></div></li>        </ul>\r
367         <strong>Returns:</strong>\r
368         <ul>\r
369             <li><code>void</code></li>\r
370         </ul>\r
371     </div>\r
372                 </div>\r
373                         </div>\r
374         </td>\r
375         <td class="msource"><a ext:cls="Ext.util.Observable" ext:member="#addListener" href="output/Ext.util.Observable.html#addListener">Observable</a></td>\r
376     </tr>\r
377         <tr class="method-row expandable">\r
378         <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>\r
379         <td class="sig">\r
380         <a id="Ext.data.Store-addSorted"></a>\r
381             <b>addSorted</b>(&nbsp;<code>Ext.data.Record record</code>&nbsp;) : void            <div class="mdesc">\r
382                         <div class="short">(Local sort only) Inserts the passed Record into the Store at the index where it
383 should go based on the current sort ...</div>\r
384             <div class="long">\r
385                 (Local sort only) Inserts the passed Record into the Store at the index where it
386 should go based on the current sort information.    <div class="mdetail-params">\r
387         <strong>Parameters:</strong>\r
388         <ul><li><code>record</code> : Ext.data.Record<div class="sub-desc"></div></li>        </ul>\r
389         <strong>Returns:</strong>\r
390         <ul>\r
391             <li><code>void</code></li>\r
392         </ul>\r
393     </div>\r
394                 </div>\r
395                         </div>\r
396         </td>\r
397         <td class="msource">Store</td>\r
398     </tr>\r
399         <tr class="method-row alt expandable">\r
400         <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>\r
401         <td class="sig">\r
402         <a id="Ext.data.Store-clearFilter"></a>\r
403             <b>clearFilter</b>(&nbsp;<code>Boolean suppressEvent</code>&nbsp;) : void            <div class="mdesc">\r
404                         <div class="short">Revert to a view of the Record cache with no filtering applied.</div>\r
405             <div class="long">\r
406                 Revert to a view of the Record cache with no filtering applied.    <div class="mdetail-params">\r
407         <strong>Parameters:</strong>\r
408         <ul><li><code>suppressEvent</code> : Boolean<div class="sub-desc">If true the filter is cleared silently without notifying listeners</div></li>        </ul>\r
409         <strong>Returns:</strong>\r
410         <ul>\r
411             <li><code>void</code></li>\r
412         </ul>\r
413     </div>\r
414                 </div>\r
415                         </div>\r
416         </td>\r
417         <td class="msource">Store</td>\r
418     </tr>\r
419         <tr class="method-row expandable">\r
420         <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>\r
421         <td class="sig">\r
422         <a id="Ext.data.Store-collect"></a>\r
423             <b>collect</b>(&nbsp;<code>String dataIndex</code>, <span class="optional" title="Optional">[<code>Boolean allowNull</code>]</span>, <span class="optional" title="Optional">[<code>Boolean bypassFilter</code>]</span>&nbsp;) : Array            <div class="mdesc">\r
424                         <div class="short">Collects unique values for a particular dataIndex from this store.</div>\r
425             <div class="long">\r
426                 Collects unique values for a particular dataIndex from this store.    <div class="mdetail-params">\r
427         <strong>Parameters:</strong>\r
428         <ul><li><code>dataIndex</code> : String<div class="sub-desc">The property to collect</div></li><li><code>allowNull</code> : Boolean<div class="sub-desc">(optional) Pass true to allow null, undefined or empty string values</div></li><li><code>bypassFilter</code> : Boolean<div class="sub-desc">(optional) Pass true to collect from all records, even ones which are filtered</div></li>        </ul>\r
429         <strong>Returns:</strong>\r
430         <ul>\r
431             <li><code>Array</code><div class="sub-desc">An array of the unique values</div></li>\r
432         </ul>\r
433     </div>\r
434                 </div>\r
435                         </div>\r
436         </td>\r
437         <td class="msource">Store</td>\r
438     </tr>\r
439         <tr class="method-row alt expandable">\r
440         <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>\r
441         <td class="sig">\r
442         <a id="Ext.data.Store-commitChanges"></a>\r
443             <b>commitChanges</b>() : void            <div class="mdesc">\r
444                         <div class="short">Commit all Records with outstanding changes. To handle updates for changes, subscribe to the
445 Store's "update" event, ...</div>\r
446             <div class="long">\r
447                 Commit all Records with outstanding changes. To handle updates for changes, subscribe to the
448 Store's "update" event, and perform updating when the third parameter is Ext.data.Record.COMMIT.    <div class="mdetail-params">\r
449         <strong>Parameters:</strong>\r
450         <ul><li>None.</li>        </ul>\r
451         <strong>Returns:</strong>\r
452         <ul>\r
453             <li><code>void</code></li>\r
454         </ul>\r
455     </div>\r
456                 </div>\r
457                         </div>\r
458         </td>\r
459         <td class="msource">Store</td>\r
460     </tr>\r
461         <tr class="method-row expandable">\r
462         <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>\r
463         <td class="sig">\r
464         <a id="Ext.data.Store-each"></a>\r
465             <b>each</b>(&nbsp;<code>Function fn</code>, <span class="optional" title="Optional">[<code>Object scope</code>]</span>&nbsp;) : void            <div class="mdesc">\r
466                         <div class="short">Calls the specified function for each of the Records in the cache.</div>\r
467             <div class="long">\r
468                 Calls the specified function for each of the Records in the cache.    <div class="mdetail-params">\r
469         <strong>Parameters:</strong>\r
470         <ul><li><code>fn</code> : Function<div class="sub-desc">The function to call. The Record is passed as the first parameter.
471 Returning <tt>false</tt> aborts and exits the iteration.</div></li><li><code>scope</code> : Object<div class="sub-desc">(optional) The scope in which to call the function (defaults to the Record).</div></li>        </ul>\r
472         <strong>Returns:</strong>\r
473         <ul>\r
474             <li><code>void</code></li>\r
475         </ul>\r
476     </div>\r
477                 </div>\r
478                         </div>\r
479         </td>\r
480         <td class="msource">Store</td>\r
481     </tr>\r
482         <tr class="method-row alt expandable">\r
483         <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>\r
484         <td class="sig">\r
485         <a id="Ext.data.Store-filter"></a>\r
486             <b>filter</b>(&nbsp;<code>String field</code>, <code>String/RegExp value</code>, <span class="optional" title="Optional">[<code>Boolean anyMatch</code>]</span>, <span class="optional" title="Optional">[<code>Boolean caseSensitive</code>]</span>&nbsp;) : void            <div class="mdesc">\r
487                         <div class="short">Filter the records by a specified property.</div>\r
488             <div class="long">\r
489                 Filter the records by a specified property.    <div class="mdetail-params">\r
490         <strong>Parameters:</strong>\r
491         <ul><li><code>field</code> : String<div class="sub-desc">A field on your records</div></li><li><code>value</code> : String/RegExp<div class="sub-desc">Either a string that the field
492 should begin with, or a RegExp to test against the field.</div></li><li><code>anyMatch</code> : Boolean<div class="sub-desc">(optional) True to match any part not just the beginning</div></li><li><code>caseSensitive</code> : Boolean<div class="sub-desc">(optional) True for case sensitive comparison</div></li>        </ul>\r
493         <strong>Returns:</strong>\r
494         <ul>\r
495             <li><code>void</code></li>\r
496         </ul>\r
497     </div>\r
498                 </div>\r
499                         </div>\r
500         </td>\r
501         <td class="msource">Store</td>\r
502     </tr>\r
503         <tr class="method-row expandable">\r
504         <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>\r
505         <td class="sig">\r
506         <a id="Ext.data.Store-filterBy"></a>\r
507             <b>filterBy</b>(&nbsp;<code>Function fn</code>, <span class="optional" title="Optional">[<code>Object scope</code>]</span>&nbsp;) : void            <div class="mdesc">\r
508                         <div class="short">Filter by a function. The specified function will be called for each
509 Record in this Store. If the function returns tr...</div>\r
510             <div class="long">\r
511                 Filter by a function. The specified function will be called for each
512 Record in this Store. If the function returns <tt>true</tt> the Record is included,
513 otherwise it is filtered out.    <div class="mdetail-params">\r
514         <strong>Parameters:</strong>\r
515         <ul><li><code>fn</code> : Function<div class="sub-desc">The function to be called. It will be passed the following parameters:<ul>
516 <li><b>record</b> : Ext.data.Record<p class="sub-desc">The <a ext:cls="Ext.data.Record" href="output/Ext.data.Record.html">record</a>
517 to test for filtering. Access field values using <a ext:cls="Ext.data.Record" ext:member="get" href="output/Ext.data.Record.html#get">Ext.data.Record.get</a>.</p></li>
518 <li><b>id</b> : Object<p class="sub-desc">The ID of the Record passed.</p></li>
519 </ul></div></li><li><code>scope</code> : Object<div class="sub-desc">(optional) The scope of the function (defaults to this)</div></li>        </ul>\r
520         <strong>Returns:</strong>\r
521         <ul>\r
522             <li><code>void</code></li>\r
523         </ul>\r
524     </div>\r
525                 </div>\r
526                         </div>\r
527         </td>\r
528         <td class="msource">Store</td>\r
529     </tr>\r
530         <tr class="method-row alt expandable">\r
531         <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>\r
532         <td class="sig">\r
533         <a id="Ext.data.Store-find"></a>\r
534             <b>find</b>(&nbsp;<code>String property</code>, <code>String/RegExp value</code>, <span class="optional" title="Optional">[<code>Number startIndex</code>]</span>, <span class="optional" title="Optional">[<code>Boolean anyMatch</code>]</span>, <span class="optional" title="Optional">[<code>Boolean caseSensitive</code>]</span>&nbsp;) : Number            <div class="mdesc">\r
535                         <div class="short">Finds the index of the first matching record in this store by a specific property/value.</div>\r
536             <div class="long">\r
537                 Finds the index of the first matching record in this store by a specific property/value.    <div class="mdetail-params">\r
538         <strong>Parameters:</strong>\r
539         <ul><li><code>property</code> : String<div class="sub-desc">A property on your objects</div></li><li><code>value</code> : String/RegExp<div class="sub-desc">Either a string that the property value
540 should begin with, or a RegExp to test against the property.</div></li><li><code>startIndex</code> : Number<div class="sub-desc">(optional) The index to start searching at</div></li><li><code>anyMatch</code> : Boolean<div class="sub-desc">(optional) True to match any part of the string, not just the beginning</div></li><li><code>caseSensitive</code> : Boolean<div class="sub-desc">(optional) True for case sensitive comparison</div></li>        </ul>\r
541         <strong>Returns:</strong>\r
542         <ul>\r
543             <li><code>Number</code><div class="sub-desc">The matched index or -1</div></li>\r
544         </ul>\r
545     </div>\r
546                 </div>\r
547                         </div>\r
548         </td>\r
549         <td class="msource">Store</td>\r
550     </tr>\r
551         <tr class="method-row expandable">\r
552         <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>\r
553         <td class="sig">\r
554         <a id="Ext.data.Store-findBy"></a>\r
555             <b>findBy</b>(&nbsp;<code>Function fn</code>, <span class="optional" title="Optional">[<code>Object scope</code>]</span>, <span class="optional" title="Optional">[<code>Number startIndex</code>]</span>&nbsp;) : Number            <div class="mdesc">\r
556                         <div class="short">Find the index of the first matching Record in this Store by a function.
557 If the function returns true it is considere...</div>\r
558             <div class="long">\r
559                 Find the index of the first matching Record in this Store by a function.
560 If the function returns <tt>true</tt> it is considered a match.    <div class="mdetail-params">\r
561         <strong>Parameters:</strong>\r
562         <ul><li><code>fn</code> : Function<div class="sub-desc">The function to be called. It will be passed the following parameters:<ul>
563 <li><b>record</b> : Ext.data.Record<p class="sub-desc">The <a ext:cls="Ext.data.Record" href="output/Ext.data.Record.html">record</a>
564 to test for filtering. Access field values using <a ext:cls="Ext.data.Record" ext:member="get" href="output/Ext.data.Record.html#get">Ext.data.Record.get</a>.</p></li>
565 <li><b>id</b> : Object<p class="sub-desc">The ID of the Record passed.</p></li>
566 </ul></div></li><li><code>scope</code> : Object<div class="sub-desc">(optional) The scope of the function (defaults to this)</div></li><li><code>startIndex</code> : Number<div class="sub-desc">(optional) The index to start searching at</div></li>        </ul>\r
567         <strong>Returns:</strong>\r
568         <ul>\r
569             <li><code>Number</code><div class="sub-desc">The matched index or -1</div></li>\r
570         </ul>\r
571     </div>\r
572                 </div>\r
573                         </div>\r
574         </td>\r
575         <td class="msource">Store</td>\r
576     </tr>\r
577         <tr class="method-row inherited alt expandable">\r
578         <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>\r
579         <td class="sig">\r
580         <a id="Ext.data.Store-fireEvent"></a>\r
581             <b>fireEvent</b>(&nbsp;<code>String eventName</code>, <code>Object... args</code>&nbsp;) : Boolean            <div class="mdesc">\r
582                         <div class="short">Fires the specified event with the passed parameters (minus the event name).</div>\r
583             <div class="long">\r
584                 Fires the specified event with the passed parameters (minus the event name).    <div class="mdetail-params">\r
585         <strong>Parameters:</strong>\r
586         <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>\r
587         <strong>Returns:</strong>\r
588         <ul>\r
589             <li><code>Boolean</code><div class="sub-desc">returns false if any of the handlers return false otherwise it returns true</div></li>\r
590         </ul>\r
591     </div>\r
592                 </div>\r
593                         </div>\r
594         </td>\r
595         <td class="msource"><a ext:cls="Ext.util.Observable" ext:member="#fireEvent" href="output/Ext.util.Observable.html#fireEvent">Observable</a></td>\r
596     </tr>\r
597         <tr class="method-row expandable">\r
598         <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>\r
599         <td class="sig">\r
600         <a id="Ext.data.Store-getAt"></a>\r
601             <b>getAt</b>(&nbsp;<code>Number index</code>&nbsp;) : Ext.data.Record            <div class="mdesc">\r
602                         <div class="short">Get the Record at the specified index.</div>\r
603             <div class="long">\r
604                 Get the Record at the specified index.    <div class="mdetail-params">\r
605         <strong>Parameters:</strong>\r
606         <ul><li><code>index</code> : Number<div class="sub-desc">The index of the Record to find.</div></li>        </ul>\r
607         <strong>Returns:</strong>\r
608         <ul>\r
609             <li><code>Ext.data.Record</code><div class="sub-desc">The Record at the passed index. Returns undefined if not found.</div></li>\r
610         </ul>\r
611     </div>\r
612                 </div>\r
613                         </div>\r
614         </td>\r
615         <td class="msource">Store</td>\r
616     </tr>\r
617         <tr class="method-row alt expandable">\r
618         <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>\r
619         <td class="sig">\r
620         <a id="Ext.data.Store-getById"></a>\r
621             <b>getById</b>(&nbsp;<code>String id</code>&nbsp;) : Ext.data.Record            <div class="mdesc">\r
622                         <div class="short">Get the Record with the specified id.</div>\r
623             <div class="long">\r
624                 Get the Record with the specified id.    <div class="mdetail-params">\r
625         <strong>Parameters:</strong>\r
626         <ul><li><code>id</code> : String<div class="sub-desc">The id of the Record to find.</div></li>        </ul>\r
627         <strong>Returns:</strong>\r
628         <ul>\r
629             <li><code>Ext.data.Record</code><div class="sub-desc">The Record with the passed id. Returns undefined if not found.</div></li>\r
630         </ul>\r
631     </div>\r
632                 </div>\r
633                         </div>\r
634         </td>\r
635         <td class="msource">Store</td>\r
636     </tr>\r
637         <tr class="method-row expandable">\r
638         <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>\r
639         <td class="sig">\r
640         <a id="Ext.data.Store-getCount"></a>\r
641             <b>getCount</b>() : Number            <div class="mdesc">\r
642                         <div class="short">Gets the number of cached records.
643 If using paging, this may not be the total size of the dataset. If the data object...</div>\r
644             <div class="long">\r
645                 Gets the number of cached records.
646 <p>If using paging, this may not be the total size of the dataset. If the data object
647 used by the Reader contains the dataset size, then the <a ext:cls="Ext.data.Store" ext:member="getTotalCount" href="output/Ext.data.Store.html#getTotalCount">getTotalCount</a> function returns
648 the dataset size.</p>    <div class="mdetail-params">\r
649         <strong>Parameters:</strong>\r
650         <ul><li>None.</li>        </ul>\r
651         <strong>Returns:</strong>\r
652         <ul>\r
653             <li><code>Number</code><div class="sub-desc">The number of Records in the Store's cache.</div></li>\r
654         </ul>\r
655     </div>\r
656                 </div>\r
657                         </div>\r
658         </td>\r
659         <td class="msource">Store</td>\r
660     </tr>\r
661         <tr class="method-row alt expandable">\r
662         <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>\r
663         <td class="sig">\r
664         <a id="Ext.data.Store-getModifiedRecords"></a>\r
665             <b>getModifiedRecords</b>() : Ext.data.Record[]            <div class="mdesc">\r
666                         <div class="short">Gets all records modified since the last commit.  Modified records are persisted across load operations
667 (e.g., during...</div>\r
668             <div class="long">\r
669                 Gets all records modified since the last commit.  Modified records are persisted across load operations
670 (e.g., during paging).    <div class="mdetail-params">\r
671         <strong>Parameters:</strong>\r
672         <ul><li>None.</li>        </ul>\r
673         <strong>Returns:</strong>\r
674         <ul>\r
675             <li><code>Ext.data.Record[]</code><div class="sub-desc">An array of Records containing outstanding modifications.</div></li>\r
676         </ul>\r
677     </div>\r
678                 </div>\r
679                         </div>\r
680         </td>\r
681         <td class="msource">Store</td>\r
682     </tr>\r
683         <tr class="method-row expandable">\r
684         <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>\r
685         <td class="sig">\r
686         <a id="Ext.data.Store-getRange"></a>\r
687             <b>getRange</b>(&nbsp;<span class="optional" title="Optional">[<code>Number startIndex</code>]</span>, <span class="optional" title="Optional">[<code>Number endIndex</code>]</span>&nbsp;) : Ext.data.Record[]            <div class="mdesc">\r
688                         <div class="short">Returns a range of Records between specified indices.</div>\r
689             <div class="long">\r
690                 Returns a range of Records between specified indices.    <div class="mdetail-params">\r
691         <strong>Parameters:</strong>\r
692         <ul><li><code>startIndex</code> : Number<div class="sub-desc">(optional) The starting index (defaults to 0)</div></li><li><code>endIndex</code> : Number<div class="sub-desc">(optional) The ending index (defaults to the last Record in the Store)</div></li>        </ul>\r
693         <strong>Returns:</strong>\r
694         <ul>\r
695             <li><code>Ext.data.Record[]</code><div class="sub-desc">An array of Records</div></li>\r
696         </ul>\r
697     </div>\r
698                 </div>\r
699                         </div>\r
700         </td>\r
701         <td class="msource">Store</td>\r
702     </tr>\r
703         <tr class="method-row alt expandable">\r
704         <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>\r
705         <td class="sig">\r
706         <a id="Ext.data.Store-getSortState"></a>\r
707             <b>getSortState</b>() : Object            <div class="mdesc">\r
708                         <div class="short">Returns an object describing the current sort state of this Store.</div>\r
709             <div class="long">\r
710                 Returns an object describing the current sort state of this Store.    <div class="mdetail-params">\r
711         <strong>Parameters:</strong>\r
712         <ul><li>None.</li>        </ul>\r
713         <strong>Returns:</strong>\r
714         <ul>\r
715             <li><code>Object</code><div class="sub-desc">The sort state of the Store. An object with two properties:<ul> <li><b>field : String<p class="sub-desc">The name of the field by which the Records are sorted.</p></li> <li><b>direction : String<p class="sub-desc">The sort order, "ASC" or "DESC" (case-sensitive).</p></li> </ul></div></li>\r
716         </ul>\r
717     </div>\r
718                 </div>\r
719                         </div>\r
720         </td>\r
721         <td class="msource">Store</td>\r
722     </tr>\r
723         <tr class="method-row expandable">\r
724         <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>\r
725         <td class="sig">\r
726         <a id="Ext.data.Store-getTotalCount"></a>\r
727             <b>getTotalCount</b>() : Number            <div class="mdesc">\r
728                         <div class="short">Gets the total number of records in the dataset as returned by the server.
729 If using paging, for this to be accurate, ...</div>\r
730             <div class="long">\r
731                 Gets the total number of records in the dataset as returned by the server.
732 <p>If using paging, for this to be accurate, the data object used by the Reader must contain
733 the dataset size. For remote data sources, this is provided by a query on the server.</p>    <div class="mdetail-params">\r
734         <strong>Parameters:</strong>\r
735         <ul><li>None.</li>        </ul>\r
736         <strong>Returns:</strong>\r
737         <ul>\r
738             <li><code>Number</code><div class="sub-desc">The number of Records as specified in the data object passed to the Reader by the Proxy <p><b>This value is not updated when changing the contents of the Store locally.</b></p></div></li>\r
739         </ul>\r
740     </div>\r
741                 </div>\r
742                         </div>\r
743         </td>\r
744         <td class="msource">Store</td>\r
745     </tr>\r
746         <tr class="method-row inherited alt expandable">\r
747         <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>\r
748         <td class="sig">\r
749         <a id="Ext.data.Store-hasListener"></a>\r
750             <b>hasListener</b>(&nbsp;<code>String eventName</code>&nbsp;) : Boolean            <div class="mdesc">\r
751                         <div class="short">Checks to see if this object has any listeners for a specified event</div>\r
752             <div class="long">\r
753                 Checks to see if this object has any listeners for a specified event    <div class="mdetail-params">\r
754         <strong>Parameters:</strong>\r
755         <ul><li><code>eventName</code> : String<div class="sub-desc">The name of the event to check for</div></li>        </ul>\r
756         <strong>Returns:</strong>\r
757         <ul>\r
758             <li><code>Boolean</code><div class="sub-desc">True if the event is being listened for, else false</div></li>\r
759         </ul>\r
760     </div>\r
761                 </div>\r
762                         </div>\r
763         </td>\r
764         <td class="msource"><a ext:cls="Ext.util.Observable" ext:member="#hasListener" href="output/Ext.util.Observable.html#hasListener">Observable</a></td>\r
765     </tr>\r
766         <tr class="method-row expandable">\r
767         <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>\r
768         <td class="sig">\r
769         <a id="Ext.data.Store-indexOf"></a>\r
770             <b>indexOf</b>(&nbsp;<code>Ext.data.Record record</code>&nbsp;) : Number            <div class="mdesc">\r
771                         <div class="short">Get the index within the cache of the passed Record.</div>\r
772             <div class="long">\r
773                 Get the index within the cache of the passed Record.    <div class="mdetail-params">\r
774         <strong>Parameters:</strong>\r
775         <ul><li><code>record</code> : Ext.data.Record<div class="sub-desc">The Ext.data.Record object to find.</div></li>        </ul>\r
776         <strong>Returns:</strong>\r
777         <ul>\r
778             <li><code>Number</code><div class="sub-desc">The index of the passed Record. Returns -1 if not found.</div></li>\r
779         </ul>\r
780     </div>\r
781                 </div>\r
782                         </div>\r
783         </td>\r
784         <td class="msource">Store</td>\r
785     </tr>\r
786         <tr class="method-row alt expandable">\r
787         <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>\r
788         <td class="sig">\r
789         <a id="Ext.data.Store-indexOfId"></a>\r
790             <b>indexOfId</b>(&nbsp;<code>String id</code>&nbsp;) : Number            <div class="mdesc">\r
791                         <div class="short">Get the index within the cache of the Record with the passed id.</div>\r
792             <div class="long">\r
793                 Get the index within the cache of the Record with the passed id.    <div class="mdetail-params">\r
794         <strong>Parameters:</strong>\r
795         <ul><li><code>id</code> : String<div class="sub-desc">The id of the Record to find.</div></li>        </ul>\r
796         <strong>Returns:</strong>\r
797         <ul>\r
798             <li><code>Number</code><div class="sub-desc">The index of the Record. Returns -1 if not found.</div></li>\r
799         </ul>\r
800     </div>\r
801                 </div>\r
802                         </div>\r
803         </td>\r
804         <td class="msource">Store</td>\r
805     </tr>\r
806         <tr class="method-row expandable">\r
807         <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>\r
808         <td class="sig">\r
809         <a id="Ext.data.Store-insert"></a>\r
810             <b>insert</b>(&nbsp;<code>Number index</code>, <code>Ext.data.Record[] records</code>&nbsp;) : void            <div class="mdesc">\r
811                         <div class="short">Inserts Records into the Store at the given index and fires the <a ext:cls="Ext.data.Store" ext:member="add" href="output/Ext.data.Store.html#add">add</a> event.</div>\r
812             <div class="long">\r
813                 Inserts Records into the Store at the given index and fires the <a ext:cls="Ext.data.Store" ext:member="add" href="output/Ext.data.Store.html#add">add</a> event.    <div class="mdetail-params">\r
814         <strong>Parameters:</strong>\r
815         <ul><li><code>index</code> : Number<div class="sub-desc">The start index at which to insert the passed Records.</div></li><li><code>records</code> : Ext.data.Record[]<div class="sub-desc">An Array of Ext.data.Record objects to add to the cache.</div></li>        </ul>\r
816         <strong>Returns:</strong>\r
817         <ul>\r
818             <li><code>void</code></li>\r
819         </ul>\r
820     </div>\r
821                 </div>\r
822                         </div>\r
823         </td>\r
824         <td class="msource">Store</td>\r
825     </tr>\r
826         <tr class="method-row alt expandable">\r
827         <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>\r
828         <td class="sig">\r
829         <a id="Ext.data.Store-isFiltered"></a>\r
830             <b>isFiltered</b>() : Boolean            <div class="mdesc">\r
831                         <div class="short">Returns true if this store is currently filtered</div>\r
832             <div class="long">\r
833                 Returns true if this store is currently filtered    <div class="mdetail-params">\r
834         <strong>Parameters:</strong>\r
835         <ul><li>None.</li>        </ul>\r
836         <strong>Returns:</strong>\r
837         <ul>\r
838             <li><code>Boolean</code></li>\r
839         </ul>\r
840     </div>\r
841                 </div>\r
842                         </div>\r
843         </td>\r
844         <td class="msource">Store</td>\r
845     </tr>\r
846         <tr class="method-row expandable">\r
847         <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>\r
848         <td class="sig">\r
849         <a id="Ext.data.Store-load"></a>\r
850             <b>load</b>(&nbsp;<code>Object options</code>&nbsp;) : Boolean            <div class="mdesc">\r
851                         <div class="short">Loads the Record cache from the configured Proxy using the configured Reader.
852 If using remote paging, then the first ...</div>\r
853             <div class="long">\r
854                 Loads the Record cache from the configured Proxy using the configured Reader.
855 <p>If using remote paging, then the first load call must specify the <tt>start</tt>
856 and <tt>limit</tt> properties in the options.params property to establish the initial
857 position within the dataset, and the number of Records to cache on each read from the Proxy.</p>
858 <p><b>It is important to note that for remote data sources, loading is asynchronous,
859 and this call will return before the new data has been loaded. Perform any post-processing
860 in a callback function, or in a "load" event handler.</b></p>    <div class="mdetail-params">\r
861         <strong>Parameters:</strong>\r
862         <ul><li><code>options</code> : Object<div class="sub-desc">An object containing properties which control loading options:<ul>
863 <li><b>params</b> :Object<p class="sub-desc">An object containing properties to pass as HTTP parameters to a remote data source.</p></li>
864 <li><b>callback</b> : Function<p class="sub-desc">A function to be called after the Records have been loaded. The callback is
865 passed the following arguments:<ul>
866 <li>r : Ext.data.Record[]</li>
867 <li>options: Options object from the load call</li>
868 <li>success: Boolean success indicator</li></ul></p></li>
869 <li><b>scope</b> : Object<p class="sub-desc">Scope with which to call the callback (defaults to the Store object)</p></li>
870 <li><b>add</b> : Boolean<p class="sub-desc">Indicator to append loaded records rather than replace the current cache.</p></li>
871 </ul></div></li>        </ul>\r
872         <strong>Returns:</strong>\r
873         <ul>\r
874             <li><code>Boolean</code><div class="sub-desc">Whether the load fired (if beforeload failed).</div></li>\r
875         </ul>\r
876     </div>\r
877                 </div>\r
878                         </div>\r
879         </td>\r
880         <td class="msource">Store</td>\r
881     </tr>\r
882         <tr class="method-row alt expandable">\r
883         <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>\r
884         <td class="sig">\r
885         <a id="Ext.data.Store-loadData"></a>\r
886             <b>loadData</b>(&nbsp;<code>Object data</code>, <span class="optional" title="Optional">[<code>Boolean add</code>]</span>&nbsp;) : void            <div class="mdesc">\r
887                         <div class="short">Loads data from a passed data block and fires the load event. A Reader which understands the format of the data
888 must ...</div>\r
889             <div class="long">\r
890                 Loads data from a passed data block and fires the <a ext:cls="Ext.data.Store" ext:member="load" href="output/Ext.data.Store.html#load">load</a> event. A Reader which understands the format of the data
891 must have been configured in the constructor.    <div class="mdetail-params">\r
892         <strong>Parameters:</strong>\r
893         <ul><li><code>data</code> : Object<div class="sub-desc">The data block from which to read the Records. The format of the data expected
894 is dependent on the type of Reader that is configured and should correspond to that Reader's readRecords parameter.</div></li><li><code>add</code> : Boolean<div class="sub-desc">(Optional) True to add the new Records rather than replace the existing cache. <b>Remember that
895 Records in a Store are keyed by their <a ext:cls="Ext.data.Record" ext:member="id" href="output/Ext.data.Record.html#id">id</a>, so added Records with ids which are already present in
896 the Store will <i>replace</i> existing Records. Records with new, unique ids will be added.</b></div></li>        </ul>\r
897         <strong>Returns:</strong>\r
898         <ul>\r
899             <li><code>void</code></li>\r
900         </ul>\r
901     </div>\r
902                 </div>\r
903                         </div>\r
904         </td>\r
905         <td class="msource">Store</td>\r
906     </tr>\r
907         <tr class="method-row inherited expandable">\r
908         <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>\r
909         <td class="sig">\r
910         <a id="Ext.data.Store-on"></a>\r
911             <b>on</b>(&nbsp;<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>&nbsp;) : void            <div class="mdesc">\r
912                         <div class="short">Appends an event handler to this element (shorthand for addListener)</div>\r
913             <div class="long">\r
914                 Appends an event handler to this element (shorthand for addListener)    <div class="mdetail-params">\r
915         <strong>Parameters:</strong>\r
916         <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
917 function. The handler function's "this" context.</div></li><li><code>options</code> : Object<div class="sub-desc">(optional)</div></li>        </ul>\r
918         <strong>Returns:</strong>\r
919         <ul>\r
920             <li><code>void</code></li>\r
921         </ul>\r
922     </div>\r
923                 </div>\r
924                         </div>\r
925         </td>\r
926         <td class="msource"><a ext:cls="Ext.util.Observable" ext:member="#on" href="output/Ext.util.Observable.html#on">Observable</a></td>\r
927     </tr>\r
928         <tr class="method-row inherited alt expandable">\r
929         <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>\r
930         <td class="sig">\r
931         <a id="Ext.data.Store-purgeListeners"></a>\r
932             <b>purgeListeners</b>() : void            <div class="mdesc">\r
933                         <div class="short">Removes all listeners for this object</div>\r
934             <div class="long">\r
935                 Removes all listeners for this object    <div class="mdetail-params">\r
936         <strong>Parameters:</strong>\r
937         <ul><li>None.</li>        </ul>\r
938         <strong>Returns:</strong>\r
939         <ul>\r
940             <li><code>void</code></li>\r
941         </ul>\r
942     </div>\r
943                 </div>\r
944                         </div>\r
945         </td>\r
946         <td class="msource"><a ext:cls="Ext.util.Observable" ext:member="#purgeListeners" href="output/Ext.util.Observable.html#purgeListeners">Observable</a></td>\r
947     </tr>\r
948         <tr class="method-row expandable">\r
949         <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>\r
950         <td class="sig">\r
951         <a id="Ext.data.Store-query"></a>\r
952             <b>query</b>(&nbsp;<code>String field</code>, <code>String/RegExp value</code>, <span class="optional" title="Optional">[<code>Boolean anyMatch</code>]</span>, <span class="optional" title="Optional">[<code>Boolean caseSensitive</code>]</span>&nbsp;) : MixedCollection            <div class="mdesc">\r
953                         <div class="short">Query the records by a specified property.</div>\r
954             <div class="long">\r
955                 Query the records by a specified property.    <div class="mdetail-params">\r
956         <strong>Parameters:</strong>\r
957         <ul><li><code>field</code> : String<div class="sub-desc">A field on your records</div></li><li><code>value</code> : String/RegExp<div class="sub-desc">Either a string that the field
958 should begin with, or a RegExp to test against the field.</div></li><li><code>anyMatch</code> : Boolean<div class="sub-desc">(optional) True to match any part not just the beginning</div></li><li><code>caseSensitive</code> : Boolean<div class="sub-desc">(optional) True for case sensitive comparison</div></li>        </ul>\r
959         <strong>Returns:</strong>\r
960         <ul>\r
961             <li><code>MixedCollection</code><div class="sub-desc">Returns an Ext.util.MixedCollection of the matched records</div></li>\r
962         </ul>\r
963     </div>\r
964                 </div>\r
965                         </div>\r
966         </td>\r
967         <td class="msource">Store</td>\r
968     </tr>\r
969         <tr class="method-row alt expandable">\r
970         <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>\r
971         <td class="sig">\r
972         <a id="Ext.data.Store-queryBy"></a>\r
973             <b>queryBy</b>(&nbsp;<code>Function fn</code>, <span class="optional" title="Optional">[<code>Object scope</code>]</span>&nbsp;) : MixedCollection            <div class="mdesc">\r
974                         <div class="short">Query the cached records in this Store using a filtering function. The specified function
975 will be called with each re...</div>\r
976             <div class="long">\r
977                 Query the cached records in this Store using a filtering function. The specified function
978 will be called with each record in this Store. If the function returns <tt>true</tt> the record is
979 included in the results.    <div class="mdetail-params">\r
980         <strong>Parameters:</strong>\r
981         <ul><li><code>fn</code> : Function<div class="sub-desc">The function to be called. It will be passed the following parameters:<ul>
982 <li><b>record</b> : Ext.data.Record<p class="sub-desc">The <a ext:cls="Ext.data.Record" href="output/Ext.data.Record.html">record</a>
983 to test for filtering. Access field values using <a ext:cls="Ext.data.Record" ext:member="get" href="output/Ext.data.Record.html#get">Ext.data.Record.get</a>.</p></li>
984 <li><b>id</b> : Object<p class="sub-desc">The ID of the Record passed.</p></li>
985 </ul></div></li><li><code>scope</code> : Object<div class="sub-desc">(optional) The scope of the function (defaults to this)</div></li>        </ul>\r
986         <strong>Returns:</strong>\r
987         <ul>\r
988             <li><code>MixedCollection</code><div class="sub-desc">Returns an Ext.util.MixedCollection of the matched records</div></li>\r
989         </ul>\r
990     </div>\r
991                 </div>\r
992                         </div>\r
993         </td>\r
994         <td class="msource">Store</td>\r
995     </tr>\r
996         <tr class="method-row expandable">\r
997         <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>\r
998         <td class="sig">\r
999         <a id="Ext.data.Store-rejectChanges"></a>\r
1000             <b>rejectChanges</b>() : void            <div class="mdesc">\r
1001                         <div class="short">Cancel outstanding changes on all changed records.</div>\r
1002             <div class="long">\r
1003                 Cancel outstanding changes on all changed records.    <div class="mdetail-params">\r
1004         <strong>Parameters:</strong>\r
1005         <ul><li>None.</li>        </ul>\r
1006         <strong>Returns:</strong>\r
1007         <ul>\r
1008             <li><code>void</code></li>\r
1009         </ul>\r
1010     </div>\r
1011                 </div>\r
1012                         </div>\r
1013         </td>\r
1014         <td class="msource">Store</td>\r
1015     </tr>\r
1016         <tr class="method-row inherited alt expandable">\r
1017         <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>\r
1018         <td class="sig">\r
1019         <a id="Ext.data.Store-relayEvents"></a>\r
1020             <b>relayEvents</b>(&nbsp;<code>Object o</code>, <code>Array events</code>&nbsp;) : void            <div class="mdesc">\r
1021                         <div class="short">Relays selected events from the specified Observable as if the events were fired by <tt><b>this</b></tt>.</div>\r
1022             <div class="long">\r
1023                 Relays selected events from the specified Observable as if the events were fired by <tt><b>this</b></tt>.    <div class="mdetail-params">\r
1024         <strong>Parameters:</strong>\r
1025         <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>\r
1026         <strong>Returns:</strong>\r
1027         <ul>\r
1028             <li><code>void</code></li>\r
1029         </ul>\r
1030     </div>\r
1031                 </div>\r
1032                         </div>\r
1033         </td>\r
1034         <td class="msource"><a ext:cls="Ext.util.Observable" ext:member="#relayEvents" href="output/Ext.util.Observable.html#relayEvents">Observable</a></td>\r
1035     </tr>\r
1036         <tr class="method-row expandable">\r
1037         <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>\r
1038         <td class="sig">\r
1039         <a id="Ext.data.Store-reload"></a>\r
1040             <b>reload</b>(&nbsp;<span class="optional" title="Optional">[<code>Object options</code>]</span>&nbsp;) : void            <div class="mdesc">\r
1041                         <div class="short">Reloads the Record cache from the configured Proxy using the configured Reader and
1042 the options from the last load ope...</div>\r
1043             <div class="long">\r
1044                 <p>Reloads the Record cache from the configured Proxy using the configured Reader and
1045 the options from the last load operation performed.</p>
1046 <p><b>It is important to note that for remote data sources, loading is asynchronous,
1047 and this call will return before the new data has been loaded. Perform any post-processing
1048 in a callback function, or in a "load" event handler.</b></p>    <div class="mdetail-params">\r
1049         <strong>Parameters:</strong>\r
1050         <ul><li><code>options</code> : Object<div class="sub-desc">(optional) An object containing loading options which may override the options
1051 used in the last load operation. See <a ext:cls="Ext.data.Store" ext:member="load" href="output/Ext.data.Store.html#load">load</a> for details (defaults to null, in which case
1052 the most recently used options are reused).</div></li>        </ul>\r
1053         <strong>Returns:</strong>\r
1054         <ul>\r
1055             <li><code>void</code></li>\r
1056         </ul>\r
1057     </div>\r
1058                 </div>\r
1059                         </div>\r
1060         </td>\r
1061         <td class="msource">Store</td>\r
1062     </tr>\r
1063         <tr class="method-row alt expandable">\r
1064         <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>\r
1065         <td class="sig">\r
1066         <a id="Ext.data.Store-remove"></a>\r
1067             <b>remove</b>(&nbsp;<code>Ext.data.Record record</code>&nbsp;) : void            <div class="mdesc">\r
1068                         <div class="short">Remove a Record from the Store and fires the <a ext:cls="Ext.data.Store" ext:member="remove" href="output/Ext.data.Store.html#remove">remove</a> event.</div>\r
1069             <div class="long">\r
1070                 Remove a Record from the Store and fires the <a ext:cls="Ext.data.Store" ext:member="remove" href="output/Ext.data.Store.html#remove">remove</a> event.    <div class="mdetail-params">\r
1071         <strong>Parameters:</strong>\r
1072         <ul><li><code>record</code> : Ext.data.Record<div class="sub-desc">The Ext.data.Record object to remove from the cache.</div></li>        </ul>\r
1073         <strong>Returns:</strong>\r
1074         <ul>\r
1075             <li><code>void</code></li>\r
1076         </ul>\r
1077     </div>\r
1078                 </div>\r
1079                         </div>\r
1080         </td>\r
1081         <td class="msource">Store</td>\r
1082     </tr>\r
1083         <tr class="method-row expandable">\r
1084         <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>\r
1085         <td class="sig">\r
1086         <a id="Ext.data.Store-removeAll"></a>\r
1087             <b>removeAll</b>() : void            <div class="mdesc">\r
1088                         <div class="short">Remove all Records from the Store and fires the <a ext:cls="Ext.data.Store" ext:member="clear" href="output/Ext.data.Store.html#clear">clear</a> event.</div>\r
1089             <div class="long">\r
1090                 Remove all Records from the Store and fires the <a ext:cls="Ext.data.Store" ext:member="clear" href="output/Ext.data.Store.html#clear">clear</a> event.    <div class="mdetail-params">\r
1091         <strong>Parameters:</strong>\r
1092         <ul><li>None.</li>        </ul>\r
1093         <strong>Returns:</strong>\r
1094         <ul>\r
1095             <li><code>void</code></li>\r
1096         </ul>\r
1097     </div>\r
1098                 </div>\r
1099                         </div>\r
1100         </td>\r
1101         <td class="msource">Store</td>\r
1102     </tr>\r
1103         <tr class="method-row alt expandable">\r
1104         <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>\r
1105         <td class="sig">\r
1106         <a id="Ext.data.Store-removeAt"></a>\r
1107             <b>removeAt</b>(&nbsp;<code>Number index</code>&nbsp;) : void            <div class="mdesc">\r
1108                         <div class="short">Remove a Record from the Store at the specified index. Fires the <a ext:cls="Ext.data.Store" ext:member="remove" href="output/Ext.data.Store.html#remove">remove</a> event.</div>\r
1109             <div class="long">\r
1110                 Remove a Record from the Store at the specified index. Fires the <a ext:cls="Ext.data.Store" ext:member="remove" href="output/Ext.data.Store.html#remove">remove</a> event.    <div class="mdetail-params">\r
1111         <strong>Parameters:</strong>\r
1112         <ul><li><code>index</code> : Number<div class="sub-desc">The index of the record to remove.</div></li>        </ul>\r
1113         <strong>Returns:</strong>\r
1114         <ul>\r
1115             <li><code>void</code></li>\r
1116         </ul>\r
1117     </div>\r
1118                 </div>\r
1119                         </div>\r
1120         </td>\r
1121         <td class="msource">Store</td>\r
1122     </tr>\r
1123         <tr class="method-row inherited expandable">\r
1124         <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>\r
1125         <td class="sig">\r
1126         <a id="Ext.data.Store-removeListener"></a>\r
1127             <b>removeListener</b>(&nbsp;<code>String eventName</code>, <code>Function handler</code>, <span class="optional" title="Optional">[<code>Object scope</code>]</span>&nbsp;) : void            <div class="mdesc">\r
1128                         <div class="short">Removes a listener</div>\r
1129             <div class="long">\r
1130                 Removes a listener    <div class="mdetail-params">\r
1131         <strong>Parameters:</strong>\r
1132         <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>\r
1133         <strong>Returns:</strong>\r
1134         <ul>\r
1135             <li><code>void</code></li>\r
1136         </ul>\r
1137     </div>\r
1138                 </div>\r
1139                         </div>\r
1140         </td>\r
1141         <td class="msource"><a ext:cls="Ext.util.Observable" ext:member="#removeListener" href="output/Ext.util.Observable.html#removeListener">Observable</a></td>\r
1142     </tr>\r
1143         <tr class="method-row inherited alt expandable">\r
1144         <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>\r
1145         <td class="sig">\r
1146         <a id="Ext.data.Store-resumeEvents"></a>\r
1147             <b>resumeEvents</b>() : void            <div class="mdesc">\r
1148                         <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>\r
1149             <div class="long">\r
1150                 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">\r
1151         <strong>Parameters:</strong>\r
1152         <ul><li>None.</li>        </ul>\r
1153         <strong>Returns:</strong>\r
1154         <ul>\r
1155             <li><code>void</code></li>\r
1156         </ul>\r
1157     </div>\r
1158                 </div>\r
1159                         </div>\r
1160         </td>\r
1161         <td class="msource"><a ext:cls="Ext.util.Observable" ext:member="#resumeEvents" href="output/Ext.util.Observable.html#resumeEvents">Observable</a></td>\r
1162     </tr>\r
1163         <tr class="method-row expandable">\r
1164         <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>\r
1165         <td class="sig">\r
1166         <a id="Ext.data.Store-setDefaultSort"></a>\r
1167             <b>setDefaultSort</b>(&nbsp;<code>String fieldName</code>, <span class="optional" title="Optional">[<code>String dir</code>]</span>&nbsp;) : void            <div class="mdesc">\r
1168                         <div class="short">Sets the default sort column and order to be used by the next load operation.</div>\r
1169             <div class="long">\r
1170                 Sets the default sort column and order to be used by the next load operation.    <div class="mdetail-params">\r
1171         <strong>Parameters:</strong>\r
1172         <ul><li><code>fieldName</code> : String<div class="sub-desc">The name of the field to sort by.</div></li><li><code>dir</code> : String<div class="sub-desc">(optional) The sort order, "ASC" or "DESC" (case-sensitive, defaults to "ASC")</div></li>        </ul>\r
1173         <strong>Returns:</strong>\r
1174         <ul>\r
1175             <li><code>void</code></li>\r
1176         </ul>\r
1177     </div>\r
1178                 </div>\r
1179                         </div>\r
1180         </td>\r
1181         <td class="msource">Store</td>\r
1182     </tr>\r
1183         <tr class="method-row alt expandable">\r
1184         <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>\r
1185         <td class="sig">\r
1186         <a id="Ext.data.Store-sort"></a>\r
1187             <b>sort</b>(&nbsp;<code>String fieldName</code>, <span class="optional" title="Optional">[<code>String dir</code>]</span>&nbsp;) : void            <div class="mdesc">\r
1188                         <div class="short">Sort the Records.
1189 If remote sorting is used, the sort is performed on the server, and the cache is
1190 reloaded. If local...</div>\r
1191             <div class="long">\r
1192                 Sort the Records.
1193 If remote sorting is used, the sort is performed on the server, and the cache is
1194 reloaded. If local sorting is used, the cache is sorted internally.    <div class="mdetail-params">\r
1195         <strong>Parameters:</strong>\r
1196         <ul><li><code>fieldName</code> : String<div class="sub-desc">The name of the field to sort by.</div></li><li><code>dir</code> : String<div class="sub-desc">(optional) The sort order, "ASC" or "DESC" (case-sensitive, defaults to "ASC")</div></li>        </ul>\r
1197         <strong>Returns:</strong>\r
1198         <ul>\r
1199             <li><code>void</code></li>\r
1200         </ul>\r
1201     </div>\r
1202                 </div>\r
1203                         </div>\r
1204         </td>\r
1205         <td class="msource">Store</td>\r
1206     </tr>\r
1207         <tr class="method-row expandable">\r
1208         <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>\r
1209         <td class="sig">\r
1210         <a id="Ext.data.Store-sum"></a>\r
1211             <b>sum</b>(&nbsp;<code>String property</code>, <code>Number start</code>, <code>Number end</code>&nbsp;) : Number            <div class="mdesc">\r
1212                         <div class="short">Sums the value of <i>property</i> for each record between start and end and returns the result.</div>\r
1213             <div class="long">\r
1214                 Sums the value of <i>property</i> for each record between start and end and returns the result.    <div class="mdetail-params">\r
1215         <strong>Parameters:</strong>\r
1216         <ul><li><code>property</code> : String<div class="sub-desc">A field on your records</div></li><li><code>start</code> : Number<div class="sub-desc">The record index to start at (defaults to 0)</div></li><li><code>end</code> : Number<div class="sub-desc">The last record index to include (defaults to length - 1)</div></li>        </ul>\r
1217         <strong>Returns:</strong>\r
1218         <ul>\r
1219             <li><code>Number</code><div class="sub-desc">The sum</div></li>\r
1220         </ul>\r
1221     </div>\r
1222                 </div>\r
1223                         </div>\r
1224         </td>\r
1225         <td class="msource">Store</td>\r
1226     </tr>\r
1227         <tr class="method-row inherited alt expandable">\r
1228         <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>\r
1229         <td class="sig">\r
1230         <a id="Ext.data.Store-suspendEvents"></a>\r
1231             <b>suspendEvents</b>() : void            <div class="mdesc">\r
1232                         <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>\r
1233             <div class="long">\r
1234                 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">\r
1235         <strong>Parameters:</strong>\r
1236         <ul><li>None.</li>        </ul>\r
1237         <strong>Returns:</strong>\r
1238         <ul>\r
1239             <li><code>void</code></li>\r
1240         </ul>\r
1241     </div>\r
1242                 </div>\r
1243                         </div>\r
1244         </td>\r
1245         <td class="msource"><a ext:cls="Ext.util.Observable" ext:member="#suspendEvents" href="output/Ext.util.Observable.html#suspendEvents">Observable</a></td>\r
1246     </tr>\r
1247         <tr class="method-row inherited expandable">\r
1248         <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>\r
1249         <td class="sig">\r
1250         <a id="Ext.data.Store-un"></a>\r
1251             <b>un</b>(&nbsp;<code>String eventName</code>, <code>Function handler</code>, <span class="optional" title="Optional">[<code>Object scope</code>]</span>&nbsp;) : void            <div class="mdesc">\r
1252                         <div class="short">Removes a listener (shorthand for removeListener)</div>\r
1253             <div class="long">\r
1254                 Removes a listener (shorthand for removeListener)    <div class="mdetail-params">\r
1255         <strong>Parameters:</strong>\r
1256         <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>\r
1257         <strong>Returns:</strong>\r
1258         <ul>\r
1259             <li><code>void</code></li>\r
1260         </ul>\r
1261     </div>\r
1262                 </div>\r
1263                         </div>\r
1264         </td>\r
1265         <td class="msource"><a ext:cls="Ext.util.Observable" ext:member="#un" href="output/Ext.util.Observable.html#un">Observable</a></td>\r
1266     </tr>\r
1267             </table>
1268                 <a id="Ext.data.Store-events"></a>
1269         <h2>Public Events</h2>
1270                 <table cellspacing="0" class="member-table">
1271             <tr>
1272                 <th class="sig-header" colspan="2">Event</th>
1273                 <th class="msource-header">Defined By</th>
1274             </tr>
1275                 <tr class="event-row expandable">\r
1276         <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>\r
1277         <td class="sig">\r
1278         <a id="Ext.data.Store-add"></a>\r
1279             <b>add</b> : (&nbsp;<code>Store this</code>, <code>Ext.data.Record[] records</code>, <code>Number index</code>&nbsp;)            <div class="mdesc">\r
1280                         <div class="short">Fires when Records have been added to the Store</div>\r
1281             <div class="long">\r
1282                 Fires when Records have been added to the Store    <div class="mdetail-params">\r
1283         <strong style="font-weight:normal;">Listeners will be called with the following arguments:</strong>\r
1284         <ul><li><code>this</code> : Store<div class="sub-desc"></div></li><li><code>records</code> : Ext.data.Record[]<div class="sub-desc">The array of Records added</div></li><li><code>index</code> : Number<div class="sub-desc">The index at which the record(s) were added</div></li>        </ul>\r
1285     </div>\r
1286                 </div>\r
1287                         </div>\r
1288         </td>\r
1289         <td class="msource">Store</td>\r
1290     </tr>\r
1291         <tr class="event-row alt expandable">\r
1292         <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>\r
1293         <td class="sig">\r
1294         <a id="Ext.data.Store-beforeload"></a>\r
1295             <b>beforeload</b> : (&nbsp;<code>Store this</code>, <code>Object options</code>&nbsp;)            <div class="mdesc">\r
1296                         <div class="short">Fires before a request is made for a new data object.  If the beforeload handler returns false
1297 the load action will b...</div>\r
1298             <div class="long">\r
1299                 Fires before a request is made for a new data object.  If the beforeload handler returns false
1300 the load action will be canceled.    <div class="mdetail-params">\r
1301         <strong style="font-weight:normal;">Listeners will be called with the following arguments:</strong>\r
1302         <ul><li><code>this</code> : Store<div class="sub-desc"></div></li><li><code>options</code> : Object<div class="sub-desc">The loading options that were specified (see <a ext:cls="Ext.data.Store" ext:member="load" href="output/Ext.data.Store.html#load">load</a> for details)</div></li>        </ul>\r
1303     </div>\r
1304                 </div>\r
1305                         </div>\r
1306         </td>\r
1307         <td class="msource">Store</td>\r
1308     </tr>\r
1309         <tr class="event-row expandable">\r
1310         <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>\r
1311         <td class="sig">\r
1312         <a id="Ext.data.Store-clear"></a>\r
1313             <b>clear</b> : (&nbsp;<code>Store this</code>&nbsp;)            <div class="mdesc">\r
1314                         <div class="short">Fires when the data cache has been cleared.</div>\r
1315             <div class="long">\r
1316                 Fires when the data cache has been cleared.    <div class="mdetail-params">\r
1317         <strong style="font-weight:normal;">Listeners will be called with the following arguments:</strong>\r
1318         <ul><li><code>this</code> : Store<div class="sub-desc"></div></li>        </ul>\r
1319     </div>\r
1320                 </div>\r
1321                         </div>\r
1322         </td>\r
1323         <td class="msource">Store</td>\r
1324     </tr>\r
1325         <tr class="event-row alt expandable">\r
1326         <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>\r
1327         <td class="sig">\r
1328         <a id="Ext.data.Store-datachanged"></a>\r
1329             <b>datachanged</b> : (&nbsp;<code>Store this</code>&nbsp;)            <div class="mdesc">\r
1330                         <div class="short">Fires when the data cache has changed in a bulk manner (e.g., it has been sorted, filtered, etc.) and a 
1331 widget that ...</div>\r
1332             <div class="long">\r
1333                 Fires when the data cache has changed in a bulk manner (e.g., it has been sorted, filtered, etc.) and a 
1334 widget that is using this Store as a Record cache should refresh its view.    <div class="mdetail-params">\r
1335         <strong style="font-weight:normal;">Listeners will be called with the following arguments:</strong>\r
1336         <ul><li><code>this</code> : Store<div class="sub-desc"></div></li>        </ul>\r
1337     </div>\r
1338                 </div>\r
1339                         </div>\r
1340         </td>\r
1341         <td class="msource">Store</td>\r
1342     </tr>\r
1343         <tr class="event-row expandable">\r
1344         <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>\r
1345         <td class="sig">\r
1346         <a id="Ext.data.Store-load"></a>\r
1347             <b>load</b> : (&nbsp;<code>Store this</code>, <code>Ext.data.Record[] records</code>, <code>Object options</code>&nbsp;)            <div class="mdesc">\r
1348                         <div class="short">Fires after a new set of Records has been loaded.</div>\r
1349             <div class="long">\r
1350                 Fires after a new set of Records has been loaded.    <div class="mdetail-params">\r
1351         <strong style="font-weight:normal;">Listeners will be called with the following arguments:</strong>\r
1352         <ul><li><code>this</code> : Store<div class="sub-desc"></div></li><li><code>records</code> : Ext.data.Record[]<div class="sub-desc">The Records that were loaded</div></li><li><code>options</code> : Object<div class="sub-desc">The loading options that were specified (see <a ext:cls="Ext.data.Store" ext:member="load" href="output/Ext.data.Store.html#load">load</a> for details)</div></li>        </ul>\r
1353     </div>\r
1354                 </div>\r
1355                         </div>\r
1356         </td>\r
1357         <td class="msource">Store</td>\r
1358     </tr>\r
1359         <tr class="event-row alt expandable">\r
1360         <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>\r
1361         <td class="sig">\r
1362         <a id="Ext.data.Store-loadexception"></a>\r
1363             <b>loadexception</b> : ()            <div class="mdesc">\r
1364                         <div class="short">Fires if an exception occurs in the Proxy during loading.
1365 Called with the signature of the Proxy's "loadexception" ev...</div>\r
1366             <div class="long">\r
1367                 Fires if an exception occurs in the Proxy during loading.
1368 Called with the signature of the Proxy's "loadexception" event.    <div class="mdetail-params">\r
1369         <strong style="font-weight:normal;">Listeners will be called with the following arguments:</strong>\r
1370         <ul><li>None.</li>        </ul>\r
1371     </div>\r
1372                 </div>\r
1373                         </div>\r
1374         </td>\r
1375         <td class="msource">Store</td>\r
1376     </tr>\r
1377         <tr class="event-row expandable">\r
1378         <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>\r
1379         <td class="sig">\r
1380         <a id="Ext.data.Store-metachange"></a>\r
1381             <b>metachange</b> : (&nbsp;<code>Store this</code>, <code>Object meta</code>&nbsp;)            <div class="mdesc">\r
1382                         <div class="short">Fires when this store's reader provides new metadata (fields). This is currently only supported for JsonReaders.</div>\r
1383             <div class="long">\r
1384                 Fires when this store's reader provides new metadata (fields). This is currently only supported for JsonReaders.    <div class="mdetail-params">\r
1385         <strong style="font-weight:normal;">Listeners will be called with the following arguments:</strong>\r
1386         <ul><li><code>this</code> : Store<div class="sub-desc"></div></li><li><code>meta</code> : Object<div class="sub-desc">The JSON metadata</div></li>        </ul>\r
1387     </div>\r
1388                 </div>\r
1389                         </div>\r
1390         </td>\r
1391         <td class="msource">Store</td>\r
1392     </tr>\r
1393         <tr class="event-row alt expandable">\r
1394         <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>\r
1395         <td class="sig">\r
1396         <a id="Ext.data.Store-remove"></a>\r
1397             <b>remove</b> : (&nbsp;<code>Store this</code>, <code>Ext.data.Record record</code>, <code>Number index</code>&nbsp;)            <div class="mdesc">\r
1398                         <div class="short">Fires when a Record has been removed from the Store</div>\r
1399             <div class="long">\r
1400                 Fires when a Record has been removed from the Store    <div class="mdetail-params">\r
1401         <strong style="font-weight:normal;">Listeners will be called with the following arguments:</strong>\r
1402         <ul><li><code>this</code> : Store<div class="sub-desc"></div></li><li><code>record</code> : Ext.data.Record<div class="sub-desc">The Record that was removed</div></li><li><code>index</code> : Number<div class="sub-desc">The index at which the record was removed</div></li>        </ul>\r
1403     </div>\r
1404                 </div>\r
1405                         </div>\r
1406         </td>\r
1407         <td class="msource">Store</td>\r
1408     </tr>\r
1409         <tr class="event-row expandable">\r
1410         <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>\r
1411         <td class="sig">\r
1412         <a id="Ext.data.Store-update"></a>\r
1413             <b>update</b> : (&nbsp;<code>Store this</code>, <code>Ext.data.Record record</code>, <code>String operation</code>&nbsp;)            <div class="mdesc">\r
1414                         <div class="short">Fires when a Record has been updated</div>\r
1415             <div class="long">\r
1416                 Fires when a Record has been updated    <div class="mdetail-params">\r
1417         <strong style="font-weight:normal;">Listeners will be called with the following arguments:</strong>\r
1418         <ul><li><code>this</code> : Store<div class="sub-desc"></div></li><li><code>record</code> : Ext.data.Record<div class="sub-desc">The Record that was updated</div></li><li><code>operation</code> : String<div class="sub-desc">The update operation being performed. Value may be one of:
1419 <pre><code>Ext.data.Record.EDIT
1420  Ext.data.Record.REJECT
1421  Ext.data.Record.COMMIT</code></pre></div></li>        </ul>\r
1422     </div>\r
1423                 </div>\r
1424                         </div>\r
1425         </td>\r
1426         <td class="msource">Store</td>\r
1427     </tr>\r
1428             </table>
1429         
1430         </div>