Upgrade to ExtJS 4.0.0 - Released 04/26/2011
[extjs.git] / docs / api / Ext.data.Store.html
1 <!DOCTYPE html><html><head><title>Ext.data.Store | Ext JS 4.0 Documentation</title><script type="text/javascript" src="../ext-all.js"></script><link rel="stylesheet" href="../reset.css" type="text/css"><link rel="stylesheet" href="../scrollbars.css" type="text/css"><link rel="stylesheet" href="../docs.css" type="text/css"><link id="styleCss" rel="stylesheet" href="../style.css" type="text/css"><script type="text/javascript" src="../prettify.js"></script><link rel="stylesheet" href="../prettify.css" type="text/css"><!-- link(rel: 'stylesheet', href: req.baseURL + '/css/ext4.css', type: 'text/css')--><link rel="shortcut icon" type="image/ico" href="../favicon.ico"><!--[if IE]>
2 <style type="text/css">.head-band { display: none; }
3 .header { border: 0; top: 0; left: 0px; background: url(../header.gif) repeat-x; }
4 .doc-tab .members .member a.more { background-color: #efefef; }
5 </style><link rel="stylesheet" href="/new/css/ie.css" type="text/css"><![endif]-->
6 </head><body id="ext-body" class="iScroll"><div id="notice" class="notice">For up to date documentation and features, visit 
7 <a href="http://docs.sencha.com/ext-js/4-0">http://docs.sencha.com/ext-js/4-0</a></div><div class="wrapper"><div class="head-band"></div><div class="header"><h2><a href="../index.html">Sencha Documentation</a></h2></div><div id="search"><form><input type="text" placeholder="Search" id="search-field" autocomplete="off" name="q"></form><div id="search-box"></div></div><div id="treePanel"></div><div id="container"><script type="text/javascript">
8
9     req = {
10         liveURL: '.',
11         standAloneMode: true,
12         origDocClass: 'Ext.data.Store',
13         docClass: 'Ext.data.Store',
14         docReq: 'Ext.data.Store',
15         version: '4.0',
16         baseURL: '.',
17         baseDocURL: '.',
18         baseProdURL: '.'
19     };
20
21     clsInfo = {};
22
23
24
25 </script>
26
27 <script type="text/javascript" src="../search.js"></script>
28 <!--script type="text/javascript" src="/new/javascripts/app/examples.js"></script-->
29 <script type="text/javascript" src="../class_tree.js"></script>
30 <script type="text/javascript" src="../class_doc.js"></script>
31 <script type="text/javascript">
32     req.source = 'Store2.html#Ext-data.Store';
33     clsInfo = {"methods":["Store","add","addEvents","addListener","addManagedListener","aggregate","average","capture","clearFilter","clearGrouping","clearListeners","clearManagedListeners","collect","count","each","enableBubble","filter","filterBy","find","findBy","findExact","findRecord","fireEvent","first","getAt","getById","getCount","getGroupString","getGroups","getNewRecords","getPageFromRecordIndex","getProxy","getRange","getSortState","getTotalCount","getUpdatedRecords","group","guaranteeRange","hasListener","hasPendingRequests","indexOf","indexOfId","indexOfTotal","initSortable","insert","isFiltered","isGrouped","isLoading","last","load","loadData","loadPage","loadRecords","max","min","nextPage","observe","on","prefetch","prefetchPage","previousPage","purgeRecords","queryBy","relayEvents","releaseCapture","remove","removeAll","removeAt","removeListener","removeManagedListener","resumeEvents","setProxy","sort","sum","suspendEvents","sync","un"],"cfgs":["autoLoad","autoSync","buffered","clearOnPageLoad","data","fields","listeners","model","proxy","purgePageCount","remoteFilter","remoteGroup","remoteSort","sortOnFilter","storeId"],"properties":["","batchUpdateMode","currentPage","data","defaultProxyType","defaultSortDirection","filterOnLoad","filters","groupDir","groupField","groupers","isDestroyed","isSortable","pageSize","removeAll","snapshot","sortOnLoad","sortRoot","sorters"],"events":["add","beforeload","beforeprefetch","beforesync","clear","datachanged","groupchange","load","remove","update"],"subclasses":["Ext.grid.property.Store","Ext.data.ArrayStore","Ext.data.BufferStore","Ext.data.DirectStore","Ext.data.JsonPStore","Ext.data.JsonStore","Ext.data.XmlStore"]};
34     Ext.onReady(function() {
35         Ext.create('Docs.classPanel');
36     });
37 </script><div id="top-block" class="top-block"><h1 id="clsTitle" class="cls"><a href="../source/Store2.html#Ext-data.Store" target="_blank">Ext.data.Store</a></h1></div><div id="docContent"><div id="doc-overview-content"><div class="lft"><pre class="subclasses"><h4>Hierarchy</h4><div class="subclass f"><a href="Ext.data.AbstractStore.html" rel="Ext.data.AbstractStore" class="cls docClass">Ext.data.AbstractStore</a><div class="subclass"><strong>Ext.data.Store</strong></div></div><h4>Mixins</h4><div class="mixin"><a href="Ext.util.Observable.html" rel="Ext.util.Observable" class="cls docClass">Ext.util.Observable</a></div><div class="mixin"><a href="Ext.util.Sortable.html" rel="Ext.util.Sortable" class="cls docClass">Ext.util.Sortable</a></div></pre><p>The Store class encapsulates a client side cache of <a href="Ext.data.Model.html" rel="Ext.data.Model" class="docClass">Model</a> objects. Stores load
38 data via a <a href="Ext.data.proxy.Proxy.html" rel="Ext.data.proxy.Proxy" class="docClass">Proxy</a>, and also provide functions for <a href="Ext.data.Store.html#sort" rel="Ext.data.Store#sort" class="docClass">sorting</a>,
39 <a href="Ext.data.Store.html#filter" rel="Ext.data.Store#filter" class="docClass">filtering</a> and querying the <a href="Ext.data.Model.html" rel="Ext.data.Model" class="docClass">model</a> instances contained within it.</p>
40
41
42
43
44 <p>Creating a Store is easy - we just tell it the Model and the Proxy to use to load and save its data:</p>
45
46
47
48
49 <pre class="prettyprint"><code>// Set up a <a href="Ext.data.Model.html" rel="Ext.data.Model" class="docClass">model</a> to use in our Store
50 Ext.define('User', {
51     extend: 'Ext.data.Model',
52     fields: [
53         {name: 'firstName', type: 'string'},
54         {name: 'lastName',  type: 'string'},
55         {name: 'age',       type: 'int'},
56         {name: 'eyeColor',  type: 'string'}
57     ]
58 });
59
60 var myStore = new Ext.data.Store({
61     model: 'User',
62     proxy: {
63         type: 'ajax',
64         url : '/users.json',
65         reader: {
66             type: 'json',
67             root: 'users'
68         }
69     },
70     autoLoad: true
71 });
72 </code></pre>
73
74
75
76
77 <p>In the example above we configured an AJAX proxy to load data from the url '/users.json'. We told our Proxy
78 to use a <a href="Ext.data.reader.Json.html" rel="Ext.data.reader.Json" class="docClass">JsonReader</a> to parse the response from the server into Model object -
79 <a href="Ext.data.reader.Json.html" rel="Ext.data.reader.Json" class="docClass">see the docs on JsonReader</a> for details.</p>
80
81
82
83
84 <p><u>Inline data</u></p>
85
86
87
88
89 <p>Stores can also load data inline. Internally, Store converts each of the objects we pass in as <a href="Ext.data.Store.html#data" rel="Ext.data.Store#data" class="docClass">data</a>
90 into Model instances:</p>
91
92
93
94
95 <pre class="prettyprint"><code>new Ext.data.Store({
96     model: 'User',
97     data : [
98         {firstName: 'Ed',    lastName: 'Spencer'},
99         {firstName: 'Tommy', lastName: 'Maintz'},
100         {firstName: 'Aaron', lastName: 'Conran'},
101         {firstName: 'Jamie', lastName: 'Avins'}
102     ]
103 });
104 </code></pre>
105
106
107
108
109 <p>Loading inline data using the method above is great if the data is in the correct format already (e.g. it doesn't need
110 to be processed by a <a href="Ext.data.reader.Reader.html" rel="Ext.data.reader.Reader" class="docClass">reader</a>). If your inline data requires processing to decode the data structure,
111 use a <a href="Ext.data.proxy.Memory.html" rel="Ext.data.proxy.Memory" class="docClass">MemoryProxy</a> instead (see the <a href="Ext.data.proxy.Memory.html" rel="Ext.data.proxy.Memory" class="docClass">MemoryProxy</a> docs for an example).</p>
112
113
114
115
116 <p>Additional data can also be loaded locally using <a href="Ext.data.Store.html#add" rel="Ext.data.Store#add" class="docClass">add</a>.</p>
117
118
119
120
121 <p><u>Loading Nested Data</u></p>
122
123
124
125
126 <p>Applications often need to load sets of associated data - for example a CRM system might load a User and her Orders.
127 Instead of issuing an AJAX request for the User and a series of additional AJAX requests for each Order, we can load a nested dataset
128 and allow the Reader to automatically populate the associated models. Below is a brief example, see the <a href="Ext.data.reader.Reader.html" rel="Ext.data.reader.Reader" class="docClass">Ext.data.reader.Reader</a> intro
129 docs for a full explanation:</p>
130
131
132
133
134 <pre class="prettyprint"><code>var store = new Ext.data.Store({
135     autoLoad: true,
136     model: "User",
137     proxy: {
138         type: 'ajax',
139         url : 'users.json',
140         reader: {
141             type: 'json',
142             root: 'users'
143         }
144     }
145 });
146 </code></pre>
147
148
149
150
151 <p>Which would consume a response like this:</p>
152
153
154
155
156 <pre class="prettyprint"><code>{
157     "users": [
158         {
159             "id": 1,
160             "name": "Ed",
161             "orders": [
162                 {
163                     "id": 10,
164                     "total": 10.76,
165                     "status": "invoiced"
166                 },
167                 {
168                     "id": 11,
169                     "total": 13.45,
170                     "status": "shipped"
171                 }
172             ]
173         }
174     ]
175 }
176 </code></pre>
177
178
179
180
181 <p>See the <a href="Ext.data.reader.Reader.html" rel="Ext.data.reader.Reader" class="docClass">Ext.data.reader.Reader</a> intro docs for a full explanation.</p>
182
183
184
185
186 <p><u>Filtering and Sorting</u></p>
187
188
189
190
191 <p>Stores can be sorted and filtered - in both cases either remotely or locally. The <a href="Ext.data.Store.html#sorters" rel="Ext.data.Store#sorters" class="docClass">sorters</a> and <a href="Ext.data.Store.html#filters" rel="Ext.data.Store#filters" class="docClass">filters</a> are
192 held inside <a href="Ext.util.MixedCollection.html" rel="Ext.util.MixedCollection" class="docClass">MixedCollection</a> instances to make them easy to manage. Usually it is sufficient to
193 either just specify sorters and filters in the Store configuration or call <a href="Ext.data.Store.html#sort" rel="Ext.data.Store#sort" class="docClass">sort</a> or <a href="Ext.data.Store.html#filter" rel="Ext.data.Store#filter" class="docClass">filter</a>:
194
195 <pre class="prettyprint"><code>var store = new Ext.data.Store({
196     model: 'User',
197     sorters: [
198         {
199             property : 'age',
200             direction: 'DESC'
201         },
202         {
203             property : 'firstName',
204             direction: 'ASC'
205         }
206     ],
207
208     filters: [
209         {
210             property: 'firstName',
211             value   : /Ed/
212         }
213     ]
214 });
215 </code></pre>
216
217 <p>The new Store will keep the configured sorters and filters in the MixedCollection instances mentioned above. By default, sorting
218 and filtering are both performed locally by the Store - see <a href="Ext.data.Store.html#remoteSort" rel="Ext.data.Store#remoteSort" class="docClass">remoteSort</a> and <a href="Ext.data.Store.html#remoteFilter" rel="Ext.data.Store#remoteFilter" class="docClass">remoteFilter</a> to allow the server to
219 perform these operations instead.</p>
220
221 <p>Filtering and sorting after the Store has been instantiated is also easy. Calling <a href="Ext.data.Store.html#filter" rel="Ext.data.Store#filter" class="docClass">filter</a> adds another filter to the Store
222 and automatically filters the dataset (calling <a href="Ext.data.Store.html#filter" rel="Ext.data.Store#filter" class="docClass">filter</a> with no arguments simply re-applies all existing filters). Note that by
223 default <a href="Ext.data.Store.html#sortOnFilter" rel="Ext.data.Store#sortOnFilter" class="docClass">sortOnFilter</a> is set to true, which means that your sorters are automatically reapplied if using local sorting.</p>
224
225 <pre class="prettyprint"><code>store.filter('eyeColor', 'Brown');
226 </code></pre>
227
228 <p>Change the sorting at any time by calling <a href="Ext.data.Store.html#sort" rel="Ext.data.Store#sort" class="docClass">sort</a>:</p>
229
230 <pre class="prettyprint"><code>store.sort('height', 'ASC');
231 </code></pre>
232
233 <p>Note that all existing sorters will be removed in favor of the new sorter data (if <a href="Ext.data.Store.html#sort" rel="Ext.data.Store#sort" class="docClass">sort</a> is called with no arguments,
234 the existing sorters are just reapplied instead of being removed). To keep existing sorters and add new ones, just add them
235 to the MixedCollection:</p>
236
237 <pre class="prettyprint"><code>store.sorters.add(new Ext.util.Sorter({
238     property : 'shoeSize',
239     direction: 'ASC'
240 }));
241
242 store.sort();
243 </code></pre>
244
245 <p><u>Registering with StoreManager</u></p>
246
247 <p>Any Store that is instantiated with a <a href="Ext.data.Store.html#storeId" rel="Ext.data.Store#storeId" class="docClass">storeId</a> will automatically be registed with the <a href="Ext.data.StoreManager.html" rel="Ext.data.StoreManager" class="docClass">StoreManager</a>.
248 This makes it easy to reuse the same store in multiple views:</p>
249
250  
251 <pre class="prettyprint"><code>//this store can be used several times
252 new Ext.data.Store({
253     model: 'User',
254     storeId: 'usersStore'
255 });
256
257 new Ext.List({
258     store: 'usersStore',
259
260     //other config goes here
261 });
262
263 new Ext.view.View({
264     store: 'usersStore',
265
266     //other config goes here
267 });
268 </code></pre>
269
270 <p><u>Further Reading</u></p>
271
272 <p>Stores are backed up by an ecosystem of classes that enables their operation. To gain a full understanding of these
273 pieces and how they fit together, see:</p>
274
275 <ul style="list-style-type: disc; padding-left: 25px">
276 <li><a href="Ext.data.proxy.Proxy.html" rel="Ext.data.proxy.Proxy" class="docClass">Proxy</a> - overview of what Proxies are and how they are used</li>
277 <li><a href="Ext.data.Model.html" rel="Ext.data.Model" class="docClass">Model</a> - the core class in the data package</li>
278 <li><a href="Ext.data.reader.Reader.html" rel="Ext.data.reader.Reader" class="docClass">Reader</a> - used by any subclass of <a href="Ext.data.proxy.Server.html" rel="Ext.data.proxy.Server" class="docClass">ServerProxy</a> to read a response</li>
279 </ul>
280
281 <div class="members"><div class="m-cfgs"><div class="definedBy">Defined By</div><a name="configs"></a><h3 class="cfg p">Config Options</h3><h4 class="cfgGroup">Other Configs</h4><div id="config-autoLoad" class="member f inherited"><a href="Ext.data.Store.html#config-autoLoad" rel="config-autoLoad" class="expand more ar"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.data.AbstractStore.html" class="definedIn docClass">Ext.data.AbstractStore</a><br/><a href="../source/AbstractStore.html#Ext-data.AbstractStore-cfg-autoLoad" class="viewSource">view source</a></div><a name="autoLoad"></a><a name="config-autoLoad"></a><a href="Ext.data.Store.html#" rel="config-autoLoad" class="cls expand">autoLoad</a><span> : Boolean/Object</span></div><div class="description"><div class="short">If data is not specified, and if autoLoad is true or an Object, this store's load method
282 is automatically called afte...</div><div class="long"><p>If data is not specified, and if autoLoad is true or an Object, this store's load method
283 is automatically called after creation. If the value of autoLoad is an Object, this Object will be passed to the store's
284 load method. Defaults to false.</p>
285 </div></div></div><div id="config-autoSync" class="member inherited"><a href="Ext.data.Store.html#config-autoSync" rel="config-autoSync" class="expand more"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.data.AbstractStore.html" class="definedIn docClass">Ext.data.AbstractStore</a><br/><a href="../source/AbstractStore.html#Ext-data.AbstractStore-cfg-autoSync" class="viewSource">view source</a></div><a name="autoSync"></a><a name="config-autoSync"></a><a href="Ext.data.Store.html#" rel="config-autoSync" class="cls expand">autoSync</a><span> : Boolean</span></div><div class="description"><div class="short"><p>True to automatically sync the Store with its Proxy after every edit to one of its Records.
286 Defaults to false.</p>
287 </div><div class="long"><p>True to automatically sync the Store with its Proxy after every edit to one of its Records.
288 Defaults to false.</p>
289 </div></div></div><div id="config-buffered" class="member ni"><a href="Ext.data.Store.html#config-buffered" rel="config-buffered" class="expand more ar"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.data.Store.html" class="definedIn docClass">Ext.data.Store</a><br/><a href="../source/Store2.html#Ext-data.Store-cfg-buffered" class="viewSource">view source</a></div><a name="buffered"></a><a name="config-buffered"></a><a href="Ext.data.Store.html#" rel="config-buffered" class="cls expand">buffered</a><span> : Boolean</span></div><div class="description"><div class="short">Allow the store to buffer and pre-fetch pages of records. This is to be used in conjunction with a view will
290 tell the...</div><div class="long"><p>Allow the store to buffer and pre-fetch pages of records. This is to be used in conjunction with a view will
291 tell the store to pre-fetch records ahead of a time.</p>
292 </div></div></div><div id="config-clearOnPageLoad" class="member ni"><a href="Ext.data.Store.html#config-clearOnPageLoad" rel="config-clearOnPageLoad" class="expand more ar"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.data.Store.html" class="definedIn docClass">Ext.data.Store</a><br/><a href="../source/Store2.html#Ext-data.Store-cfg-clearOnPageLoad" class="viewSource">view source</a></div><a name="clearOnPageLoad"></a><a name="config-clearOnPageLoad"></a><a href="Ext.data.Store.html#" rel="config-clearOnPageLoad" class="cls expand">clearOnPageLoad</a><span> : Boolean</span></div><div class="description"><div class="short">True to empty the store when loading another page via loadPage,
293 nextPage or previousPage (defaults to true). Setting ...</div><div class="long"><p>True to empty the store when loading another page via <a href="Ext.data.Store.html#loadPage" rel="Ext.data.Store#loadPage" class="docClass">loadPage</a>,
294 <a href="Ext.data.Store.html#nextPage" rel="Ext.data.Store#nextPage" class="docClass">nextPage</a> or <a href="Ext.data.Store.html#previousPage" rel="Ext.data.Store#previousPage" class="docClass">previousPage</a> (defaults to true). Setting to false keeps existing records, allowing
295 large data sets to be loaded one page at a time but rendered all together.</p>
296 </div></div></div><div id="config-data" class="member ni"><a href="Ext.data.Store.html#config-data" rel="config-data" class="expand more"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.data.Store.html" class="definedIn docClass">Ext.data.Store</a><br/><a href="../source/Store2.html#Ext-data.Store-cfg-data" class="viewSource">view source</a></div><a name="data"></a><a name="config-data"></a><a href="Ext.data.Store.html#" rel="config-data" class="cls expand">data</a><span> : Array</span></div><div class="description"><div class="short"><p>Optional array of Model instances or data objects to load locally. See "Inline data" above for details.</p>
297 </div><div class="long"><p>Optional array of Model instances or data objects to load locally. See "Inline data" above for details.</p>
298 </div></div></div><div id="config-fields" class="member inherited"><a href="Ext.data.Store.html#config-fields" rel="config-fields" class="expand more ar"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.data.AbstractStore.html" class="definedIn docClass">Ext.data.AbstractStore</a><br/><a href="../source/AbstractStore.html#Ext-data.AbstractStore-cfg-fields" class="viewSource">view source</a></div><a name="fields"></a><a name="config-fields"></a><a href="Ext.data.Store.html#" rel="config-fields" class="cls expand">fields</a><span> : Array</span></div><div class="description"><div class="short">This may be used in place of specifying a model configuration. The fields should be a
299 set of Ext.data.Field configura...</div><div class="long"><p>This may be used in place of specifying a <a href="Ext.data.Store.html#model" rel="Ext.data.Store#model" class="docClass">model</a> configuration. The fields should be a
300 set of <a href="Ext.data.Field.html" rel="Ext.data.Field" class="docClass">Ext.data.Field</a> configuration objects. The store will automatically create a <a href="Ext.data.Model.html" rel="Ext.data.Model" class="docClass">Ext.data.Model</a>
301 with these fields. In general this configuration option should be avoided, it exists for the purposes of
302 backwards compatibility. For anything more complicated, such as specifying a particular id property or
303 assocations, a <a href="Ext.data.Model.html" rel="Ext.data.Model" class="docClass">Ext.data.Model</a> should be defined and specified for the <a href="Ext.data.Store.html#model" rel="Ext.data.Store#model" class="docClass">model</a> config.</p>
304 </div></div></div><div id="config-listeners" class="member inherited"><a href="Ext.data.Store.html#config-listeners" rel="config-listeners" class="expand more ar"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.util.Observable.html" class="definedIn docClass">Ext.util.Observable</a><br/><a href="../source/Observable.html#Ext-util.Observable-cfg-listeners" class="viewSource">view source</a></div><a name="listeners"></a><a name="config-listeners"></a><a href="Ext.data.Store.html#" rel="config-listeners" class="cls expand">listeners</a><span> : Object</span></div><div class="description"><div class="short">(optional) A config object containing one or more event handlers to be added to this
305 object during initialization.  T...</div><div class="long"><p>(optional) <p>A config object containing one or more event handlers to be added to this
306 object during initialization.  This should be a valid listeners config object as specified in the
307 <a href="Ext.data.Store.html#addListener" rel="Ext.data.Store#addListener" class="docClass">addListener</a> example for attaching multiple handlers at once.</p></p>
308
309 <br><p><b><u>DOM events from ExtJs <a href="Ext.Component.html" rel="Ext.Component" class="docClass">Components</a></u></b></p>
310
311
312 <br><p>While <i>some</i> ExtJs Component classes export selected DOM events (e.g. "click", "mouseover" etc), this
313
314
315 <p>is usually only done when extra value can be added. For example the <a href="Ext.view.View.html" rel="Ext.view.View" class="docClass">DataView</a>'s
316 <b><code><a href="Ext.view.View.html#click" rel="Ext.view.View#click" class="docClass">click</a></code></b> event passing the node clicked on. To access DOM
317 events directly from a child element of a Component, we need to specify the <code>element</code> option to
318 identify the Component property to add a DOM listener to:</p>
319
320 <pre><code>new Ext.panel.Panel({
321     width: 400,
322     height: 200,
323     dockedItems: [{
324         xtype: 'toolbar'
325     }],
326     listeners: {
327         click: {
328             element: 'el', //bind to the underlying el property on the panel
329             fn: function(){ console.log('click el'); }
330         },
331         dblclick: {
332             element: 'body', //bind to the underlying body property on the panel
333             fn: function(){ console.log('dblclick body'); }
334         }
335     }
336 });
337 </code></pre>
338
339
340 <p></p></p>
341 </div></div></div><div id="config-model" class="member ni"><a href="Ext.data.Store.html#config-model" rel="config-model" class="expand more"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.data.Store.html" class="definedIn docClass">Ext.data.Store</a><br/><a href="../source/Store2.html#Ext-data.Store-cfg-model" class="viewSource">view source</a></div><a name="model"></a><a name="config-model"></a><a href="Ext.data.Store.html#" rel="config-model" class="cls expand">model</a><span> : String</span></div><div class="description"><div class="short"><p>The <a href="Ext.data.Model.html" rel="Ext.data.Model" class="docClass">Ext.data.Model</a> associated with this store</p>
342 </div><div class="long"><p>The <a href="Ext.data.Model.html" rel="Ext.data.Model" class="docClass">Ext.data.Model</a> associated with this store</p>
343 </div></div></div><div id="config-proxy" class="member ni"><a href="Ext.data.Store.html#config-proxy" rel="config-proxy" class="expand more ar"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.data.Store.html" class="definedIn docClass">Ext.data.Store</a><br/><a href="../source/Store2.html#Ext-data.Store-cfg-proxy" class="viewSource">view source</a></div><a name="proxy"></a><a name="config-proxy"></a><a href="Ext.data.Store.html#" rel="config-proxy" class="cls expand">proxy</a><span> : String/Ext.data.proxy.Proxy/Object</span></div><div class="description"><div class="short">The Proxy to use for this Store. This can be either a string, a config
344 object or a Proxy instance - see setProxy for ...</div><div class="long"><p>The Proxy to use for this Store. This can be either a string, a config
345 object or a Proxy instance - see <a href="Ext.data.Store.html#setProxy" rel="Ext.data.Store#setProxy" class="docClass">setProxy</a> for details.</p>
346 </div></div></div><div id="config-purgePageCount" class="member ni"><a href="Ext.data.Store.html#config-purgePageCount" rel="config-purgePageCount" class="expand more ar"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.data.Store.html" class="definedIn docClass">Ext.data.Store</a><br/><a href="../source/Store2.html#Ext-data.Store-cfg-purgePageCount" class="viewSource">view source</a></div><a name="purgePageCount"></a><a name="config-purgePageCount"></a><a href="Ext.data.Store.html#" rel="config-purgePageCount" class="cls expand">purgePageCount</a><span> : Number</span></div><div class="description"><div class="short">The number of pages to keep in the cache before purging additional records. A value of 0 indicates to never purge the...</div><div class="long"><p>The number of pages to keep in the cache before purging additional records. A value of 0 indicates to never purge the prefetched data.
347 This option is only relevant when the <a href="Ext.data.Store.html#buffered" rel="Ext.data.Store#buffered" class="docClass">buffered</a> option is set to true.</p>
348 </div></div></div><div id="config-remoteFilter" class="member ni"><a href="Ext.data.Store.html#config-remoteFilter" rel="config-remoteFilter" class="expand more ar"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.data.Store.html" class="definedIn docClass">Ext.data.Store</a><br/><a href="../source/Store2.html#Ext-data.Store-cfg-remoteFilter" class="viewSource">view source</a></div><a name="remoteFilter"></a><a name="config-remoteFilter"></a><a href="Ext.data.Store.html#" rel="config-remoteFilter" class="cls expand">remoteFilter</a><span> : Boolean</span></div><div class="description"><div class="short">True to defer any filtering operation to the server. If false, filtering is done locally on the client. Defaults to f...</div><div class="long"><p>True to defer any filtering operation to the server. If false, filtering is done locally on the client. Defaults to <tt>false</tt>.</p>
349 </div></div></div><div id="config-remoteGroup" class="member ni"><a href="Ext.data.Store.html#config-remoteGroup" rel="config-remoteGroup" class="expand more ar"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.data.Store.html" class="definedIn docClass">Ext.data.Store</a><br/><a href="../source/Store2.html#Ext-data.Store-cfg-remoteGroup" class="viewSource">view source</a></div><a name="remoteGroup"></a><a name="config-remoteGroup"></a><a href="Ext.data.Store.html#" rel="config-remoteGroup" class="cls expand">remoteGroup</a><span> : Boolean</span></div><div class="description"><div class="short">True if the grouping should apply on the server side, false if it is local only (defaults to false).  If the
350 grouping...</div><div class="long"><p>True if the grouping should apply on the server side, false if it is local only (defaults to false).  If the
351 grouping is local, it can be applied immediately to the data.  If it is remote, then it will simply act as a
352 helper, automatically sending the grouping information to the server.</p>
353 </div></div></div><div id="config-remoteSort" class="member ni"><a href="Ext.data.Store.html#config-remoteSort" rel="config-remoteSort" class="expand more"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.data.Store.html" class="definedIn docClass">Ext.data.Store</a><br/><a href="../source/Store2.html#Ext-data.Store-cfg-remoteSort" class="viewSource">view source</a></div><a name="remoteSort"></a><a name="config-remoteSort"></a><a href="Ext.data.Store.html#" rel="config-remoteSort" class="cls expand">remoteSort</a><span> : Boolean</span></div><div class="description"><div class="short"><p>True to defer any sorting operation to the server. If false, sorting is done locally on the client. Defaults to <tt>false</tt>.</p>
354 </div><div class="long"><p>True to defer any sorting operation to the server. If false, sorting is done locally on the client. Defaults to <tt>false</tt>.</p>
355 </div></div></div><div id="config-sortOnFilter" class="member ni"><a href="Ext.data.Store.html#config-sortOnFilter" rel="config-sortOnFilter" class="expand more ar"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.data.Store.html" class="definedIn docClass">Ext.data.Store</a><br/><a href="../source/Store2.html#Ext-data.Store-cfg-sortOnFilter" class="viewSource">view source</a></div><a name="sortOnFilter"></a><a name="config-sortOnFilter"></a><a href="Ext.data.Store.html#" rel="config-sortOnFilter" class="cls expand">sortOnFilter</a><span> : Boolean</span></div><div class="description"><div class="short">For local filtering only, causes sort to be called whenever filter is called,
356 causing the sorters to be reapplied aft...</div><div class="long"><p>For local filtering only, causes <a href="Ext.data.Store.html#sort" rel="Ext.data.Store#sort" class="docClass">sort</a> to be called whenever <a href="Ext.data.Store.html#filter" rel="Ext.data.Store#filter" class="docClass">filter</a> is called,
357 causing the sorters to be reapplied after filtering. Defaults to true</p>
358 </div></div></div><div id="config-storeId" class="member inherited"><a href="Ext.data.Store.html#config-storeId" rel="config-storeId" class="expand more ar"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.data.AbstractStore.html" class="definedIn docClass">Ext.data.AbstractStore</a><br/><a href="../source/AbstractStore.html#Ext-data.AbstractStore-cfg-storeId" class="viewSource">view source</a></div><a name="storeId"></a><a name="config-storeId"></a><a href="Ext.data.Store.html#" rel="config-storeId" class="cls expand">storeId</a><span> : String</span></div><div class="description"><div class="short">Optional unique identifier for this store. If present, this Store will be registered with
359 the Ext.data.StoreManager, ...</div><div class="long"><p>Optional unique identifier for this store. If present, this Store will be registered with
360 the <a href="Ext.data.StoreManager.html" rel="Ext.data.StoreManager" class="docClass">Ext.data.StoreManager</a>, making it easy to reuse elsewhere. Defaults to undefined.</p>
361 </div></div></div></div><div class="m-properties"><a name="properties"></a><div class="definedBy">Defined By</div><h3 class="prp p">Properties</h3><div id="property-" class="member f ni"><a href="Ext.data.Store.html#property-" rel="property-" class="expand more ar"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.data.Store.html" class="definedIn docClass">Ext.data.Store</a><br/><a href="../source/Store2.html#Ext-data.Store-property-" class="viewSource">view source</a></div><a></a><a name="property-"></a><a href="Ext.data.Store.html#" rel="property-" class="cls expand"></a><span> : Object</span></div><div class="description"><div class="short">Loop over each record returned from the server. Assume they are
362 returned in order of how they were sent. If we find a...</div><div class="long"><p>Loop over each record returned from the server. Assume they are
363 returned in order of how they were sent. If we find a matching
364 record, replace it with the newly created one.</p>
365 </div></div></div><div id="property-batchUpdateMode" class="member inherited"><a href="Ext.data.Store.html#property-batchUpdateMode" rel="property-batchUpdateMode" class="expand more ar"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.data.AbstractStore.html" class="definedIn docClass">Ext.data.AbstractStore</a><br/><a href="../source/AbstractStore.html#Ext-data.AbstractStore-property-batchUpdateMode" class="viewSource">view source</a></div><a name="batchUpdateMode"></a><a name="property-batchUpdateMode"></a><a href="Ext.data.Store.html#" rel="property-batchUpdateMode" class="cls expand">batchUpdateMode</a><span> : String</span></div><div class="description"><div class="short">Sets the updating behavior based on batch synchronization. 'operation' (the default) will update the Store's
366 internal...</div><div class="long"><p>Sets the updating behavior based on batch synchronization. 'operation' (the default) will update the Store's
367 internal representation of the data after each operation of the batch has completed, 'complete' will wait until
368 the entire batch has been completed before updating the Store's data. 'complete' is a good choice for local
369 storage proxies, 'operation' is better for remote proxies, where there is a comparatively high latency.</p>
370 </div></div></div><div id="property-currentPage" class="member ni"><a href="Ext.data.Store.html#property-currentPage" rel="property-currentPage" class="expand more"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.data.Store.html" class="definedIn docClass">Ext.data.Store</a><br/><a href="../source/Store2.html#Ext-data.Store-property-currentPage" class="viewSource">view source</a></div><a name="currentPage"></a><a name="property-currentPage"></a><a href="Ext.data.Store.html#" rel="property-currentPage" class="cls expand">currentPage</a><span> : Number</span></div><div class="description"><div class="short"><p>The page that the Store has most recently loaded (see <a href="Ext.data.Store.html#loadPage" rel="Ext.data.Store#loadPage" class="docClass">loadPage</a>)</p>
371 </div><div class="long"><p>The page that the Store has most recently loaded (see <a href="Ext.data.Store.html#loadPage" rel="Ext.data.Store#loadPage" class="docClass">loadPage</a>)</p>
372 </div></div></div><div id="property-data" class="member ni"><a href="Ext.data.Store.html#property-data" rel="property-data" class="expand more"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.data.Store.html" class="definedIn docClass">Ext.data.Store</a><br/><a href="../source/Store2.html#Ext-data.Store-property-data" class="viewSource">view source</a></div><a name="data"></a><a name="property-data"></a><a href="Ext.data.Store.html#" rel="property-data" class="cls expand">data</a><span> : Ext.util.MixedCollection</span></div><div class="description"><div class="short"><p>The MixedCollection that holds this store's local cache of records</p>
373 </div><div class="long"><p>The MixedCollection that holds this store's local cache of records</p>
374 </div></div></div><div id="property-defaultProxyType" class="member inherited"><a href="Ext.data.Store.html#property-defaultProxyType" rel="property-defaultProxyType" class="expand more"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.data.AbstractStore.html" class="definedIn docClass">Ext.data.AbstractStore</a><br/><a href="../source/AbstractStore.html#Ext-data.AbstractStore-property-defaultProxyType" class="viewSource">view source</a></div><a name="defaultProxyType"></a><a name="property-defaultProxyType"></a><a href="Ext.data.Store.html#" rel="property-defaultProxyType" class="cls expand">defaultProxyType</a><span> : String</span></div><div class="description"><div class="short"><p>The string type of the Proxy to create if none is specified. This defaults to creating a <a href="Ext.data.proxy.Memory.html" rel="Ext.data.proxy.Memory" class="docClass">memory proxy</a>.</p>
375 </div><div class="long"><p>The string type of the Proxy to create if none is specified. This defaults to creating a <a href="Ext.data.proxy.Memory.html" rel="Ext.data.proxy.Memory" class="docClass">memory proxy</a>.</p>
376 </div></div></div><div id="property-defaultSortDirection" class="member inherited"><a href="Ext.data.Store.html#property-defaultSortDirection" rel="property-defaultSortDirection" class="expand more"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.util.Sortable.html" class="definedIn docClass">Ext.util.Sortable</a><br/><a href="../source/Sortable.html#Ext-util.Sortable-property-defaultSortDirection" class="viewSource">view source</a></div><a name="defaultSortDirection"></a><a name="property-defaultSortDirection"></a><a href="Ext.data.Store.html#" rel="property-defaultSortDirection" class="cls expand">defaultSortDirection</a><span> : String</span></div><div class="description"><div class="short"><p>The default sort direction to use if one is not specified (defaults to "ASC")</p>
377 </div><div class="long"><p>The default sort direction to use if one is not specified (defaults to "ASC")</p>
378 </div></div></div><div id="property-filterOnLoad" class="member inherited"><a href="Ext.data.Store.html#property-filterOnLoad" rel="property-filterOnLoad" class="expand more ar"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.data.AbstractStore.html" class="definedIn docClass">Ext.data.AbstractStore</a><br/><a href="../source/AbstractStore.html#Ext-data.AbstractStore-property-filterOnLoad" class="viewSource">view source</a></div><a name="filterOnLoad"></a><a name="property-filterOnLoad"></a><a href="Ext.data.Store.html#" rel="property-filterOnLoad" class="cls expand">filterOnLoad</a><span> : Boolean</span></div><div class="description"><div class="short">If true, any filters attached to this Store will be run after loading data, before the datachanged event is fired.
379 De...</div><div class="long"><p>If true, any filters attached to this Store will be run after loading data, before the datachanged event is fired.
380 Defaults to true, ignored if <a href="Ext.data.Store.html#remoteFilter" rel="Ext.data.Store#remoteFilter" class="docClass">remoteFilter</a> is true</p>
381 </div></div></div><div id="property-filters" class="member inherited"><a href="Ext.data.Store.html#property-filters" rel="property-filters" class="expand more"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.data.AbstractStore.html" class="definedIn docClass">Ext.data.AbstractStore</a><br/><a href="../source/AbstractStore.html#Ext-data.AbstractStore-property-filters" class="viewSource">view source</a></div><a name="filters"></a><a name="property-filters"></a><a href="Ext.data.Store.html#" rel="property-filters" class="cls expand">filters</a><span> : Ext.util.MixedCollection</span></div><div class="description"><div class="short"><p>The collection of <a href="Ext.util.Filter.html" rel="Ext.util.Filter" class="docClass">Filters</a> currently applied to this Store</p>
382 </div><div class="long"><p>The collection of <a href="Ext.util.Filter.html" rel="Ext.util.Filter" class="docClass">Filters</a> currently applied to this Store</p>
383 </div></div></div><div id="property-groupDir" class="member ni"><a href="Ext.data.Store.html#property-groupDir" rel="property-groupDir" class="expand more"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.data.Store.html" class="definedIn docClass">Ext.data.Store</a><br/><a href="../source/Store2.html#Ext-data.Store-property-groupDir" class="viewSource">view source</a></div><a name="groupDir"></a><a name="property-groupDir"></a><a href="Ext.data.Store.html#" rel="property-groupDir" class="cls expand">groupDir</a><span> : String</span></div><div class="description"><div class="short"><p>The direction in which sorting should be applied when grouping. Defaults to "ASC" - the other supported value is "DESC"</p>
384 </div><div class="long"><p>The direction in which sorting should be applied when grouping. Defaults to "ASC" - the other supported value is "DESC"</p>
385 </div></div></div><div id="property-groupField" class="member ni"><a href="Ext.data.Store.html#property-groupField" rel="property-groupField" class="expand more ar"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.data.Store.html" class="definedIn docClass">Ext.data.Store</a><br/><a href="../source/Store2.html#Ext-data.Store-property-groupField" class="viewSource">view source</a></div><a name="groupField"></a><a name="property-groupField"></a><a href="Ext.data.Store.html#" rel="property-groupField" class="cls expand">groupField</a><span> : String</span></div><div class="description"><div class="short">The (optional) field by which to group data in the store. Internally, grouping is very similar to sorting - the
386 group...</div><div class="long"><p>The (optional) field by which to group data in the store. Internally, grouping is very similar to sorting - the
387 groupField and <a href="Ext.data.Store.html#groupDir" rel="Ext.data.Store#groupDir" class="docClass">groupDir</a> are injected as the first sorter (see <a href="Ext.data.Store.html#sort" rel="Ext.data.Store#sort" class="docClass">sort</a>). Stores support a single
388 level of grouping, and groups can be fetched via the <a href="Ext.data.Store.html#getGroups" rel="Ext.data.Store#getGroups" class="docClass">getGroups</a> method.</p>
389 </div></div></div><div id="property-groupers" class="member ni"><a href="Ext.data.Store.html#property-groupers" rel="property-groupers" class="expand more"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.data.Store.html" class="definedIn docClass">Ext.data.Store</a><br/><a href="../source/Store2.html#Ext-data.Store-property-groupers" class="viewSource">view source</a></div><a name="groupers"></a><a name="property-groupers"></a><a href="Ext.data.Store.html#" rel="property-groupers" class="cls expand">groupers</a><span> : Ext.util.MixedCollection</span></div><div class="description"><div class="short"><p>The collection of <a href="Ext.util.Grouper.html" rel="Ext.util.Grouper" class="docClass">Groupers</a> currently applied to this Store</p>
390 </div><div class="long"><p>The collection of <a href="Ext.util.Grouper.html" rel="Ext.util.Grouper" class="docClass">Groupers</a> currently applied to this Store</p>
391 </div></div></div><div id="property-isDestroyed" class="member inherited"><a href="Ext.data.Store.html#property-isDestroyed" rel="property-isDestroyed" class="expand more ar"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.data.AbstractStore.html" class="definedIn docClass">Ext.data.AbstractStore</a><br/><a href="../source/AbstractStore.html#Ext-data.AbstractStore-property-isDestroyed" class="viewSource">view source</a></div><a name="isDestroyed"></a><a name="property-isDestroyed"></a><a href="Ext.data.Store.html#" rel="property-isDestroyed" class="cls expand">isDestroyed</a><span> : Boolean</span></div><div class="description"><div class="short">True if the Store has already been destroyed via destroyStore. If this is true, the reference to Store should be dele...</div><div class="long"><p>True if the Store has already been destroyed via <a href="Ext.data.Store.html#destroyStore" rel="Ext.data.Store#destroyStore" class="docClass">destroyStore</a>. If this is true, the reference to Store should be deleted
392 as it will not function correctly any more.</p>
393 </div></div></div><div id="property-isSortable" class="member inherited"><a href="Ext.data.Store.html#property-isSortable" rel="property-isSortable" class="expand more"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.util.Sortable.html" class="definedIn docClass">Ext.util.Sortable</a><br/><a href="../source/Sortable.html#Ext-util.Sortable-property-isSortable" class="viewSource">view source</a></div><a name="isSortable"></a><a name="property-isSortable"></a><a href="Ext.data.Store.html#" rel="property-isSortable" class="cls expand">isSortable</a><span> : Boolean</span></div><div class="description"><div class="short"><p>Flag denoting that this object is sortable. Always true.</p>
394 </div><div class="long"><p>Flag denoting that this object is sortable. Always true.</p>
395 </div></div></div><div id="property-pageSize" class="member ni"><a href="Ext.data.Store.html#property-pageSize" rel="property-pageSize" class="expand more ar"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.data.Store.html" class="definedIn docClass">Ext.data.Store</a><br/><a href="../source/Store2.html#Ext-data.Store-property-pageSize" class="viewSource">view source</a></div><a name="pageSize"></a><a name="property-pageSize"></a><a href="Ext.data.Store.html#" rel="property-pageSize" class="cls expand">pageSize</a><span> : Number</span></div><div class="description"><div class="short">The number of records considered to form a 'page'. This is used to power the built-in
396 paging using the nextPage and p...</div><div class="long"><p>The number of records considered to form a 'page'. This is used to power the built-in
397 paging using the nextPage and previousPage functions. Defaults to 25.</p>
398 </div></div></div><div id="property-removeAll" class="member inherited"><a href="Ext.data.Store.html#property-removeAll" rel="property-removeAll" class="expand more ar"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.data.AbstractStore.html" class="definedIn docClass">Ext.data.AbstractStore</a><br/><a href="../source/AbstractStore.html#Ext-data.AbstractStore-property-removeAll" class="viewSource">view source</a></div><a name="removeAll"></a><a name="property-removeAll"></a><a href="Ext.data.Store.html#" rel="property-removeAll" class="cls expand">removeAll</a><span> : Object</span></div><div class="description"><div class="short">Removes all records from the store. This method does a "fast remove",
399 individual remove events are not called. The cl...</div><div class="long"><p>Removes all records from the store. This method does a "fast remove",
400 individual remove events are not called. The <a href="Ext.data.Store.html#clear" rel="Ext.data.Store#clear" class="docClass">clear</a> event is
401 fired upon completion.</p>
402 </div></div></div><div id="property-snapshot" class="member ni"><a href="Ext.data.Store.html#property-snapshot" rel="property-snapshot" class="expand more ar"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.data.Store.html" class="definedIn docClass">Ext.data.Store</a><br/><a href="../source/Store2.html#Ext-data.Store-property-snapshot" class="viewSource">view source</a></div><a name="snapshot"></a><a name="property-snapshot"></a><a href="Ext.data.Store.html#" rel="property-snapshot" class="cls expand">snapshot</a><span> : Ext.util.MixedCollection</span></div><div class="description"><div class="short">A pristine (unfiltered) collection of the records in this store. This is used to reinstate
403 records when a filter is r...</div><div class="long"><p>A pristine (unfiltered) collection of the records in this store. This is used to reinstate
404 records when a filter is removed or changed</p>
405 </div></div></div><div id="property-sortOnLoad" class="member inherited"><a href="Ext.data.Store.html#property-sortOnLoad" rel="property-sortOnLoad" class="expand more ar"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.data.AbstractStore.html" class="definedIn docClass">Ext.data.AbstractStore</a><br/><a href="../source/AbstractStore.html#Ext-data.AbstractStore-property-sortOnLoad" class="viewSource">view source</a></div><a name="sortOnLoad"></a><a name="property-sortOnLoad"></a><a href="Ext.data.Store.html#" rel="property-sortOnLoad" class="cls expand">sortOnLoad</a><span> : Boolean</span></div><div class="description"><div class="short">If true, any sorters attached to this Store will be run after loading data, before the datachanged event is fired.
406 De...</div><div class="long"><p>If true, any sorters attached to this Store will be run after loading data, before the datachanged event is fired.
407 Defaults to true, igored if <a href="Ext.data.Store.html#remoteSort" rel="Ext.data.Store#remoteSort" class="docClass">remoteSort</a> is true</p>
408 </div></div></div><div id="property-sortRoot" class="member inherited"><a href="Ext.data.Store.html#property-sortRoot" rel="property-sortRoot" class="expand more"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.util.Sortable.html" class="definedIn docClass">Ext.util.Sortable</a><br/><a href="../source/Sortable.html#Ext-util.Sortable-property-sortRoot" class="viewSource">view source</a></div><a name="sortRoot"></a><a name="property-sortRoot"></a><a href="Ext.data.Store.html#" rel="property-sortRoot" class="cls expand">sortRoot</a><span> : String</span></div><div class="description"><div class="short"><p>The property in each item that contains the data to sort. (defaults to null)</p>
409 </div><div class="long"><p>The property in each item that contains the data to sort. (defaults to null)</p>
410 </div></div></div><div id="property-sorters" class="member inherited"><a href="Ext.data.Store.html#property-sorters" rel="property-sorters" class="expand more"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.util.Sortable.html" class="definedIn docClass">Ext.util.Sortable</a><br/><a href="../source/Sortable.html#Ext-util.Sortable-property-sorters" class="viewSource">view source</a></div><a name="sorters"></a><a name="property-sorters"></a><a href="Ext.data.Store.html#" rel="property-sorters" class="cls expand">sorters</a><span> : Ext.util.MixedCollection</span></div><div class="description"><div class="short"><p>The collection of <a href="Ext.util.Sorter.html" rel="Ext.util.Sorter" class="docClass">Sorters</a> currently applied to this Store</p>
411 </div><div class="long"><p>The collection of <a href="Ext.util.Sorter.html" rel="Ext.util.Sorter" class="docClass">Sorters</a> currently applied to this Store</p>
412 </div></div></div></div><div class="m-methods"><a name="methods"></a><div class="definedBy">Defined By</div><h3 class="mth p">Methods</h3><div id="method-Store" class="member f ni"><a href="Ext.data.Store.html#method-Store" rel="method-Store" class="expand more ar"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.data.Store.html" class="definedIn docClass">Ext.data.Store</a><br/><a href="../source/Store2.html#Ext-data.Store-method-constructor" class="viewSource">view source</a></div><a name="Store"></a><a name="method-Store"></a><a href="Ext.data.Store.html#" rel="method-Store" class="cls expand">Store</a>(
413 <span class="pre">Object config</span>)
414  : void</div><div class="description"><div class="short"><p>&nbsp;</p></div><div class="long">
415 <h3 class="pa">Parameters</h3><ul><li><span class="pre">config</span> : Object<div class="sub-desc"><p>Optional config object</p>
416 </div></li></ul><h3 class="pa">Returns</h3><ul><li><span class="pre">void</span>&nbsp; &nbsp;
417 </li></ul></div></div></div><div id="method-add" class="member ni"><a href="Ext.data.Store.html#method-add" rel="method-add" class="expand more ar"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.data.Store.html" class="definedIn docClass">Ext.data.Store</a><br/><a href="../source/Store2.html#Ext-data.Store-method-add" class="viewSource">view source</a></div><a name="add"></a><a name="method-add"></a><a href="Ext.data.Store.html#" rel="method-add" class="cls expand">add</a>(
418 <span class="pre">Object data</span>)
419  : Array</div><div class="description"><div class="short">Adds Model instances to the Store by instantiating them based on a JavaScript object. When adding already-
420 instantiat...</div><div class="long"><p>Adds Model instances to the Store by instantiating them based on a JavaScript object. When adding already-
421 instantiated Models, use <a href="Ext.data.Store.html#insert" rel="Ext.data.Store#insert" class="docClass">insert</a> instead. The instances will be added at the end of the existing collection.
422 This method accepts either a single argument array of Model instances or any number of model instance arguments.
423 Sample usage:</p>
424
425 <pre><code>myStore.add({some: 'data'}, {some: 'other data'});
426 </code></pre>
427
428 <h3 class="pa">Parameters</h3><ul><li><span class="pre">data</span> : Object<div class="sub-desc"><p>The data for each model</p>
429 </div></li></ul><h3 class="pa">Returns</h3><ul><li><span class="pre">Array</span>&nbsp; &nbsp;<p>The array of newly created model instances</p>
430 </li></ul></div></div></div><div id="method-addEvents" class="member inherited"><a href="Ext.data.Store.html#method-addEvents" rel="method-addEvents" class="expand more ar"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.util.Observable.html" class="definedIn docClass">Ext.util.Observable</a><br/><a href="../source/Observable.html#Ext-util.Observable-method-addEvents" class="viewSource">view source</a></div><a name="addEvents"></a><a name="method-addEvents"></a><a href="Ext.data.Store.html#" rel="method-addEvents" class="cls expand">addEvents</a>(
431 <span class="pre">Object/String o, String </span>)
432  : void</div><div class="description"><div class="short"><p>Adds the specified events to the list of events which this Observable may fire.</p>
433 </div><div class="long"><p>Adds the specified events to the list of events which this Observable may fire.</p>
434 <h3 class="pa">Parameters</h3><ul><li><span class="pre">o</span> : Object/String<div class="sub-desc"><p>Either an object with event names as properties with a value of <code>true</code>
435 or the first event name string if multiple event names are being passed as separate parameters.</p>
436 </div></li><li><span class="pre"></span> : String<div class="sub-desc"><p>[additional] Optional additional event names if multiple event names are being passed as separate parameters.
437 Usage:</p>
438
439 <pre><code>this.addEvents('storeloaded', 'storecleared');
440 </code></pre>
441
442 </div></li></ul><h3 class="pa">Returns</h3><ul><li><span class="pre">void</span>&nbsp; &nbsp;
443 </li></ul></div></div></div><div id="method-addListener" class="member inherited"><a href="Ext.data.Store.html#method-addListener" rel="method-addListener" class="expand more ar"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.util.Observable.html" class="definedIn docClass">Ext.util.Observable</a><br/><a href="../source/Observable.html#Ext-util.Observable-method-addListener" class="viewSource">view source</a></div><a name="addListener"></a><a name="method-addListener"></a><a href="Ext.data.Store.html#" rel="method-addListener" class="cls expand">addListener</a>(
444 <span class="pre">String eventName, Function handler, [Object scope], [Object options]</span>)
445  : void</div><div class="description"><div class="short"><p>Appends an event handler to this object.</p>
446 </div><div class="long"><p>Appends an event handler to this object.</p>
447 <h3 class="pa">Parameters</h3><ul><li><span class="pre">eventName</span> : String<div class="sub-desc"><p>The name of the event to listen for. May also be an object who's property names are event names. See</p>
448 </div></li><li><span class="pre">handler</span> : Function<div class="sub-desc"><p>The method the event invokes.</p>
449 </div></li><li><span class="pre">scope</span> : Object<div class="sub-desc"><p>(optional) The scope (<code><b>this</b></code> reference) in which the handler function is executed.
450 <b>If omitted, defaults to the object which fired the event.</b></p>
451 </div></li><li><span class="pre">options</span> : Object<div class="sub-desc"><p>(optional) An object containing handler configuration.
452 properties. This may contain any of the following properties:<ul>
453 <li><b>scope</b> : Object<div class="sub-desc">The scope (<code><b>this</b></code> reference) in which the handler function is executed.
454 <b>If omitted, defaults to the object which fired the event.</b></div></li>
455 <li><b>delay</b> : Number<div class="sub-desc">The number of milliseconds to delay the invocation of the handler after the event fires.</div></li>
456 <li><b>single</b> : Boolean<div class="sub-desc">True to add a handler to handle just the next firing of the event, and then remove itself.</div></li>
457 <li><b>buffer</b> : Number<div class="sub-desc">Causes the handler to be scheduled to run in an <a href="Ext.util.DelayedTask.html" rel="Ext.util.DelayedTask" class="docClass">Ext.util.DelayedTask</a> delayed
458 by the specified number of milliseconds. If the event fires again within that time, the original
459 handler is <em>not</em> invoked, but the new handler is scheduled in its place.</div></li>
460 <li><b>target</b> : Observable<div class="sub-desc">Only call the handler if the event was fired on the target Observable, <i>not</i>
461 if the event was bubbled up from a child Observable.</div></li>
462 <li><b>element</b> : String<div class="sub-desc"><b>This option is only valid for listeners bound to <a href="Ext.Component.html" rel="Ext.Component" class="docClass">Components</a>.</b>
463 The name of a Component property which references an element to add a listener to.</p>
464
465 <p>This option is useful during Component construction to add DOM event listeners to elements of <a href="Ext.Component.html" rel="Ext.Component" class="docClass">Components</a> which
466 will exist only after the Component is rendered. For example, to add a click listener to a Panel's body:
467 <pre><code>new Ext.panel.Panel({
468     title: 'The title',
469     listeners: {
470         click: this.handlePanelClick,
471         element: 'body'
472     }
473 });
474 </code></pre></p>
475
476
477 <p>When added in this way, the options available are the options applicable to <a href="Ext.core.Element.html#addListener" rel="Ext.core.Element#addListener" class="docClass">Ext.core.Element.addListener</a></p>
478
479
480 <p></div></li>
481 </ul><br></p>
482
483 <p>
484 <b>Combining Options</b><br>
485 Using the options argument, it is possible to combine different types of listeners:<br>
486 <br>
487 A delayed, one-time listener.
488 <pre><code>myPanel.on('hide', this.handleClick, this, {
489 single: true,
490 delay: 100
491 });</code></pre>
492 <p>
493 <b>Attaching multiple handlers in 1 call</b><br>
494 The method also allows for a single argument to be passed which is a config object containing properties
495 which specify multiple events. For example:
496 <pre><code>myGridPanel.on({
497     cellClick: this.onCellClick,
498     mouseover: this.onMouseOver,
499     mouseout: this.onMouseOut,
500     scope: this // Important. Ensure "this" is correct during handler execution
501 });
502 </code></pre>.
503 <p>
504
505 </div></li></ul><h3 class="pa">Returns</h3><ul><li><span class="pre">void</span>&nbsp; &nbsp;
506 </li></ul></div></div></div><div id="method-addManagedListener" class="member inherited"><a href="Ext.data.Store.html#method-addManagedListener" rel="method-addManagedListener" class="expand more ar"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.util.Observable.html" class="definedIn docClass">Ext.util.Observable</a><br/><a href="../source/Observable.html#Ext-util.Observable-method-addManagedListener" class="viewSource">view source</a></div><a name="addManagedListener"></a><a name="method-addManagedListener"></a><a href="Ext.data.Store.html#" rel="method-addManagedListener" class="cls expand">addManagedListener</a>(
507 <span class="pre">Observable/Element item, Object/String ename, Function fn, Object scope, Object opt</span>)
508  : void</div><div class="description"><div class="short"><p>Adds listeners to any Observable object (or Element) which are automatically removed when this Component
509 is destroyed.
510
511 </div><div class="long"><p>Adds listeners to any Observable object (or Element) which are automatically removed when this Component
512 is destroyed.
513
514 <h3 class="pa">Parameters</h3><ul><li><span class="pre">item</span> : Observable/Element<div class="sub-desc"><p>The item to which to add a listener/listeners.</p>
515 </div></li><li><span class="pre">ename</span> : Object/String<div class="sub-desc"><p>The event name, or an object containing event name properties.</p>
516 </div></li><li><span class="pre">fn</span> : Function<div class="sub-desc"><p>Optional. If the <code>ename</code> parameter was an event name, this
517 is the handler function.</p>
518 </div></li><li><span class="pre">scope</span> : Object<div class="sub-desc"><p>Optional. If the <code>ename</code> parameter was an event name, this
519 is the scope (<code>this</code> reference) in which the handler function is executed.</p>
520 </div></li><li><span class="pre">opt</span> : Object<div class="sub-desc"><p>Optional. If the <code>ename</code> parameter was an event name, this
521 is the <a href="Ext.util.Observable.html#addListener" rel="Ext.util.Observable#addListener" class="docClass">addListener</a> options.</p>
522 </div></li></ul><h3 class="pa">Returns</h3><ul><li><span class="pre">void</span>&nbsp; &nbsp;
523 </li></ul></div></div></div><div id="method-aggregate" class="member ni"><a href="Ext.data.Store.html#method-aggregate" rel="method-aggregate" class="expand more ar"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.data.Store.html" class="definedIn docClass">Ext.data.Store</a><br/><a href="../source/Store2.html#Ext-data.Store-method-aggregate" class="viewSource">view source</a></div><a name="aggregate"></a><a name="method-aggregate"></a><a href="Ext.data.Store.html#" rel="method-aggregate" class="cls expand">aggregate</a>(
524 <span class="pre">Function fn, [Object scope], Boolean grouped, [Array args]</span>)
525  : Object</div><div class="description"><div class="short"><p>Runs the aggregate function for all the records in the store.</p>
526 </div><div class="long"><p>Runs the aggregate function for all the records in the store.</p>
527 <h3 class="pa">Parameters</h3><ul><li><span class="pre">fn</span> : Function<div class="sub-desc"><p>The function to execute. The function is called with a single parameter,
528 an array of records for that group.</p>
529 </div></li><li><span class="pre">scope</span> : Object<div class="sub-desc"><p>(optional) The scope to execute the function in. Defaults to the store.</p>
530 </div></li><li><span class="pre">grouped</span> : Boolean<div class="sub-desc"><p>(Optional) True to perform the operation for each group
531 in the store. The value returned will be an object literal with the key being the group
532 name and the group average being the value. The grouped parameter is only honored if
533 the store has a groupField.</p>
534 </div></li><li><span class="pre">args</span> : Array<div class="sub-desc"><p>(optional) Any arguments to append to the function call</p>
535 </div></li></ul><h3 class="pa">Returns</h3><ul><li><span class="pre">Object</span>&nbsp; &nbsp;<p>An object literal with the group names and their appropriate values.</p>
536 </li></ul></div></div></div><div id="method-average" class="member ni"><a href="Ext.data.Store.html#method-average" rel="method-average" class="expand more ar"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.data.Store.html" class="definedIn docClass">Ext.data.Store</a><br/><a href="../source/Store2.html#Ext-data.Store-method-average" class="viewSource">view source</a></div><a name="average"></a><a name="method-average"></a><a href="Ext.data.Store.html#" rel="method-average" class="cls expand">average</a>(
537 <span class="pre">String field, Boolean grouped</span>)
538  : Mixed/undefined</div><div class="description"><div class="short"><p>Gets the average value in the store.</p>
539 </div><div class="long"><p>Gets the average value in the store.</p>
540 <h3 class="pa">Parameters</h3><ul><li><span class="pre">field</span> : String<div class="sub-desc"><p>The field in each record</p>
541 </div></li><li><span class="pre">grouped</span> : Boolean<div class="sub-desc"><p>(Optional) True to perform the operation for each group
542 in the store. The value returned will be an object literal with the key being the group
543 name and the group average being the value. The grouped parameter is only honored if
544 the store has a groupField.</p>
545 </div></li></ul><h3 class="pa">Returns</h3><ul><li><span class="pre">Mixed/undefined</span>&nbsp; &nbsp;<p>The average value, if no items exist, 0.</p>
546 </li></ul></div></div></div><div id="method-capture" class="member inherited"><a href="Ext.data.Store.html#method-capture" rel="method-capture" class="expand more ar"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.util.Observable.html" class="definedIn docClass">Ext.util.Observable</a><br/><a href="../source/Observable.html#Ext-util.Observable-method-capture" class="viewSource">view source</a></div><a name="capture"></a><a name="method-capture"></a><a href="Ext.data.Store.html#" rel="method-capture" class="cls expand">capture</a>(
547 <span class="pre">Observable o, Function fn, [Object scope]</span>)
548  : void</div><div class="description"><div class="short">Starts capture on the specified Observable. All events will be passed
549 to the supplied function with the event name + ...</div><div class="long"><p>Starts capture on the specified Observable. All events will be passed
550 to the supplied function with the event name + standard signature of the event
551 <b>before</b> the event is fired. If the supplied function returns false,
552 the event will not fire.</p>
553 <h3 class="pa">Parameters</h3><ul><li><span class="pre">o</span> : Observable<div class="sub-desc"><p>The Observable to capture events from.</p>
554 </div></li><li><span class="pre">fn</span> : Function<div class="sub-desc"><p>The function to call when an event is fired.</p>
555 </div></li><li><span class="pre">scope</span> : Object<div class="sub-desc"><p>(optional) The scope (<code>this</code> reference) in which the function is executed. Defaults to the Observable firing the event.</p>
556 </div></li></ul><h3 class="pa">Returns</h3><ul><li><span class="pre">void</span>&nbsp; &nbsp;
557 </li></ul></div></div></div><div id="method-clearFilter" class="member ni"><a href="Ext.data.Store.html#method-clearFilter" rel="method-clearFilter" class="expand more ar"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.data.Store.html" class="definedIn docClass">Ext.data.Store</a><br/><a href="../source/Store2.html#Ext-data.Store-method-clearFilter" class="viewSource">view source</a></div><a name="clearFilter"></a><a name="method-clearFilter"></a><a href="Ext.data.Store.html#" rel="method-clearFilter" class="cls expand">clearFilter</a>(
558 <span class="pre">Boolean suppressEvent</span>)
559  : void</div><div class="description"><div class="short"><p>Revert to a view of the Record cache with no filtering applied.</p>
560 </div><div class="long"><p>Revert to a view of the Record cache with no filtering applied.</p>
561 <h3 class="pa">Parameters</h3><ul><li><span class="pre">suppressEvent</span> : Boolean<div class="sub-desc"><p>If <tt>true</tt> the filter is cleared silently without firing the
562 <a href="Ext.data.Store.html#datachanged" rel="Ext.data.Store#datachanged" class="docClass">datachanged</a> event.</p>
563 </div></li></ul><h3 class="pa">Returns</h3><ul><li><span class="pre">void</span>&nbsp; &nbsp;
564 </li></ul></div></div></div><div id="method-clearGrouping" class="member ni"><a href="Ext.data.Store.html#method-clearGrouping" rel="method-clearGrouping" class="expand more ar"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.data.Store.html" class="definedIn docClass">Ext.data.Store</a><br/><a href="../source/Store2.html#Ext-data.Store-method-clearGrouping" class="viewSource">view source</a></div><a name="clearGrouping"></a><a name="method-clearGrouping"></a><a href="Ext.data.Store.html#" rel="method-clearGrouping" class="cls expand">clearGrouping</a> : void</div><div class="description"><div class="short"><p>Clear any groupers in the store</p>
565 </div><div class="long"><p>Clear any groupers in the store</p>
566 <h3 class="pa">Returns</h3><ul><li><span class="pre">void</span>&nbsp; &nbsp;
567 </li></ul></div></div></div><div id="method-clearListeners" class="member inherited"><a href="Ext.data.Store.html#method-clearListeners" rel="method-clearListeners" class="expand more ar"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.util.Observable.html" class="definedIn docClass">Ext.util.Observable</a><br/><a href="../source/Observable.html#Ext-util.Observable-method-clearListeners" class="viewSource">view source</a></div><a name="clearListeners"></a><a name="method-clearListeners"></a><a href="Ext.data.Store.html#" rel="method-clearListeners" class="cls expand">clearListeners</a> : void</div><div class="description"><div class="short"><p>Removes all listeners for this object including the managed listeners</p>
568 </div><div class="long"><p>Removes all listeners for this object including the managed listeners</p>
569 <h3 class="pa">Returns</h3><ul><li><span class="pre">void</span>&nbsp; &nbsp;
570 </li></ul></div></div></div><div id="method-clearManagedListeners" class="member inherited"><a href="Ext.data.Store.html#method-clearManagedListeners" rel="method-clearManagedListeners" class="expand more ar"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.util.Observable.html" class="definedIn docClass">Ext.util.Observable</a><br/><a href="../source/Observable.html#Ext-util.Observable-method-clearManagedListeners" class="viewSource">view source</a></div><a name="clearManagedListeners"></a><a name="method-clearManagedListeners"></a><a href="Ext.data.Store.html#" rel="method-clearManagedListeners" class="cls expand">clearManagedListeners</a> : void</div><div class="description"><div class="short"><p>Removes all managed listeners for this object.</p>
571 </div><div class="long"><p>Removes all managed listeners for this object.</p>
572 <h3 class="pa">Returns</h3><ul><li><span class="pre">void</span>&nbsp; &nbsp;
573 </li></ul></div></div></div><div id="method-collect" class="member ni"><a href="Ext.data.Store.html#method-collect" rel="method-collect" class="expand more ar"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.data.Store.html" class="definedIn docClass">Ext.data.Store</a><br/><a href="../source/Store2.html#Ext-data.Store-method-collect" class="viewSource">view source</a></div><a name="collect"></a><a name="method-collect"></a><a href="Ext.data.Store.html#" rel="method-collect" class="cls expand">collect</a>(
574 <span class="pre">String dataIndex, [Boolean allowNull], [Boolean bypassFilter]</span>)
575  : Array</div><div class="description"><div class="short"><p>Collects unique values for a particular dataIndex from this store.</p>
576 </div><div class="long"><p>Collects unique values for a particular dataIndex from this store.</p>
577 <h3 class="pa">Parameters</h3><ul><li><span class="pre">dataIndex</span> : String<div class="sub-desc"><p>The property to collect</p>
578 </div></li><li><span class="pre">allowNull</span> : Boolean<div class="sub-desc"><p>(optional) Pass true to allow null, undefined or empty string values</p>
579 </div></li><li><span class="pre">bypassFilter</span> : Boolean<div class="sub-desc"><p>(optional) Pass true to collect from all records, even ones which are filtered</p>
580 </div></li></ul><h3 class="pa">Returns</h3><ul><li><span class="pre">Array</span>&nbsp; &nbsp;<p>An array of the unique values</p>
581 </li></ul></div></div></div><div id="method-count" class="member ni"><a href="Ext.data.Store.html#method-count" rel="method-count" class="expand more ar"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.data.Store.html" class="definedIn docClass">Ext.data.Store</a><br/><a href="../source/Store2.html#Ext-data.Store-method-count" class="viewSource">view source</a></div><a name="count"></a><a name="method-count"></a><a href="Ext.data.Store.html#" rel="method-count" class="cls expand">count</a>(
582 <span class="pre">Boolean grouped</span>)
583  : Number</div><div class="description"><div class="short"><p>Gets the count of items in the store.</p>
584 </div><div class="long"><p>Gets the count of items in the store.</p>
585 <h3 class="pa">Parameters</h3><ul><li><span class="pre">grouped</span> : Boolean<div class="sub-desc"><p>(Optional) True to perform the operation for each group
586 in the store. The value returned will be an object literal with the key being the group
587 name and the count for each group being the value. The grouped parameter is only honored if
588 the store has a groupField.</p>
589 </div></li></ul><h3 class="pa">Returns</h3><ul><li><span class="pre">Number</span>&nbsp; &nbsp;<p>the count</p>
590 </li></ul></div></div></div><div id="method-each" class="member ni"><a href="Ext.data.Store.html#method-each" rel="method-each" class="expand more ar"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.data.Store.html" class="definedIn docClass">Ext.data.Store</a><br/><a href="../source/Store2.html#Ext-data.Store-method-each" class="viewSource">view source</a></div><a name="each"></a><a name="method-each"></a><a href="Ext.data.Store.html#" rel="method-each" class="cls expand">each</a>(
591 <span class="pre">Function fn, [Object scope]</span>)
592  : void</div><div class="description"><div class="short"><p>Calls the specified function for each of the <a href="Ext.data.Model.html" rel="Ext.data.Model" class="docClass">Records</a> in the cache.</p>
593 </div><div class="long"><p>Calls the specified function for each of the <a href="Ext.data.Model.html" rel="Ext.data.Model" class="docClass">Records</a> in the cache.</p>
594 <h3 class="pa">Parameters</h3><ul><li><span class="pre">fn</span> : Function<div class="sub-desc"><p>The function to call. The <a href="Ext.data.Model.html" rel="Ext.data.Model" class="docClass">Record</a> is passed as the first parameter.
595 Returning <tt>false</tt> aborts and exits the iteration.</p>
596 </div></li><li><span class="pre">scope</span> : Object<div class="sub-desc"><p>(optional) The scope (<code>this</code> reference) in which the function is executed.
597 Defaults to the current <a href="Ext.data.Model.html" rel="Ext.data.Model" class="docClass">Record</a> in the iteration.</p>
598 </div></li></ul><h3 class="pa">Returns</h3><ul><li><span class="pre">void</span>&nbsp; &nbsp;
599 </li></ul></div></div></div><div id="method-enableBubble" class="member inherited"><a href="Ext.data.Store.html#method-enableBubble" rel="method-enableBubble" class="expand more ar"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.util.Observable.html" class="definedIn docClass">Ext.util.Observable</a><br/><a href="../source/Observable.html#Ext-util.Observable-method-enableBubble" class="viewSource">view source</a></div><a name="enableBubble"></a><a name="method-enableBubble"></a><a href="Ext.data.Store.html#" rel="method-enableBubble" class="cls expand">enableBubble</a>(
600 <span class="pre">String/Array events</span>)
601  : void</div><div class="description"><div class="short">Enables events fired by this Observable to bubble up an owner hierarchy by calling
602 this.getBubbleTarget() if present....</div><div class="long"><p>Enables events fired by this Observable to bubble up an owner hierarchy by calling
603 <code>this.getBubbleTarget()</code> if present. There is no implementation in the Observable base class.</p>
604
605
606 <p>This is commonly used by Ext.Components to bubble events to owner Containers. See <a href="Ext.Component.html#getBubbleTarget" rel="Ext.Component#getBubbleTarget" class="docClass">Ext.Component.getBubbleTarget</a>. The default
607 implementation in <a href="Ext.Component.html" rel="Ext.Component" class="docClass">Ext.Component</a> returns the Component's immediate owner. But if a known target is required, this can be overridden to
608 access the required target more quickly.</p>
609
610
611 <p>Example:</p>
612
613
614 <pre><code>Ext.override(Ext.form.field.Base, {
615 //  Add functionality to Field&#39;s initComponent to enable the change event to bubble
616 initComponent : Ext.Function.createSequence(Ext.form.field.Base.prototype.initComponent, function() {
617     this.enableBubble('change');
618 }),
619
620 //  We know that we want Field&#39;s events to bubble directly to the FormPanel.
621 getBubbleTarget : function() {
622     if (!this.formPanel) {
623         this.formPanel = this.findParentByType('form');
624     }
625     return this.formPanel;
626 }
627 });
628
629 var myForm = new Ext.formPanel({
630 title: 'User Details',
631 items: [{
632     ...
633 }],
634 listeners: {
635     change: function() {
636         // Title goes red if form has been modified.
637         myForm.header.setStyle('color', 'red');
638     }
639 }
640 });
641 </code></pre>
642
643 <h3 class="pa">Parameters</h3><ul><li><span class="pre">events</span> : String/Array<div class="sub-desc"><p>The event name to bubble, or an Array of event names.</p>
644 </div></li></ul><h3 class="pa">Returns</h3><ul><li><span class="pre">void</span>&nbsp; &nbsp;
645 </li></ul></div></div></div><div id="method-filter" class="member ni"><a href="Ext.data.Store.html#method-filter" rel="method-filter" class="expand more ar"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.data.Store.html" class="definedIn docClass">Ext.data.Store</a><br/><a href="../source/Store2.html#Ext-data.Store-method-filter" class="viewSource">view source</a></div><a name="filter"></a><a name="method-filter"></a><a href="Ext.data.Store.html#" rel="method-filter" class="cls expand">filter</a>(
646 <span class="pre">Mixed filters, String value</span>)
647  : void</div><div class="description"><div class="short"><p>Filters the loaded set of records by a given set of filters.</p>
648 </div><div class="long"><p>Filters the loaded set of records by a given set of filters.</p>
649 <h3 class="pa">Parameters</h3><ul><li><span class="pre">filters</span> : Mixed<div class="sub-desc"><p>The set of filters to apply to the data. These are stored internally on the store,
650 but the filtering itself is done on the Store's <a href="Ext.util.MixedCollection.html" rel="Ext.util.MixedCollection" class="docClass">MixedCollection</a>. See
651 MixedCollection's <a href="Ext.util.MixedCollection.html#filter" rel="Ext.util.MixedCollection#filter" class="docClass">filter</a> method for filter syntax. Alternatively,
652 pass in a property string</p>
653 </div></li><li><span class="pre">value</span> : String<div class="sub-desc"><p>Optional value to filter by (only if using a property string as the first argument)</p>
654 </div></li></ul><h3 class="pa">Returns</h3><ul><li><span class="pre">void</span>&nbsp; &nbsp;
655 </li></ul></div></div></div><div id="method-filterBy" class="member ni"><a href="Ext.data.Store.html#method-filterBy" rel="method-filterBy" class="expand more ar"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.data.Store.html" class="definedIn docClass">Ext.data.Store</a><br/><a href="../source/Store2.html#Ext-data.Store-method-filterBy" class="viewSource">view source</a></div><a name="filterBy"></a><a name="method-filterBy"></a><a href="Ext.data.Store.html#" rel="method-filterBy" class="cls expand">filterBy</a>(
656 <span class="pre">Function fn, [Object scope]</span>)
657  : void</div><div class="description"><div class="short">Filter by a function. The specified function will be called for each
658 Record in this Store. If the function returns tr...</div><div class="long"><p>Filter by a function. The specified function will be called for each
659 Record in this Store. If the function returns <tt>true</tt> the Record is included,
660 otherwise it is filtered out.</p>
661 <h3 class="pa">Parameters</h3><ul><li><span class="pre">fn</span> : Function<div class="sub-desc"><p>The function to be called. It will be passed the following parameters:<ul>
662 <li><b>record</b> : Ext.data.Model<p class="sub-desc">The <a href="Ext.data.Model.html" rel="Ext.data.Model" class="docClass">record</a>
663 to test for filtering. Access field values using <a href="Ext.data.Model.html#get" rel="Ext.data.Model#get" class="docClass">Ext.data.Model.get</a>.</p></li>
664 <li><b>id</b> : Object<p class="sub-desc">The ID of the Record passed.</p></li>
665 </ul></p>
666 </div></li><li><span class="pre">scope</span> : Object<div class="sub-desc"><p>(optional) The scope (<code>this</code> reference) in which the function is executed. Defaults to this Store.</p>
667 </div></li></ul><h3 class="pa">Returns</h3><ul><li><span class="pre">void</span>&nbsp; &nbsp;
668 </li></ul></div></div></div><div id="method-find" class="member ni"><a href="Ext.data.Store.html#method-find" rel="method-find" class="expand more ar"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.data.Store.html" class="definedIn docClass">Ext.data.Store</a><br/><a href="../source/Store2.html#Ext-data.Store-method-find" class="viewSource">view source</a></div><a name="find"></a><a name="method-find"></a><a href="Ext.data.Store.html#" rel="method-find" class="cls expand">find</a>(
669 <span class="pre">String fieldName, String/RegExp value, [Number startIndex], [Boolean anyMatch], [Boolean caseSensitive], Boolean exactMatch</span>)
670  : Number</div><div class="description"><div class="short"><p>Finds the index of the first matching Record in this store by a specific field value.</p>
671 </div><div class="long"><p>Finds the index of the first matching Record in this store by a specific field value.</p>
672 <h3 class="pa">Parameters</h3><ul><li><span class="pre">fieldName</span> : String<div class="sub-desc"><p>The name of the Record field to test.</p>
673 </div></li><li><span class="pre">value</span> : String/RegExp<div class="sub-desc"><p>Either a string that the field value
674 should begin with, or a RegExp to test against the field.</p>
675 </div></li><li><span class="pre">startIndex</span> : Number<div class="sub-desc"><p>(optional) The index to start searching at</p>
676 </div></li><li><span class="pre">anyMatch</span> : Boolean<div class="sub-desc"><p>(optional) True to match any part of the string, not just the beginning</p>
677 </div></li><li><span class="pre">caseSensitive</span> : Boolean<div class="sub-desc"><p>(optional) True for case sensitive comparison</p>
678 </div></li><li><span class="pre">exactMatch</span> : Boolean<div class="sub-desc"><p>True to force exact match (^ and $ characters added to the regex). Defaults to false.</p>
679 </div></li></ul><h3 class="pa">Returns</h3><ul><li><span class="pre">Number</span>&nbsp; &nbsp;<p>The matched index or -1</p>
680 </li></ul></div></div></div><div id="method-findBy" class="member ni"><a href="Ext.data.Store.html#method-findBy" rel="method-findBy" class="expand more ar"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.data.Store.html" class="definedIn docClass">Ext.data.Store</a><br/><a href="../source/Store2.html#Ext-data.Store-method-findBy" class="viewSource">view source</a></div><a name="findBy"></a><a name="method-findBy"></a><a href="Ext.data.Store.html#" rel="method-findBy" class="cls expand">findBy</a>(
681 <span class="pre">Function fn, [Object scope], [Number startIndex]</span>)
682  : Number</div><div class="description"><div class="short">Find the index of the first matching Record in this Store by a function.
683 If the function returns true it is considere...</div><div class="long"><p>Find the index of the first matching Record in this Store by a function.
684 If the function returns <tt>true</tt> it is considered a match.</p>
685 <h3 class="pa">Parameters</h3><ul><li><span class="pre">fn</span> : Function<div class="sub-desc"><p>The function to be called. It will be passed the following parameters:<ul>
686 <li><b>record</b> : Ext.data.Model<p class="sub-desc">The <a href="Ext.data.Model.html" rel="Ext.data.Model" class="docClass">record</a>
687 to test for filtering. Access field values using <a href="Ext.data.Model.html#get" rel="Ext.data.Model#get" class="docClass">Ext.data.Model.get</a>.</p></li>
688 <li><b>id</b> : Object<p class="sub-desc">The ID of the Record passed.</p></li>
689 </ul></p>
690 </div></li><li><span class="pre">scope</span> : Object<div class="sub-desc"><p>(optional) The scope (<code>this</code> reference) in which the function is executed. Defaults to this Store.</p>
691 </div></li><li><span class="pre">startIndex</span> : Number<div class="sub-desc"><p>(optional) The index to start searching at</p>
692 </div></li></ul><h3 class="pa">Returns</h3><ul><li><span class="pre">Number</span>&nbsp; &nbsp;<p>The matched index or -1</p>
693 </li></ul></div></div></div><div id="method-findExact" class="member ni"><a href="Ext.data.Store.html#method-findExact" rel="method-findExact" class="expand more ar"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.data.Store.html" class="definedIn docClass">Ext.data.Store</a><br/><a href="../source/Store2.html#Ext-data.Store-method-findExact" class="viewSource">view source</a></div><a name="findExact"></a><a name="method-findExact"></a><a href="Ext.data.Store.html#" rel="method-findExact" class="cls expand">findExact</a>(
694 <span class="pre">String fieldName, Mixed value, [Number startIndex]</span>)
695  : Number</div><div class="description"><div class="short"><p>Finds the index of the first matching Record in this store by a specific field value.</p>
696 </div><div class="long"><p>Finds the index of the first matching Record in this store by a specific field value.</p>
697 <h3 class="pa">Parameters</h3><ul><li><span class="pre">fieldName</span> : String<div class="sub-desc"><p>The name of the Record field to test.</p>
698 </div></li><li><span class="pre">value</span> : Mixed<div class="sub-desc"><p>The value to match the field against.</p>
699 </div></li><li><span class="pre">startIndex</span> : Number<div class="sub-desc"><p>(optional) The index to start searching at</p>
700 </div></li></ul><h3 class="pa">Returns</h3><ul><li><span class="pre">Number</span>&nbsp; &nbsp;<p>The matched index or -1</p>
701 </li></ul></div></div></div><div id="method-findRecord" class="member ni"><a href="Ext.data.Store.html#method-findRecord" rel="method-findRecord" class="expand more ar"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.data.Store.html" class="definedIn docClass">Ext.data.Store</a><br/><a href="../source/Store2.html#Ext-data.Store-method-findRecord" class="viewSource">view source</a></div><a name="findRecord"></a><a name="method-findRecord"></a><a href="Ext.data.Store.html#" rel="method-findRecord" class="cls expand">findRecord</a>(
702 <span class="pre">String fieldName, String/RegExp value, [Number startIndex], [Boolean anyMatch], [Boolean caseSensitive], Boolean exactMatch</span>)
703  : Ext.data.Model</div><div class="description"><div class="short"><p>Finds the first matching Record in this store by a specific field value.</p>
704 </div><div class="long"><p>Finds the first matching Record in this store by a specific field value.</p>
705 <h3 class="pa">Parameters</h3><ul><li><span class="pre">fieldName</span> : String<div class="sub-desc"><p>The name of the Record field to test.</p>
706 </div></li><li><span class="pre">value</span> : String/RegExp<div class="sub-desc"><p>Either a string that the field value
707 should begin with, or a RegExp to test against the field.</p>
708 </div></li><li><span class="pre">startIndex</span> : Number<div class="sub-desc"><p>(optional) The index to start searching at</p>
709 </div></li><li><span class="pre">anyMatch</span> : Boolean<div class="sub-desc"><p>(optional) True to match any part of the string, not just the beginning</p>
710 </div></li><li><span class="pre">caseSensitive</span> : Boolean<div class="sub-desc"><p>(optional) True for case sensitive comparison</p>
711 </div></li><li><span class="pre">exactMatch</span> : Boolean<div class="sub-desc"><p>True to force exact match (^ and $ characters added to the regex). Defaults to false.</p>
712 </div></li></ul><h3 class="pa">Returns</h3><ul><li><span class="pre">Ext.data.Model</span>&nbsp; &nbsp;<p>The matched record or null</p>
713 </li></ul></div></div></div><div id="method-fireEvent" class="member inherited"><a href="Ext.data.Store.html#method-fireEvent" rel="method-fireEvent" class="expand more ar"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.util.Observable.html" class="definedIn docClass">Ext.util.Observable</a><br/><a href="../source/Observable.html#Ext-util.Observable-method-fireEvent" class="viewSource">view source</a></div><a name="fireEvent"></a><a name="method-fireEvent"></a><a href="Ext.data.Store.html#" rel="method-fireEvent" class="cls expand">fireEvent</a>(
714 <span class="pre">String eventName, Object... args</span>)
715  : Boolean</div><div class="description"><div class="short">Fires the specified event with the passed parameters (minus the event name).
716
717
718 An event may be set to bubble up an Ob...</div><div class="long"><p>Fires the specified event with the passed parameters (minus the event name).</p>
719
720
721 <p>An event may be set to bubble up an Observable parent hierarchy (See <a href="Ext.Component.html#getBubbleTarget" rel="Ext.Component#getBubbleTarget" class="docClass">Ext.Component.getBubbleTarget</a>)
722 by calling <a href="Ext.data.Store.html#enableBubble" rel="Ext.data.Store#enableBubble" class="docClass">enableBubble</a>.</p>
723
724 <h3 class="pa">Parameters</h3><ul><li><span class="pre">eventName</span> : String<div class="sub-desc"><p>The name of the event to fire.</p>
725 </div></li><li><span class="pre">args</span> : Object...<div class="sub-desc"><p>Variable number of parameters are passed to handlers.</p>
726 </div></li></ul><h3 class="pa">Returns</h3><ul><li><span class="pre">Boolean</span>&nbsp; &nbsp;<p>returns false if any of the handlers return false otherwise it returns true.</p>
727 </li></ul></div></div></div><div id="method-first" class="member ni"><a href="Ext.data.Store.html#method-first" rel="method-first" class="expand more ar"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.data.Store.html" class="definedIn docClass">Ext.data.Store</a><br/><a href="../source/Store2.html#Ext-data.Store-method-first" class="viewSource">view source</a></div><a name="first"></a><a name="method-first"></a><a href="Ext.data.Store.html#" rel="method-first" class="cls expand">first</a>(
728 <span class="pre">Boolean grouped</span>)
729  : Ext.data.Model/undefined</div><div class="description"><div class="short"><p>Convenience function for getting the first model instance in the store</p>
730 </div><div class="long"><p>Convenience function for getting the first model instance in the store</p>
731 <h3 class="pa">Parameters</h3><ul><li><span class="pre">grouped</span> : Boolean<div class="sub-desc"><p>(Optional) True to perform the operation for each group
732 in the store. The value returned will be an object literal with the key being the group
733 name and the first record being the value. The grouped parameter is only honored if
734 the store has a groupField.</p>
735 </div></li></ul><h3 class="pa">Returns</h3><ul><li><span class="pre">Ext.data.Model/undefined</span>&nbsp; &nbsp;<p>The first model instance in the store, or undefined</p>
736 </li></ul></div></div></div><div id="method-getAt" class="member ni"><a href="Ext.data.Store.html#method-getAt" rel="method-getAt" class="expand more ar"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.data.Store.html" class="definedIn docClass">Ext.data.Store</a><br/><a href="../source/Store2.html#Ext-data.Store-method-getAt" class="viewSource">view source</a></div><a name="getAt"></a><a name="method-getAt"></a><a href="Ext.data.Store.html#" rel="method-getAt" class="cls expand">getAt</a>(
737 <span class="pre">Number index</span>)
738  : Ext.data.Model</div><div class="description"><div class="short"><p>Get the Record at the specified index.</p>
739 </div><div class="long"><p>Get the Record at the specified index.</p>
740 <h3 class="pa">Parameters</h3><ul><li><span class="pre">index</span> : Number<div class="sub-desc"><p>The index of the Record to find.</p>
741 </div></li></ul><h3 class="pa">Returns</h3><ul><li><span class="pre">Ext.data.Model</span>&nbsp; &nbsp;<p>The Record at the passed index. Returns undefined if not found.</p>
742 </li></ul></div></div></div><div id="method-getById" class="member ni"><a href="Ext.data.Store.html#method-getById" rel="method-getById" class="expand more ar"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.data.Store.html" class="definedIn docClass">Ext.data.Store</a><br/><a href="../source/Store2.html#Ext-data.Store-method-getById" class="viewSource">view source</a></div><a name="getById"></a><a name="method-getById"></a><a href="Ext.data.Store.html#" rel="method-getById" class="cls expand">getById</a>(
743 <span class="pre">String id</span>)
744  : Ext.data.Model</div><div class="description"><div class="short"><p>Get the Record with the specified id.</p>
745 </div><div class="long"><p>Get the Record with the specified id.</p>
746 <h3 class="pa">Parameters</h3><ul><li><span class="pre">id</span> : String<div class="sub-desc"><p>The id of the Record to find.</p>
747 </div></li></ul><h3 class="pa">Returns</h3><ul><li><span class="pre">Ext.data.Model</span>&nbsp; &nbsp;<p>The Record with the passed id. Returns undefined if not found.</p>
748 </li></ul></div></div></div><div id="method-getCount" class="member ni"><a href="Ext.data.Store.html#method-getCount" rel="method-getCount" class="expand more ar"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.data.Store.html" class="definedIn docClass">Ext.data.Store</a><br/><a href="../source/Store2.html#Ext-data.Store-method-getCount" class="viewSource">view source</a></div><a name="getCount"></a><a name="method-getCount"></a><a href="Ext.data.Store.html#" rel="method-getCount" class="cls expand">getCount</a> : Number</div><div class="description"><div class="short">Gets the number of cached records.
749
750 If using paging, this may not be the total size of the dataset. If the data objec...</div><div class="long"><p>Gets the number of cached records.</p>
751
752 <p>If using paging, this may not be the total size of the dataset. If the data object
753 used by the Reader contains the dataset size, then the <a href="Ext.data.Store.html#getTotalCount" rel="Ext.data.Store#getTotalCount" class="docClass">getTotalCount</a> function returns
754 the dataset size.  <b>Note</b>: see the Important note in <a href="Ext.data.Store.html#load" rel="Ext.data.Store#load" class="docClass">load</a>.</p>
755
756 <h3 class="pa">Returns</h3><ul><li><span class="pre">Number</span>&nbsp; &nbsp;<p>The number of Records in the Store's cache.</p>
757 </li></ul></div></div></div><div id="method-getGroupString" class="member ni"><a href="Ext.data.Store.html#method-getGroupString" rel="method-getGroupString" class="expand more ar"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.data.Store.html" class="definedIn docClass">Ext.data.Store</a><br/><a href="../source/Store2.html#Ext-data.Store-method-getGroupString" class="viewSource">view source</a></div><a name="getGroupString"></a><a name="method-getGroupString"></a><a href="Ext.data.Store.html#" rel="method-getGroupString" class="cls expand">getGroupString</a>(
758 <span class="pre">Ext.data.Model instance</span>)
759  : String</div><div class="description"><div class="short">Returns the string to group on for a given model instance. The default implementation of this method returns
760 the mode...</div><div class="long"><p>Returns the string to group on for a given model instance. The default implementation of this method returns
761 the model's <a href="Ext.data.Store.html#groupField" rel="Ext.data.Store#groupField" class="docClass">groupField</a>, but this can be overridden to group by an arbitrary string. For example, to
762 group by the first letter of a model's 'name' field, use the following code:</p>
763
764
765 <pre><code>new Ext.data.Store({
766     groupDir: 'ASC',
767     getGroupString: function(instance) {
768         return instance.get('name')[0];
769     }
770 });
771 </code></pre>
772
773 <h3 class="pa">Parameters</h3><ul><li><span class="pre">instance</span> : Ext.data.Model<div class="sub-desc"><p>The model instance</p>
774 </div></li></ul><h3 class="pa">Returns</h3><ul><li><span class="pre">String</span>&nbsp; &nbsp;<p>The string to compare when forming groups</p>
775 </li></ul></div></div></div><div id="method-getGroups" class="member ni"><a href="Ext.data.Store.html#method-getGroups" rel="method-getGroups" class="expand more ar"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.data.Store.html" class="definedIn docClass">Ext.data.Store</a><br/><a href="../source/Store2.html#Ext-data.Store-method-getGroups" class="viewSource">view source</a></div><a name="getGroups"></a><a name="method-getGroups"></a><a href="Ext.data.Store.html#" rel="method-getGroups" class="cls expand">getGroups</a>(
776 <span class="pre">String groupName</span>)
777  : Array</div><div class="description"><div class="short">Returns an object containing the result of applying grouping to the records in this store. See groupField,
778 groupDir a...</div><div class="long"><p>Returns an object containing the result of applying grouping to the records in this store. See <a href="Ext.data.Store.html#groupField" rel="Ext.data.Store#groupField" class="docClass">groupField</a>,
779 <a href="Ext.data.Store.html#groupDir" rel="Ext.data.Store#groupDir" class="docClass">groupDir</a> and <a href="Ext.data.Store.html#getGroupString" rel="Ext.data.Store#getGroupString" class="docClass">getGroupString</a>. Example for a store containing records with a color field:</p>
780
781 <pre><code>var myStore = new Ext.data.Store({
782     groupField: 'color',
783     groupDir  : 'DESC'
784 });
785
786 myStore.getGroups(); //returns:
787 [
788     {
789         name: 'yellow',
790         children: [
791             //all records where the color field is 'yellow'
792         ]
793     },
794     {
795         name: 'red',
796         children: [
797             //all records where the color field is 'red'
798         ]
799     }
800 ]
801 </code></pre>
802
803 <h3 class="pa">Parameters</h3><ul><li><span class="pre">groupName</span> : String<div class="sub-desc"><p>(Optional) Pass in an optional groupName argument to access a specific group as defined by <a href="Ext.data.Store.html#getGroupString" rel="Ext.data.Store#getGroupString" class="docClass">getGroupString</a></p>
804 </div></li></ul><h3 class="pa">Returns</h3><ul><li><span class="pre">Array</span>&nbsp; &nbsp;<p>The grouped data</p>
805 </li></ul></div></div></div><div id="method-getNewRecords" class="member inherited"><a href="Ext.data.Store.html#method-getNewRecords" rel="method-getNewRecords" class="expand more ar"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.data.AbstractStore.html" class="definedIn docClass">Ext.data.AbstractStore</a><br/><a href="../source/AbstractStore.html#Ext-data.AbstractStore-method-getNewRecords" class="viewSource">view source</a></div><a name="getNewRecords"></a><a name="method-getNewRecords"></a><a href="Ext.data.Store.html#" rel="method-getNewRecords" class="cls expand">getNewRecords</a> : Array</div><div class="description"><div class="short">Returns all Model instances that are either currently a phantom (e.g. have no id), or have an ID but have not
806 yet bee...</div><div class="long"><p>Returns all Model instances that are either currently a phantom (e.g. have no id), or have an ID but have not
807 yet been saved on this Store (this happens when adding a non-phantom record from another Store into this one)</p>
808 <h3 class="pa">Returns</h3><ul><li><span class="pre">Array</span>&nbsp; &nbsp;<p>The Model instances</p>
809 </li></ul></div></div></div><div id="method-getPageFromRecordIndex" class="member ni"><a href="Ext.data.Store.html#method-getPageFromRecordIndex" rel="method-getPageFromRecordIndex" class="expand more ar"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.data.Store.html" class="definedIn docClass">Ext.data.Store</a><br/><a href="../source/Store2.html#Ext-data.Store-method-getPageFromRecordIndex" class="viewSource">view source</a></div><a name="getPageFromRecordIndex"></a><a name="method-getPageFromRecordIndex"></a><a href="Ext.data.Store.html#" rel="method-getPageFromRecordIndex" class="cls expand">getPageFromRecordIndex</a>(
810 <span class="pre">Number index</span>)
811  : Number</div><div class="description"><div class="short"><p>Determines the page from a record index</p>
812 </div><div class="long"><p>Determines the page from a record index</p>
813 <h3 class="pa">Parameters</h3><ul><li><span class="pre">index</span> : Number<div class="sub-desc"><p>The record index</p>
814 </div></li></ul><h3 class="pa">Returns</h3><ul><li><span class="pre">Number</span>&nbsp; &nbsp;<p>The page the record belongs to</p>
815 </li></ul></div></div></div><div id="method-getProxy" class="member inherited"><a href="Ext.data.Store.html#method-getProxy" rel="method-getProxy" class="expand more ar"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.data.AbstractStore.html" class="definedIn docClass">Ext.data.AbstractStore</a><br/><a href="../source/AbstractStore.html#Ext-data.AbstractStore-method-getProxy" class="viewSource">view source</a></div><a name="getProxy"></a><a name="method-getProxy"></a><a href="Ext.data.Store.html#" rel="method-getProxy" class="cls expand">getProxy</a> : Ext.data.proxy.Proxy</div><div class="description"><div class="short"><p>Returns the proxy currently attached to this proxy instance</p>
816 </div><div class="long"><p>Returns the proxy currently attached to this proxy instance</p>
817 <h3 class="pa">Returns</h3><ul><li><span class="pre">Ext.data.proxy.Proxy</span>&nbsp; &nbsp;<p>The Proxy instance</p>
818 </li></ul></div></div></div><div id="method-getRange" class="member ni"><a href="Ext.data.Store.html#method-getRange" rel="method-getRange" class="expand more ar"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.data.Store.html" class="definedIn docClass">Ext.data.Store</a><br/><a href="../source/Store2.html#Ext-data.Store-method-getRange" class="viewSource">view source</a></div><a name="getRange"></a><a name="method-getRange"></a><a href="Ext.data.Store.html#" rel="method-getRange" class="cls expand">getRange</a>(
819 <span class="pre">[Number startIndex], [Number endIndex]</span>)
820  : Ext.data.Model[]</div><div class="description"><div class="short"><p>Returns a range of Records between specified indices.</p>
821 </div><div class="long"><p>Returns a range of Records between specified indices.</p>
822 <h3 class="pa">Parameters</h3><ul><li><span class="pre">startIndex</span> : Number<div class="sub-desc"><p>(optional) The starting index (defaults to 0)</p>
823 </div></li><li><span class="pre">endIndex</span> : Number<div class="sub-desc"><p>(optional) The ending index (defaults to the last Record in the Store)</p>
824 </div></li></ul><h3 class="pa">Returns</h3><ul><li><span class="pre">Ext.data.Model[]</span>&nbsp; &nbsp;<p>An array of Records</p>
825 </li></ul></div></div></div><div id="method-getSortState" class="member inherited"><a href="Ext.data.Store.html#method-getSortState" rel="method-getSortState" class="expand more ar"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.util.Sortable.html" class="definedIn docClass">Ext.util.Sortable</a><br/><a href="../source/Sortable.html#Ext-util.Sortable-method-getSortState" class="viewSource">view source</a></div><a name="getSortState"></a><a name="method-getSortState"></a><a href="Ext.data.Store.html#" rel="method-getSortState" class="cls expand">getSortState</a> : Object</div><div class="description"><div class="short"><p>Returns an object describing the current sort state of this Store.</p>
826 </div><div class="long"><p>Returns an object describing the current sort state of this Store.</p>
827 <h3 class="pa">Returns</h3><ul><li><span class="pre">Object</span>&nbsp; &nbsp;<p>The sort state of the Store. An object with two properties:<ul>
828 <li><b>field</b> : String<p class="sub-desc">The name of the field by which the Records are sorted.</p></li>
829 <li><b>direction</b> : String<p class="sub-desc">The sort order, 'ASC' or 'DESC' (case-sensitive).</p></li>
830 </ul>
831 See <tt><a href="Ext.data.Store.html#sortInfo" rel="Ext.data.Store#sortInfo" class="docClass">sortInfo</a></tt> for additional details.</p>
832 </li></ul></div></div></div><div id="method-getTotalCount" class="member ni"><a href="Ext.data.Store.html#method-getTotalCount" rel="method-getTotalCount" class="expand more ar"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.data.Store.html" class="definedIn docClass">Ext.data.Store</a><br/><a href="../source/Store2.html#Ext-data.Store-method-getTotalCount" class="viewSource">view source</a></div><a name="getTotalCount"></a><a name="method-getTotalCount"></a><a href="Ext.data.Store.html#" rel="method-getTotalCount" class="cls expand">getTotalCount</a> : Number</div><div class="description"><div class="short">Returns the total number of Model instances that the Proxy
833 indicates exist. This will usually differ from getCount wh...</div><div class="long"><p>Returns the total number of <a href="Ext.data.Model.html" rel="Ext.data.Model" class="docClass">Model</a> instances that the <a href="Ext.data.proxy.Proxy.html" rel="Ext.data.proxy.Proxy" class="docClass">Proxy</a>
834 indicates exist. This will usually differ from <a href="Ext.data.Store.html#getCount" rel="Ext.data.Store#getCount" class="docClass">getCount</a> when using paging - getCount returns the
835 number of records loaded into the Store at the moment, getTotalCount returns the number of records that
836 could be loaded into the Store if the Store contained all data</p>
837 <h3 class="pa">Returns</h3><ul><li><span class="pre">Number</span>&nbsp; &nbsp;<p>The total number of Model instances available via the Proxy</p>
838 </li></ul></div></div></div><div id="method-getUpdatedRecords" class="member inherited"><a href="Ext.data.Store.html#method-getUpdatedRecords" rel="method-getUpdatedRecords" class="expand more ar"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.data.AbstractStore.html" class="definedIn docClass">Ext.data.AbstractStore</a><br/><a href="../source/AbstractStore.html#Ext-data.AbstractStore-method-getUpdatedRecords" class="viewSource">view source</a></div><a name="getUpdatedRecords"></a><a name="method-getUpdatedRecords"></a><a href="Ext.data.Store.html#" rel="method-getUpdatedRecords" class="cls expand">getUpdatedRecords</a> : Array</div><div class="description"><div class="short"><p>Returns all Model instances that have been updated in the Store but not yet synchronized with the Proxy</p>
839 </div><div class="long"><p>Returns all Model instances that have been updated in the Store but not yet synchronized with the Proxy</p>
840 <h3 class="pa">Returns</h3><ul><li><span class="pre">Array</span>&nbsp; &nbsp;<p>The updated Model instances</p>
841 </li></ul></div></div></div><div id="method-group" class="member ni"><a href="Ext.data.Store.html#method-group" rel="method-group" class="expand more ar"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.data.Store.html" class="definedIn docClass">Ext.data.Store</a><br/><a href="../source/Store2.html#Ext-data.Store-method-group" class="viewSource">view source</a></div><a name="group"></a><a name="method-group"></a><a href="Ext.data.Store.html#" rel="method-group" class="cls expand">group</a>(
842 <span class="pre">String|Array groupers, String direction</span>)
843  : void</div><div class="description"><div class="short"><p>Group data in the store</p>
844 </div><div class="long"><p>Group data in the store</p>
845 <h3 class="pa">Parameters</h3><ul><li><span class="pre">groupers</span> : String|Array<div class="sub-desc"><p>Either a string name of one of the fields in this Store's configured <a href="Ext.data.Model.html" rel="Ext.data.Model" class="docClass">Model</a>,
846 or an Array of grouper configurations.</p>
847 </div></li><li><span class="pre">direction</span> : String<div class="sub-desc"><p>The overall direction to group the data by. Defaults to "ASC".</p>
848 </div></li></ul><h3 class="pa">Returns</h3><ul><li><span class="pre">void</span>&nbsp; &nbsp;
849 </li></ul></div></div></div><div id="method-guaranteeRange" class="member ni"><a href="Ext.data.Store.html#method-guaranteeRange" rel="method-guaranteeRange" class="expand more ar"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.data.Store.html" class="definedIn docClass">Ext.data.Store</a><br/><a href="../source/Store2.html#Ext-data.Store-method-guaranteeRange" class="viewSource">view source</a></div><a name="guaranteeRange"></a><a name="method-guaranteeRange"></a><a href="Ext.data.Store.html#" rel="method-guaranteeRange" class="cls expand">guaranteeRange</a>(
850 <span class="pre">Object start, Object end, Object cb, Object scope</span>)
851  : void</div><div class="description"><div class="short">Guarantee a specific range, this will load the store with a range (that
852 must be the pageSize or smaller) and take car...</div><div class="long"><p>Guarantee a specific range, this will load the store with a range (that
853 must be the pageSize or smaller) and take care of any loading that may
854 be necessary.</p>
855 <h3 class="pa">Parameters</h3><ul><li><span class="pre">start</span> : Object<div class="sub-desc">
856 </div></li><li><span class="pre">end</span> : Object<div class="sub-desc">
857 </div></li><li><span class="pre">cb</span> : Object<div class="sub-desc">
858 </div></li><li><span class="pre">scope</span> : Object<div class="sub-desc">
859 </div></li></ul><h3 class="pa">Returns</h3><ul><li><span class="pre">void</span>&nbsp; &nbsp;
860 </li></ul></div></div></div><div id="method-hasListener" class="member inherited"><a href="Ext.data.Store.html#method-hasListener" rel="method-hasListener" class="expand more ar"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.util.Observable.html" class="definedIn docClass">Ext.util.Observable</a><br/><a href="../source/Observable.html#Ext-util.Observable-method-hasListener" class="viewSource">view source</a></div><a name="hasListener"></a><a name="method-hasListener"></a><a href="Ext.data.Store.html#" rel="method-hasListener" class="cls expand">hasListener</a>(
861 <span class="pre">String eventName</span>)
862  : Boolean</div><div class="description"><div class="short"><p>Checks to see if this object has any listeners for a specified event</p>
863 </div><div class="long"><p>Checks to see if this object has any listeners for a specified event</p>
864 <h3 class="pa">Parameters</h3><ul><li><span class="pre">eventName</span> : String<div class="sub-desc"><p>The name of the event to check for</p>
865 </div></li></ul><h3 class="pa">Returns</h3><ul><li><span class="pre">Boolean</span>&nbsp; &nbsp;<p>True if the event is being listened for, else false</p>
866 </li></ul></div></div></div><div id="method-hasPendingRequests" class="member ni"><a href="Ext.data.Store.html#method-hasPendingRequests" rel="method-hasPendingRequests" class="expand more ar"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.data.Store.html" class="definedIn docClass">Ext.data.Store</a><br/><a href="../source/Store2.html#Ext-data.Store-method-hasPendingRequests" class="viewSource">view source</a></div><a name="hasPendingRequests"></a><a name="method-hasPendingRequests"></a><a href="Ext.data.Store.html#" rel="method-hasPendingRequests" class="cls expand">hasPendingRequests</a> : void</div><div class="description"><div class="short"><p>Returns the number of pending requests out.</p>
867 </div><div class="long"><p>Returns the number of pending requests out.</p>
868 <h3 class="pa">Returns</h3><ul><li><span class="pre">void</span>&nbsp; &nbsp;
869 </li></ul></div></div></div><div id="method-indexOf" class="member ni"><a href="Ext.data.Store.html#method-indexOf" rel="method-indexOf" class="expand more ar"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.data.Store.html" class="definedIn docClass">Ext.data.Store</a><br/><a href="../source/Store2.html#Ext-data.Store-method-indexOf" class="viewSource">view source</a></div><a name="indexOf"></a><a name="method-indexOf"></a><a href="Ext.data.Store.html#" rel="method-indexOf" class="cls expand">indexOf</a>(
870 <span class="pre">Ext.data.Model record</span>)
871  : Number</div><div class="description"><div class="short"><p>Get the index within the cache of the passed Record.</p>
872 </div><div class="long"><p>Get the index within the cache of the passed Record.</p>
873 <h3 class="pa">Parameters</h3><ul><li><span class="pre">record</span> : Ext.data.Model<div class="sub-desc"><p>The <a href="Ext.data.Model.html" rel="Ext.data.Model" class="docClass">Ext.data.Model</a> object to find.</p>
874 </div></li></ul><h3 class="pa">Returns</h3><ul><li><span class="pre">Number</span>&nbsp; &nbsp;<p>The index of the passed Record. Returns -1 if not found.</p>
875 </li></ul></div></div></div><div id="method-indexOfId" class="member ni"><a href="Ext.data.Store.html#method-indexOfId" rel="method-indexOfId" class="expand more ar"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.data.Store.html" class="definedIn docClass">Ext.data.Store</a><br/><a href="../source/Store2.html#Ext-data.Store-method-indexOfId" class="viewSource">view source</a></div><a name="indexOfId"></a><a name="method-indexOfId"></a><a href="Ext.data.Store.html#" rel="method-indexOfId" class="cls expand">indexOfId</a>(
876 <span class="pre">String id</span>)
877  : Number</div><div class="description"><div class="short"><p>Get the index within the cache of the Record with the passed id.</p>
878 </div><div class="long"><p>Get the index within the cache of the Record with the passed id.</p>
879 <h3 class="pa">Parameters</h3><ul><li><span class="pre">id</span> : String<div class="sub-desc"><p>The id of the Record to find.</p>
880 </div></li></ul><h3 class="pa">Returns</h3><ul><li><span class="pre">Number</span>&nbsp; &nbsp;<p>The index of the Record. Returns -1 if not found.</p>
881 </li></ul></div></div></div><div id="method-indexOfTotal" class="member ni"><a href="Ext.data.Store.html#method-indexOfTotal" rel="method-indexOfTotal" class="expand more ar"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.data.Store.html" class="definedIn docClass">Ext.data.Store</a><br/><a href="../source/Store2.html#Ext-data.Store-method-indexOfTotal" class="viewSource">view source</a></div><a name="indexOfTotal"></a><a name="method-indexOfTotal"></a><a href="Ext.data.Store.html#" rel="method-indexOfTotal" class="cls expand">indexOfTotal</a>(
882 <span class="pre">Ext.data.Model record</span>)
883  : Number</div><div class="description"><div class="short"><p>Get the index within the entire dataset. From 0 to the totalCount.</p>
884 </div><div class="long"><p>Get the index within the entire dataset. From 0 to the totalCount.</p>
885 <h3 class="pa">Parameters</h3><ul><li><span class="pre">record</span> : Ext.data.Model<div class="sub-desc"><p>The <a href="Ext.data.Model.html" rel="Ext.data.Model" class="docClass">Ext.data.Model</a> object to find.</p>
886 </div></li></ul><h3 class="pa">Returns</h3><ul><li><span class="pre">Number</span>&nbsp; &nbsp;<p>The index of the passed Record. Returns -1 if not found.</p>
887 </li></ul></div></div></div><div id="method-initSortable" class="member inherited"><a href="Ext.data.Store.html#method-initSortable" rel="method-initSortable" class="expand more ar"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.util.Sortable.html" class="definedIn docClass">Ext.util.Sortable</a><br/><a href="../source/Sortable.html#Ext-util.Sortable-method-initSortable" class="viewSource">view source</a></div><a name="initSortable"></a><a name="method-initSortable"></a><a href="Ext.data.Store.html#" rel="method-initSortable" class="cls expand">initSortable</a> : void</div><div class="description"><div class="short">Performs initialization of this mixin. Component classes using this mixin should call this method
888 during their own in...</div><div class="long"><p>Performs initialization of this mixin. Component classes using this mixin should call this method
889 during their own initialization.</p>
890 <h3 class="pa">Returns</h3><ul><li><span class="pre">void</span>&nbsp; &nbsp;
891 </li></ul></div></div></div><div id="method-insert" class="member ni"><a href="Ext.data.Store.html#method-insert" rel="method-insert" class="expand more ar"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.data.Store.html" class="definedIn docClass">Ext.data.Store</a><br/><a href="../source/Store2.html#Ext-data.Store-method-insert" class="viewSource">view source</a></div><a name="insert"></a><a name="method-insert"></a><a href="Ext.data.Store.html#" rel="method-insert" class="cls expand">insert</a>(
892 <span class="pre">Number index, Ext.data.Model[] records</span>)
893  : void</div><div class="description"><div class="short"><p>Inserts Model instances into the Store at the given index and fires the <a href="Ext.data.Store.html#add" rel="Ext.data.Store#add" class="docClass">add</a> event.
894 See also <code><a href="Ext.data.Store.html#add" rel="Ext.data.Store#add" class="docClass">add</a></code>.</p>
895 </div><div class="long"><p>Inserts Model instances into the Store at the given index and fires the <a href="Ext.data.Store.html#add" rel="Ext.data.Store#add" class="docClass">add</a> event.
896 See also <code><a href="Ext.data.Store.html#add" rel="Ext.data.Store#add" class="docClass">add</a></code>.</p>
897 <h3 class="pa">Parameters</h3><ul><li><span class="pre">index</span> : Number<div class="sub-desc"><p>The start index at which to insert the passed Records.</p>
898 </div></li><li><span class="pre">records</span> : Ext.data.Model[]<div class="sub-desc"><p>An Array of <a href="Ext.data.Model.html" rel="Ext.data.Model" class="docClass">Ext.data.Model</a> objects to add to the cache.</p>
899 </div></li></ul><h3 class="pa">Returns</h3><ul><li><span class="pre">void</span>&nbsp; &nbsp;
900 </li></ul></div></div></div><div id="method-isFiltered" class="member ni"><a href="Ext.data.Store.html#method-isFiltered" rel="method-isFiltered" class="expand more ar"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.data.Store.html" class="definedIn docClass">Ext.data.Store</a><br/><a href="../source/Store2.html#Ext-data.Store-method-isFiltered" class="viewSource">view source</a></div><a name="isFiltered"></a><a name="method-isFiltered"></a><a href="Ext.data.Store.html#" rel="method-isFiltered" class="cls expand">isFiltered</a> : Boolean</div><div class="description"><div class="short"><p>Returns true if this store is currently filtered</p>
901 </div><div class="long"><p>Returns true if this store is currently filtered</p>
902 <h3 class="pa">Returns</h3><ul><li><span class="pre">Boolean</span>&nbsp; &nbsp;
903 </li></ul></div></div></div><div id="method-isGrouped" class="member ni"><a href="Ext.data.Store.html#method-isGrouped" rel="method-isGrouped" class="expand more ar"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.data.Store.html" class="definedIn docClass">Ext.data.Store</a><br/><a href="../source/Store2.html#Ext-data.Store-method-isGrouped" class="viewSource">view source</a></div><a name="isGrouped"></a><a name="method-isGrouped"></a><a href="Ext.data.Store.html#" rel="method-isGrouped" class="cls expand">isGrouped</a> : Boolean</div><div class="description"><div class="short"><p>Checks if the store is currently grouped</p>
904 </div><div class="long"><p>Checks if the store is currently grouped</p>
905 <h3 class="pa">Returns</h3><ul><li><span class="pre">Boolean</span>&nbsp; &nbsp;<p>True if the store is grouped.</p>
906 </li></ul></div></div></div><div id="method-isLoading" class="member inherited"><a href="Ext.data.Store.html#method-isLoading" rel="method-isLoading" class="expand more ar"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.data.AbstractStore.html" class="definedIn docClass">Ext.data.AbstractStore</a><br/><a href="../source/AbstractStore.html#Ext-data.AbstractStore-method-isLoading" class="viewSource">view source</a></div><a name="isLoading"></a><a name="method-isLoading"></a><a href="Ext.data.Store.html#" rel="method-isLoading" class="cls expand">isLoading</a> : Boolean</div><div class="description"><div class="short"><p>Returns true if the Store is currently performing a load operation</p>
907 </div><div class="long"><p>Returns true if the Store is currently performing a load operation</p>
908 <h3 class="pa">Returns</h3><ul><li><span class="pre">Boolean</span>&nbsp; &nbsp;<p>True if the Store is currently loading</p>
909 </li></ul></div></div></div><div id="method-last" class="member ni"><a href="Ext.data.Store.html#method-last" rel="method-last" class="expand more ar"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.data.Store.html" class="definedIn docClass">Ext.data.Store</a><br/><a href="../source/Store2.html#Ext-data.Store-method-last" class="viewSource">view source</a></div><a name="last"></a><a name="method-last"></a><a href="Ext.data.Store.html#" rel="method-last" class="cls expand">last</a>(
910 <span class="pre">Boolean grouped</span>)
911  : Ext.data.Model/undefined</div><div class="description"><div class="short"><p>Convenience function for getting the last model instance in the store</p>
912 </div><div class="long"><p>Convenience function for getting the last model instance in the store</p>
913 <h3 class="pa">Parameters</h3><ul><li><span class="pre">grouped</span> : Boolean<div class="sub-desc"><p>(Optional) True to perform the operation for each group
914 in the store. The value returned will be an object literal with the key being the group
915 name and the last record being the value. The grouped parameter is only honored if
916 the store has a groupField.</p>
917 </div></li></ul><h3 class="pa">Returns</h3><ul><li><span class="pre">Ext.data.Model/undefined</span>&nbsp; &nbsp;<p>The last model instance in the store, or undefined</p>
918 </li></ul></div></div></div><div id="method-load" class="member ni"><a href="Ext.data.Store.html#method-load" rel="method-load" class="expand more ar"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.data.Store.html" class="definedIn docClass">Ext.data.Store</a><br/><a href="../source/Store2.html#Ext-data.Store-method-load" class="viewSource">view source</a></div><a name="load"></a><a name="method-load"></a><a href="Ext.data.Store.html#" rel="method-load" class="cls expand">load</a>(
919 <span class="pre">Object/Function options</span>)
920  : void</div><div class="description"><div class="short">Loads data into the Store via the configured proxy. This uses the Proxy to make an
921 asynchronous call to whatever stor...</div><div class="long"><p>Loads data into the Store via the configured <a href="Ext.data.Store.html#proxy" rel="Ext.data.Store#proxy" class="docClass">proxy</a>. This uses the Proxy to make an
922 asynchronous call to whatever storage backend the Proxy uses, automatically adding the retrieved
923 instances into the Store and calling an optional callback if required. Example usage:</p>
924
925
926
927
928 <pre><code>store.load({
929     scope   : this,
930     callback: function(records, operation, success) {
931         //the <a href="Ext.data.Operation.html" rel="Ext.data.Operation" class="docClass">operation</a> object contains all of the details of the load operation
932         console.log(records);
933     }
934 });
935 </code></pre>
936
937
938
939
940 <p>If the callback scope does not need to be set, a function can simply be passed:</p>
941
942
943
944
945 <pre><code>store.load(function(records, operation, success) {
946     console.log('loaded records');
947 });
948 </code></pre>
949
950 <h3 class="pa">Parameters</h3><ul><li><span class="pre">options</span> : Object/Function<div class="sub-desc"><p>Optional config object, passed into the <a href="Ext.data.Operation.html" rel="Ext.data.Operation" class="docClass">Ext.data.Operation</a> object before loading.</p>
951 </div></li></ul><h3 class="pa">Returns</h3><ul><li><span class="pre">void</span>&nbsp; &nbsp;
952 </li></ul></div></div></div><div id="method-loadData" class="member ni"><a href="Ext.data.Store.html#method-loadData" rel="method-loadData" class="expand more ar"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.data.Store.html" class="definedIn docClass">Ext.data.Store</a><br/><a href="../source/Store2.html#Ext-data.Store-method-loadData" class="viewSource">view source</a></div><a name="loadData"></a><a name="method-loadData"></a><a href="Ext.data.Store.html#" rel="method-loadData" class="cls expand">loadData</a>(
953 <span class="pre">Array data, Boolean append</span>)
954  : void</div><div class="description"><div class="short"><p>Loads an array of data straight into the Store</p>
955 </div><div class="long"><p>Loads an array of data straight into the Store</p>
956 <h3 class="pa">Parameters</h3><ul><li><span class="pre">data</span> : Array<div class="sub-desc"><p>Array of data to load. Any non-model instances will be cast into model instances first</p>
957 </div></li><li><span class="pre">append</span> : Boolean<div class="sub-desc"><p>True to add the records to the existing records in the store, false to remove the old ones first</p>
958 </div></li></ul><h3 class="pa">Returns</h3><ul><li><span class="pre">void</span>&nbsp; &nbsp;
959 </li></ul></div></div></div><div id="method-loadPage" class="member ni"><a href="Ext.data.Store.html#method-loadPage" rel="method-loadPage" class="expand more ar"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.data.Store.html" class="definedIn docClass">Ext.data.Store</a><br/><a href="../source/Store2.html#Ext-data.Store-method-loadPage" class="viewSource">view source</a></div><a name="loadPage"></a><a name="method-loadPage"></a><a href="Ext.data.Store.html#" rel="method-loadPage" class="cls expand">loadPage</a>(
960 <span class="pre">Number page</span>)
961  : void</div><div class="description"><div class="short">Loads a given 'page' of data by setting the start and limit values appropriately. Internally this just causes a norma...</div><div class="long"><p>Loads a given 'page' of data by setting the start and limit values appropriately. Internally this just causes a normal
962 load operation, passing in calculated 'start' and 'limit' params</p>
963 <h3 class="pa">Parameters</h3><ul><li><span class="pre">page</span> : Number<div class="sub-desc"><p>The number of the page to load</p>
964 </div></li></ul><h3 class="pa">Returns</h3><ul><li><span class="pre">void</span>&nbsp; &nbsp;
965 </li></ul></div></div></div><div id="method-loadRecords" class="member ni"><a href="Ext.data.Store.html#method-loadRecords" rel="method-loadRecords" class="expand more ar"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.data.Store.html" class="definedIn docClass">Ext.data.Store</a><br/><a href="../source/Store2.html#Ext-data.Store-method-loadRecords" class="viewSource">view source</a></div><a name="loadRecords"></a><a name="method-loadRecords"></a><a href="Ext.data.Store.html#" rel="method-loadRecords" class="cls expand">loadRecords</a>(
966 <span class="pre">Array records, Object options</span>)
967  : void</div><div class="description"><div class="short">Loads an array of {@Ext.data.Model model} instances into the store, fires the datachanged event. This should only usu...</div><div class="long"><p>Loads an array of {@Ext.data.Model model} instances into the store, fires the datachanged event. This should only usually
968 be called internally when loading from the <a href="Ext.data.proxy.Proxy.html" rel="Ext.data.proxy.Proxy" class="docClass">Proxy</a>, when adding records manually use <a href="Ext.data.Store.html#add" rel="Ext.data.Store#add" class="docClass">add</a> instead</p>
969 <h3 class="pa">Parameters</h3><ul><li><span class="pre">records</span> : Array<div class="sub-desc"><p>The array of records to load</p>
970 </div></li><li><span class="pre">options</span> : Object<div class="sub-desc"><p>{addRecords: true} to add these records to the existing records, false to remove the Store's existing records first</p>
971 </div></li></ul><h3 class="pa">Returns</h3><ul><li><span class="pre">void</span>&nbsp; &nbsp;
972 </li></ul></div></div></div><div id="method-max" class="member ni"><a href="Ext.data.Store.html#method-max" rel="method-max" class="expand more ar"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.data.Store.html" class="definedIn docClass">Ext.data.Store</a><br/><a href="../source/Store2.html#Ext-data.Store-method-max" class="viewSource">view source</a></div><a name="max"></a><a name="method-max"></a><a href="Ext.data.Store.html#" rel="method-max" class="cls expand">max</a>(
973 <span class="pre">String field, Boolean grouped</span>)
974  : Mixed/undefined</div><div class="description"><div class="short"><p>Gets the maximum value in the store.</p>
975 </div><div class="long"><p>Gets the maximum value in the store.</p>
976 <h3 class="pa">Parameters</h3><ul><li><span class="pre">field</span> : String<div class="sub-desc"><p>The field in each record</p>
977 </div></li><li><span class="pre">grouped</span> : Boolean<div class="sub-desc"><p>(Optional) True to perform the operation for each group
978 in the store. The value returned will be an object literal with the key being the group
979 name and the maximum in the group being the value. The grouped parameter is only honored if
980 the store has a groupField.</p>
981 </div></li></ul><h3 class="pa">Returns</h3><ul><li><span class="pre">Mixed/undefined</span>&nbsp; &nbsp;<p>The maximum value, if no items exist, undefined.</p>
982 </li></ul></div></div></div><div id="method-min" class="member ni"><a href="Ext.data.Store.html#method-min" rel="method-min" class="expand more ar"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.data.Store.html" class="definedIn docClass">Ext.data.Store</a><br/><a href="../source/Store2.html#Ext-data.Store-method-min" class="viewSource">view source</a></div><a name="min"></a><a name="method-min"></a><a href="Ext.data.Store.html#" rel="method-min" class="cls expand">min</a>(
983 <span class="pre">String field, Boolean grouped</span>)
984  : Mixed/undefined</div><div class="description"><div class="short"><p>Gets the minimum value in the store.</p>
985 </div><div class="long"><p>Gets the minimum value in the store.</p>
986 <h3 class="pa">Parameters</h3><ul><li><span class="pre">field</span> : String<div class="sub-desc"><p>The field in each record</p>
987 </div></li><li><span class="pre">grouped</span> : Boolean<div class="sub-desc"><p>(Optional) True to perform the operation for each group
988 in the store. The value returned will be an object literal with the key being the group
989 name and the minimum in the group being the value. The grouped parameter is only honored if
990 the store has a groupField.</p>
991 </div></li></ul><h3 class="pa">Returns</h3><ul><li><span class="pre">Mixed/undefined</span>&nbsp; &nbsp;<p>The minimum value, if no items exist, undefined.</p>
992 </li></ul></div></div></div><div id="method-nextPage" class="member ni"><a href="Ext.data.Store.html#method-nextPage" rel="method-nextPage" class="expand more ar"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.data.Store.html" class="definedIn docClass">Ext.data.Store</a><br/><a href="../source/Store2.html#Ext-data.Store-method-nextPage" class="viewSource">view source</a></div><a name="nextPage"></a><a name="method-nextPage"></a><a href="Ext.data.Store.html#" rel="method-nextPage" class="cls expand">nextPage</a> : void</div><div class="description"><div class="short"><p>Loads the next 'page' in the current data set</p>
993 </div><div class="long"><p>Loads the next 'page' in the current data set</p>
994 <h3 class="pa">Returns</h3><ul><li><span class="pre">void</span>&nbsp; &nbsp;
995 </li></ul></div></div></div><div id="method-observe" class="member inherited"><a href="Ext.data.Store.html#method-observe" rel="method-observe" class="expand more ar"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.util.Observable.html" class="definedIn docClass">Ext.util.Observable</a><br/><a href="../source/Observable.html#Ext-util.Observable-method-observe" class="viewSource">view source</a></div><a name="observe"></a><a name="method-observe"></a><a href="Ext.data.Store.html#" rel="method-observe" class="cls expand">observe</a>(
996 <span class="pre">Function c, Object listeners</span>)
997  : void</div><div class="description"><div class="short">Sets observability on the passed class constructor.
998
999 This makes any event fired on any instance of the passed class a...</div><div class="long"><p>Sets observability on the passed class constructor.</p>
1000
1001 <p>This makes any event fired on any instance of the passed class also fire a single event through
1002 the <strong>class</strong> allowing for central handling of events on many instances at once.</p>
1003
1004 <p>Usage:</p>
1005
1006 <pre><code>Ext.util.Observable.observe(Ext.data.Connection);
1007 Ext.data.Connection.on('beforerequest', function(con, options) {
1008     console.log('Ajax request made to ' + options.url);
1009 });
1010 </code></pre>
1011 <h3 class="pa">Parameters</h3><ul><li><span class="pre">c</span> : Function<div class="sub-desc"><p>The class constructor to make observable.</p>
1012 </div></li><li><span class="pre">listeners</span> : Object<div class="sub-desc"><p>An object containing a series of listeners to add. See <a href="Ext.data.Store.html#addListener" rel="Ext.data.Store#addListener" class="docClass">addListener</a>.</p>
1013 </div></li></ul><h3 class="pa">Returns</h3><ul><li><span class="pre">void</span>&nbsp; &nbsp;
1014 </li></ul></div></div></div><div id="method-on" class="member inherited"><a href="Ext.data.Store.html#method-on" rel="method-on" class="expand more ar"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.util.Observable.html" class="definedIn docClass">Ext.util.Observable</a><br/><a href="../source/Observable.html#Ext-util.Observable-method-on" class="viewSource">view source</a></div><a name="on"></a><a name="method-on"></a><a href="Ext.data.Store.html#" rel="method-on" class="cls expand">on</a>(
1015 <span class="pre">String eventName, Function handler, [Object scope], [Object options]</span>)
1016  : void</div><div class="description"><div class="short"><p>Appends an event handler to this object (shorthand for <a href="Ext.data.Store.html#addListener" rel="Ext.data.Store#addListener" class="docClass">addListener</a>.)</p>
1017 </div><div class="long"><p>Appends an event handler to this object (shorthand for <a href="Ext.data.Store.html#addListener" rel="Ext.data.Store#addListener" class="docClass">addListener</a>.)</p>
1018 <h3 class="pa">Parameters</h3><ul><li><span class="pre">eventName</span> : String<div class="sub-desc"><p>The type of event to listen for</p>
1019 </div></li><li><span class="pre">handler</span> : Function<div class="sub-desc"><p>The method the event invokes</p>
1020 </div></li><li><span class="pre">scope</span> : Object<div class="sub-desc"><p>(optional) The scope (<code><b>this</b></code> reference) in which the handler function is executed.
1021 <b>If omitted, defaults to the object which fired the event.</b></p>
1022 </div></li><li><span class="pre">options</span> : Object<div class="sub-desc"><p>(optional) An object containing handler configuration.</p>
1023 </div></li></ul><h3 class="pa">Returns</h3><ul><li><span class="pre">void</span>&nbsp; &nbsp;
1024 </li></ul></div></div></div><div id="method-prefetch" class="member ni"><a href="Ext.data.Store.html#method-prefetch" rel="method-prefetch" class="expand more ar"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.data.Store.html" class="definedIn docClass">Ext.data.Store</a><br/><a href="../source/Store2.html#Ext-data.Store-method-prefetch" class="viewSource">view source</a></div><a name="prefetch"></a><a name="method-prefetch"></a><a href="Ext.data.Store.html#" rel="method-prefetch" class="cls expand">prefetch</a>(
1025 <span class="pre">Object options</span>)
1026  : void</div><div class="description"><div class="short"><p>Prefetches data the Store using its configured <a href="Ext.data.Store.html#proxy" rel="Ext.data.Store#proxy" class="docClass">proxy</a>.</p>
1027 </div><div class="long"><p>Prefetches data the Store using its configured <a href="Ext.data.Store.html#proxy" rel="Ext.data.Store#proxy" class="docClass">proxy</a>.</p>
1028 <h3 class="pa">Parameters</h3><ul><li><span class="pre">options</span> : Object<div class="sub-desc"><p>Optional config object, passed into the <a href="Ext.data.Operation.html" rel="Ext.data.Operation" class="docClass">Ext.data.Operation</a> object before loading.
1029 See <a href="Ext.data.Store.html#load" rel="Ext.data.Store#load" class="docClass">load</a></p>
1030 </div></li></ul><h3 class="pa">Returns</h3><ul><li><span class="pre">void</span>&nbsp; &nbsp;
1031 </li></ul></div></div></div><div id="method-prefetchPage" class="member ni"><a href="Ext.data.Store.html#method-prefetchPage" rel="method-prefetchPage" class="expand more ar"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.data.Store.html" class="definedIn docClass">Ext.data.Store</a><br/><a href="../source/Store2.html#Ext-data.Store-method-prefetchPage" class="viewSource">view source</a></div><a name="prefetchPage"></a><a name="method-prefetchPage"></a><a href="Ext.data.Store.html#" rel="method-prefetchPage" class="cls expand">prefetchPage</a>(
1032 <span class="pre">Number page, Object options, Object </span>)
1033  : void</div><div class="description"><div class="short"><p>Prefetches a page of data.</p>
1034 </div><div class="long"><p>Prefetches a page of data.</p>
1035 <h3 class="pa">Parameters</h3><ul><li><span class="pre">page</span> : Number<div class="sub-desc"><p>The page to prefetch</p>
1036 </div></li><li><span class="pre">options</span> : Object<div class="sub-desc"><p>Optional config object, passed into the <a href="Ext.data.Operation.html" rel="Ext.data.Operation" class="docClass">Ext.data.Operation</a> object before loading.
1037 See <a href="Ext.data.Store.html#load" rel="Ext.data.Store#load" class="docClass">load</a></p>
1038 </div></li><li><span class="pre"></span> : Object<div class="sub-desc">
1039 </div></li></ul><h3 class="pa">Returns</h3><ul><li><span class="pre">void</span>&nbsp; &nbsp;
1040 </li></ul></div></div></div><div id="method-previousPage" class="member ni"><a href="Ext.data.Store.html#method-previousPage" rel="method-previousPage" class="expand more ar"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.data.Store.html" class="definedIn docClass">Ext.data.Store</a><br/><a href="../source/Store2.html#Ext-data.Store-method-previousPage" class="viewSource">view source</a></div><a name="previousPage"></a><a name="method-previousPage"></a><a href="Ext.data.Store.html#" rel="method-previousPage" class="cls expand">previousPage</a> : void</div><div class="description"><div class="short"><p>Loads the previous 'page' in the current data set</p>
1041 </div><div class="long"><p>Loads the previous 'page' in the current data set</p>
1042 <h3 class="pa">Returns</h3><ul><li><span class="pre">void</span>&nbsp; &nbsp;
1043 </li></ul></div></div></div><div id="method-purgeRecords" class="member ni"><a href="Ext.data.Store.html#method-purgeRecords" rel="method-purgeRecords" class="expand more ar"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.data.Store.html" class="definedIn docClass">Ext.data.Store</a><br/><a href="../source/Store2.html#Ext-data.Store-method-purgeRecords" class="viewSource">view source</a></div><a name="purgeRecords"></a><a name="method-purgeRecords"></a><a href="Ext.data.Store.html#" rel="method-purgeRecords" class="cls expand">purgeRecords</a> : void</div><div class="description"><div class="short"><p>Purge the least recently used records in the prefetch if the purgeCount
1044 has been exceeded.</p>
1045 </div><div class="long"><p>Purge the least recently used records in the prefetch if the purgeCount
1046 has been exceeded.</p>
1047 <h3 class="pa">Returns</h3><ul><li><span class="pre">void</span>&nbsp; &nbsp;
1048 </li></ul></div></div></div><div id="method-queryBy" class="member ni"><a href="Ext.data.Store.html#method-queryBy" rel="method-queryBy" class="expand more ar"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.data.Store.html" class="definedIn docClass">Ext.data.Store</a><br/><a href="../source/Store2.html#Ext-data.Store-method-queryBy" class="viewSource">view source</a></div><a name="queryBy"></a><a name="method-queryBy"></a><a href="Ext.data.Store.html#" rel="method-queryBy" class="cls expand">queryBy</a>(
1049 <span class="pre">Function fn, [Object scope]</span>)
1050  : MixedCollection</div><div class="description"><div class="short">Query the cached records in this Store using a filtering function. The specified function
1051 will be called with each re...</div><div class="long"><p>Query the cached records in this Store using a filtering function. The specified function
1052 will be called with each record in this Store. If the function returns <tt>true</tt> the record is
1053 included in the results.</p>
1054 <h3 class="pa">Parameters</h3><ul><li><span class="pre">fn</span> : Function<div class="sub-desc"><p>The function to be called. It will be passed the following parameters:<ul>
1055 <li><b>record</b> : Ext.data.Model<p class="sub-desc">The <a href="Ext.data.Model.html" rel="Ext.data.Model" class="docClass">record</a>
1056 to test for filtering. Access field values using <a href="Ext.data.Model.html#get" rel="Ext.data.Model#get" class="docClass">Ext.data.Model.get</a>.</p></li>
1057 <li><b>id</b> : Object<p class="sub-desc">The ID of the Record passed.</p></li>
1058 </ul></p>
1059 </div></li><li><span class="pre">scope</span> : Object<div class="sub-desc"><p>(optional) The scope (<code>this</code> reference) in which the function is executed. Defaults to this Store.</p>
1060 </div></li></ul><h3 class="pa">Returns</h3><ul><li><span class="pre">MixedCollection</span>&nbsp; &nbsp;<p>Returns an <a href="Ext.util.MixedCollection.html" rel="Ext.util.MixedCollection" class="docClass">Ext.util.MixedCollection</a> of the matched records</p>
1061 </li></ul></div></div></div><div id="method-relayEvents" class="member inherited"><a href="Ext.data.Store.html#method-relayEvents" rel="method-relayEvents" class="expand more ar"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.util.Observable.html" class="definedIn docClass">Ext.util.Observable</a><br/><a href="../source/Observable.html#Ext-util.Observable-method-relayEvents" class="viewSource">view source</a></div><a name="relayEvents"></a><a name="method-relayEvents"></a><a href="Ext.data.Store.html#" rel="method-relayEvents" class="cls expand">relayEvents</a>(
1062 <span class="pre">Object origin, Array events, Object prefix</span>)
1063  : void</div><div class="description"><div class="short"><p>Relays selected events from the specified Observable as if the events were fired by <code><b>this</b></code>.</p>
1064 </div><div class="long"><p>Relays selected events from the specified Observable as if the events were fired by <code><b>this</b></code>.</p>
1065 <h3 class="pa">Parameters</h3><ul><li><span class="pre">origin</span> : Object<div class="sub-desc"><p>The Observable whose events this object is to relay.</p>
1066 </div></li><li><span class="pre">events</span> : Array<div class="sub-desc"><p>Array of event names to relay.</p>
1067 </div></li><li><span class="pre">prefix</span> : Object<div class="sub-desc">
1068 </div></li></ul><h3 class="pa">Returns</h3><ul><li><span class="pre">void</span>&nbsp; &nbsp;
1069 </li></ul></div></div></div><div id="method-releaseCapture" class="member inherited"><a href="Ext.data.Store.html#method-releaseCapture" rel="method-releaseCapture" class="expand more ar"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.util.Observable.html" class="definedIn docClass">Ext.util.Observable</a><br/><a href="../source/Observable.html#Ext-util.Observable-method-releaseCapture" class="viewSource">view source</a></div><a name="releaseCapture"></a><a name="method-releaseCapture"></a><a href="Ext.data.Store.html#" rel="method-releaseCapture" class="cls expand">releaseCapture</a>(
1070 <span class="pre">Observable o</span>)
1071  : void</div><div class="description"><div class="short"><p>Removes <b>all</b> added captures from the Observable.</p>
1072 </div><div class="long"><p>Removes <b>all</b> added captures from the Observable.</p>
1073 <h3 class="pa">Parameters</h3><ul><li><span class="pre">o</span> : Observable<div class="sub-desc"><p>The Observable to release</p>
1074 </div></li></ul><h3 class="pa">Returns</h3><ul><li><span class="pre">void</span>&nbsp; &nbsp;
1075 </li></ul></div></div></div><div id="method-remove" class="member ni"><a href="Ext.data.Store.html#method-remove" rel="method-remove" class="expand more ar"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.data.Store.html" class="definedIn docClass">Ext.data.Store</a><br/><a href="../source/Store2.html#Ext-data.Store-method-remove" class="viewSource">view source</a></div><a name="remove"></a><a name="method-remove"></a><a href="Ext.data.Store.html#" rel="method-remove" class="cls expand">remove</a>(
1076 <span class="pre">Ext.data.Model/Array records, Object isMove</span>)
1077  : void</div><div class="description"><div class="short">Removes the given record from the Store, firing the 'remove' event for each instance that is removed, plus a single
1078 '...</div><div class="long"><p>Removes the given record from the Store, firing the 'remove' event for each instance that is removed, plus a single
1079 'datachanged' event after removal.</p>
1080 <h3 class="pa">Parameters</h3><ul><li><span class="pre">records</span> : Ext.data.Model/Array<div class="sub-desc"><p>The <a href="Ext.data.Model.html" rel="Ext.data.Model" class="docClass">Ext.data.Model</a> instance or array of instances to remove</p>
1081 </div></li><li><span class="pre">isMove</span> : Object<div class="sub-desc">
1082 </div></li></ul><h3 class="pa">Returns</h3><ul><li><span class="pre">void</span>&nbsp; &nbsp;
1083 </li></ul></div></div></div><div id="method-removeAll" class="member ni"><a href="Ext.data.Store.html#method-removeAll" rel="method-removeAll" class="expand more ar"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.data.Store.html" class="definedIn docClass">Ext.data.Store</a><br/><a href="../source/Store2.html#Ext-data.Store-method-removeAll" class="viewSource">view source</a></div><a name="removeAll"></a><a name="method-removeAll"></a><a href="Ext.data.Store.html#" rel="method-removeAll" class="cls expand">removeAll</a>(
1084 <span class="pre">Boolean silent</span>)
1085  : void</div><div class="description"><div class="short"><p>Remove all items from the store.</p>
1086 </div><div class="long"><p>Remove all items from the store.</p>
1087 <h3 class="pa">Parameters</h3><ul><li><span class="pre">silent</span> : Boolean<div class="sub-desc"><p>Prevent the <code>clear</code> event from being fired.</p>
1088 </div></li></ul><h3 class="pa">Returns</h3><ul><li><span class="pre">void</span>&nbsp; &nbsp;
1089 </li></ul></div></div></div><div id="method-removeAt" class="member ni"><a href="Ext.data.Store.html#method-removeAt" rel="method-removeAt" class="expand more ar"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.data.Store.html" class="definedIn docClass">Ext.data.Store</a><br/><a href="../source/Store2.html#Ext-data.Store-method-removeAt" class="viewSource">view source</a></div><a name="removeAt"></a><a name="method-removeAt"></a><a href="Ext.data.Store.html#" rel="method-removeAt" class="cls expand">removeAt</a>(
1090 <span class="pre">Number index</span>)
1091  : void</div><div class="description"><div class="short"><p>Removes the model instance at the given index</p>
1092 </div><div class="long"><p>Removes the model instance at the given index</p>
1093 <h3 class="pa">Parameters</h3><ul><li><span class="pre">index</span> : Number<div class="sub-desc"><p>The record index</p>
1094 </div></li></ul><h3 class="pa">Returns</h3><ul><li><span class="pre">void</span>&nbsp; &nbsp;
1095 </li></ul></div></div></div><div id="method-removeListener" class="member inherited"><a href="Ext.data.Store.html#method-removeListener" rel="method-removeListener" class="expand more ar"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.util.Observable.html" class="definedIn docClass">Ext.util.Observable</a><br/><a href="../source/Observable.html#Ext-util.Observable-method-removeListener" class="viewSource">view source</a></div><a name="removeListener"></a><a name="method-removeListener"></a><a href="Ext.data.Store.html#" rel="method-removeListener" class="cls expand">removeListener</a>(
1096 <span class="pre">String eventName, Function handler, [Object scope]</span>)
1097  : void</div><div class="description"><div class="short"><p>Removes an event handler.</p>
1098 </div><div class="long"><p>Removes an event handler.</p>
1099 <h3 class="pa">Parameters</h3><ul><li><span class="pre">eventName</span> : String<div class="sub-desc"><p>The type of event the handler was associated with.</p>
1100 </div></li><li><span class="pre">handler</span> : Function<div class="sub-desc"><p>The handler to remove. <b>This must be a reference to the function passed into the <a href="Ext.data.Store.html#addListener" rel="Ext.data.Store#addListener" class="docClass">addListener</a> call.</b></p>
1101 </div></li><li><span class="pre">scope</span> : Object<div class="sub-desc"><p>(optional) The scope originally specified for the handler.</p>
1102 </div></li></ul><h3 class="pa">Returns</h3><ul><li><span class="pre">void</span>&nbsp; &nbsp;
1103 </li></ul></div></div></div><div id="method-removeManagedListener" class="member inherited"><a href="Ext.data.Store.html#method-removeManagedListener" rel="method-removeManagedListener" class="expand more ar"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.util.Observable.html" class="definedIn docClass">Ext.util.Observable</a><br/><a href="../source/Observable.html#Ext-util.Observable-method-removeManagedListener" class="viewSource">view source</a></div><a name="removeManagedListener"></a><a name="method-removeManagedListener"></a><a href="Ext.data.Store.html#" rel="method-removeManagedListener" class="cls expand">removeManagedListener</a>(
1104 <span class="pre">Observable|Element item, Object|String ename, Function fn, Object scope</span>)
1105  : void</div><div class="description"><div class="short"><p>Removes listeners that were added by the <a href="Ext.data.Store.html#mon" rel="Ext.data.Store#mon" class="docClass">mon</a> method.</p>
1106 </div><div class="long"><p>Removes listeners that were added by the <a href="Ext.data.Store.html#mon" rel="Ext.data.Store#mon" class="docClass">mon</a> method.</p>
1107 <h3 class="pa">Parameters</h3><ul><li><span class="pre">item</span> : Observable|Element<div class="sub-desc"><p>The item from which to remove a listener/listeners.</p>
1108 </div></li><li><span class="pre">ename</span> : Object|String<div class="sub-desc"><p>The event name, or an object containing event name properties.</p>
1109 </div></li><li><span class="pre">fn</span> : Function<div class="sub-desc"><p>Optional. If the <code>ename</code> parameter was an event name, this
1110 is the handler function.</p>
1111 </div></li><li><span class="pre">scope</span> : Object<div class="sub-desc"><p>Optional. If the <code>ename</code> parameter was an event name, this
1112 is the scope (<code>this</code> reference) in which the handler function is executed.</p>
1113 </div></li></ul><h3 class="pa">Returns</h3><ul><li><span class="pre">void</span>&nbsp; &nbsp;
1114 </li></ul></div></div></div><div id="method-resumeEvents" class="member inherited"><a href="Ext.data.Store.html#method-resumeEvents" rel="method-resumeEvents" class="expand more ar"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.util.Observable.html" class="definedIn docClass">Ext.util.Observable</a><br/><a href="../source/Observable.html#Ext-util.Observable-method-resumeEvents" class="viewSource">view source</a></div><a name="resumeEvents"></a><a name="method-resumeEvents"></a><a href="Ext.data.Store.html#" rel="method-resumeEvents" class="cls expand">resumeEvents</a> : void</div><div class="description"><div class="short">Resume firing events. (see suspendEvents)
1115 If events were suspended using the queueSuspended parameter, then all
1116 event...</div><div class="long"><p>Resume firing events. (see <a href="Ext.data.Store.html#suspendEvents" rel="Ext.data.Store#suspendEvents" class="docClass">suspendEvents</a>)
1117 If events were suspended using the <code><b>queueSuspended</b></code> parameter, then all
1118 events fired during event suspension will be sent to any listeners now.</p>
1119 <h3 class="pa">Returns</h3><ul><li><span class="pre">void</span>&nbsp; &nbsp;
1120 </li></ul></div></div></div><div id="method-setProxy" class="member inherited"><a href="Ext.data.Store.html#method-setProxy" rel="method-setProxy" class="expand more ar"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.data.AbstractStore.html" class="definedIn docClass">Ext.data.AbstractStore</a><br/><a href="../source/AbstractStore.html#Ext-data.AbstractStore-method-setProxy" class="viewSource">view source</a></div><a name="setProxy"></a><a name="method-setProxy"></a><a href="Ext.data.Store.html#" rel="method-setProxy" class="cls expand">setProxy</a>(
1121 <span class="pre">String|Object|Ext.data.proxy.Proxy proxy</span>)
1122  : Ext.data.proxy.Proxy</div><div class="description"><div class="short"><p>Sets the Store's Proxy by string, config object or Proxy instance</p>
1123 </div><div class="long"><p>Sets the Store's Proxy by string, config object or Proxy instance</p>
1124 <h3 class="pa">Parameters</h3><ul><li><span class="pre">proxy</span> : String|Object|Ext.data.proxy.Proxy<div class="sub-desc"><p>The new Proxy, which can be either a type string, a configuration object
1125 or an <a href="Ext.data.proxy.Proxy.html" rel="Ext.data.proxy.Proxy" class="docClass">Ext.data.proxy.Proxy</a> instance</p>
1126 </div></li></ul><h3 class="pa">Returns</h3><ul><li><span class="pre">Ext.data.proxy.Proxy</span>&nbsp; &nbsp;<p>The attached Proxy object</p>
1127 </li></ul></div></div></div><div id="method-sort" class="member inherited"><a href="Ext.data.Store.html#method-sort" rel="method-sort" class="expand more ar"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.util.Sortable.html" class="definedIn docClass">Ext.util.Sortable</a><br/><a href="../source/Sortable.html#Ext-util.Sortable-method-sort" class="viewSource">view source</a></div><a name="sort"></a><a name="method-sort"></a><a href="Ext.data.Store.html#" rel="method-sort" class="cls expand">sort</a>(
1128 <span class="pre">String|Array sorters, String direction, Object where, Object doSort</span>)
1129  : void</div><div class="description"><div class="short">Sorts the data in the Store by one or more of its properties. Example usage:
1130
1131
1132 //sort by a single field
1133 myStore.sort(...</div><div class="long"><p>Sorts the data in the Store by one or more of its properties. Example usage:</p>
1134
1135
1136 <pre><code>//sort by a single field
1137 myStore.sort('myField', 'DESC');
1138
1139 //sorting by multiple fields
1140 myStore.sort([
1141     {
1142         property : 'age',
1143         direction: 'ASC'
1144     },
1145     {
1146         property : 'name',
1147         direction: 'DESC'
1148     }
1149 ]);
1150 </code></pre>
1151
1152
1153 <p>Internally, Store converts the passed arguments into an array of <a href="Ext.util.Sorter.html" rel="Ext.util.Sorter" class="docClass">Ext.util.Sorter</a> instances, and delegates the actual
1154 sorting to its internal <a href="Ext.util.MixedCollection.html" rel="Ext.util.MixedCollection" class="docClass">Ext.util.MixedCollection</a>.</p>
1155
1156
1157 <p>When passing a single string argument to sort, Store maintains a ASC/DESC toggler per field, so this code:</p>
1158
1159
1160 <pre><code>store.sort('myField');
1161 store.sort('myField');
1162      </code></pre>
1163
1164
1165 <p>Is equivalent to this code, because Store handles the toggling automatically:</p>
1166
1167
1168 <pre><code>store.sort('myField', 'ASC');
1169 store.sort('myField', 'DESC');
1170 </code></pre>
1171
1172 <h3 class="pa">Parameters</h3><ul><li><span class="pre">sorters</span> : String|Array<div class="sub-desc"><p>Either a string name of one of the fields in this Store's configured <a href="Ext.data.Model.html" rel="Ext.data.Model" class="docClass">Model</a>,
1173 or an Array of sorter configurations.</p>
1174 </div></li><li><span class="pre">direction</span> : String<div class="sub-desc"><p>The overall direction to sort the data by. Defaults to "ASC".</p>
1175 </div></li><li><span class="pre">where</span> : Object<div class="sub-desc">
1176 </div></li><li><span class="pre">doSort</span> : Object<div class="sub-desc">
1177 </div></li></ul><h3 class="pa">Returns</h3><ul><li><span class="pre">void</span>&nbsp; &nbsp;
1178 </li></ul></div></div></div><div id="method-sum" class="member ni"><a href="Ext.data.Store.html#method-sum" rel="method-sum" class="expand more ar"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.data.Store.html" class="definedIn docClass">Ext.data.Store</a><br/><a href="../source/Store2.html#Ext-data.Store-method-sum" class="viewSource">view source</a></div><a name="sum"></a><a name="method-sum"></a><a href="Ext.data.Store.html#" rel="method-sum" class="cls expand">sum</a>(
1179 <span class="pre">String field, Boolean grouped</span>)
1180  : Number</div><div class="description"><div class="short"><p>Sums the value of <tt>property</tt> for each <a href="Ext.data.Model.html" rel="Ext.data.Model" class="docClass">record</a> between <tt>start</tt>
1181 and <tt>end</tt> and returns the result.</p>
1182 </div><div class="long"><p>Sums the value of <tt>property</tt> for each <a href="Ext.data.Model.html" rel="Ext.data.Model" class="docClass">record</a> between <tt>start</tt>
1183 and <tt>end</tt> and returns the result.</p>
1184 <h3 class="pa">Parameters</h3><ul><li><span class="pre">field</span> : String<div class="sub-desc"><p>A field in each record</p>
1185 </div></li><li><span class="pre">grouped</span> : Boolean<div class="sub-desc"><p>(Optional) True to perform the operation for each group
1186 in the store. The value returned will be an object literal with the key being the group
1187 name and the sum for that group being the value. The grouped parameter is only honored if
1188 the store has a groupField.</p>
1189 </div></li></ul><h3 class="pa">Returns</h3><ul><li><span class="pre">Number</span>&nbsp; &nbsp;<p>The sum</p>
1190 </li></ul></div></div></div><div id="method-suspendEvents" class="member inherited"><a href="Ext.data.Store.html#method-suspendEvents" rel="method-suspendEvents" class="expand more ar"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.util.Observable.html" class="definedIn docClass">Ext.util.Observable</a><br/><a href="../source/Observable.html#Ext-util.Observable-method-suspendEvents" class="viewSource">view source</a></div><a name="suspendEvents"></a><a name="method-suspendEvents"></a><a href="Ext.data.Store.html#" rel="method-suspendEvents" class="cls expand">suspendEvents</a>(
1191 <span class="pre">Boolean queueSuspended</span>)
1192  : void</div><div class="description"><div class="short"><p>Suspend the firing of all events. (see <a href="Ext.data.Store.html#resumeEvents" rel="Ext.data.Store#resumeEvents" class="docClass">resumeEvents</a>)</p>
1193 </div><div class="long"><p>Suspend the firing of all events. (see <a href="Ext.data.Store.html#resumeEvents" rel="Ext.data.Store#resumeEvents" class="docClass">resumeEvents</a>)</p>
1194 <h3 class="pa">Parameters</h3><ul><li><span class="pre">queueSuspended</span> : Boolean<div class="sub-desc"><p>Pass as true to queue up suspended events to be fired
1195 after the <a href="Ext.data.Store.html#resumeEvents" rel="Ext.data.Store#resumeEvents" class="docClass">resumeEvents</a> call instead of discarding all suspended events;</p>
1196 </div></li></ul><h3 class="pa">Returns</h3><ul><li><span class="pre">void</span>&nbsp; &nbsp;
1197 </li></ul></div></div></div><div id="method-sync" class="member inherited"><a href="Ext.data.Store.html#method-sync" rel="method-sync" class="expand more ar"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.data.AbstractStore.html" class="definedIn docClass">Ext.data.AbstractStore</a><br/><a href="../source/AbstractStore.html#Ext-data.AbstractStore-method-sync" class="viewSource">view source</a></div><a name="sync"></a><a name="method-sync"></a><a href="Ext.data.Store.html#" rel="method-sync" class="cls expand">sync</a> : void</div><div class="description"><div class="short">Synchronizes the Store with its Proxy. This asks the Proxy to batch together any new, updated
1198 and deleted records in ...</div><div class="long"><p>Synchronizes the Store with its Proxy. This asks the Proxy to batch together any new, updated
1199 and deleted records in the store, updating the Store's internal representation of the records
1200 as each operation completes.</p>
1201 <h3 class="pa">Returns</h3><ul><li><span class="pre">void</span>&nbsp; &nbsp;
1202 </li></ul></div></div></div><div id="method-un" class="member inherited"><a href="Ext.data.Store.html#method-un" rel="method-un" class="expand more ar"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.util.Observable.html" class="definedIn docClass">Ext.util.Observable</a><br/><a href="../source/Observable.html#Ext-util.Observable-method-un" class="viewSource">view source</a></div><a name="un"></a><a name="method-un"></a><a href="Ext.data.Store.html#" rel="method-un" class="cls expand">un</a>(
1203 <span class="pre">String eventName, Function handler, [Object scope]</span>)
1204  : void</div><div class="description"><div class="short"><p>Removes an event handler (shorthand for <a href="Ext.data.Store.html#removeListener" rel="Ext.data.Store#removeListener" class="docClass">removeListener</a>.)</p>
1205 </div><div class="long"><p>Removes an event handler (shorthand for <a href="Ext.data.Store.html#removeListener" rel="Ext.data.Store#removeListener" class="docClass">removeListener</a>.)</p>
1206 <h3 class="pa">Parameters</h3><ul><li><span class="pre">eventName</span> : String<div class="sub-desc"><p>The type of event the handler was associated with.</p>
1207 </div></li><li><span class="pre">handler</span> : Function<div class="sub-desc"><p>The handler to remove. <b>This must be a reference to the function passed into the <a href="Ext.data.Store.html#addListener" rel="Ext.data.Store#addListener" class="docClass">addListener</a> call.</b></p>
1208 </div></li><li><span class="pre">scope</span> : Object<div class="sub-desc"><p>(optional) The scope originally specified for the handler.</p>
1209 </div></li></ul><h3 class="pa">Returns</h3><ul><li><span class="pre">void</span>&nbsp; &nbsp;
1210 </li></ul></div></div></div></div><div class="m-events"><a name="events"></a><div class="definedBy">Defined By</div><h3 class="evt p">Events</h3><div id="event-add" class="member f inherited"><a href="Ext.data.Store.html#event-add" rel="event-add" class="expand more ar"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.data.AbstractStore.html" class="definedIn docClass">Ext.data.AbstractStore</a><br/><a href="../source/AbstractStore.html#Ext-data.AbstractStore-event-add" class="viewSource">view source</a></div><a name="add"></a><a name="event-add"></a><a href="Ext.data.Store.html#" rel="event-add" class="cls expand">add</a>(
1211 <span class="pre">Ext.data.Store store, Array records, Number index</span>)
1212 </div><div class="description"><div class="short"><p>Fired when a Model instance has been added to this Store</p>
1213 </div><div class="long"><p>Fired when a Model instance has been added to this Store</p>
1214 <h3 class="pa">Parameters</h3><ul><li><span class="pre">store</span> : Ext.data.Store<div class="sub-desc"><p>The store</p>
1215 </div></li><li><span class="pre">records</span> : Array<div class="sub-desc"><p>The Model instances that were added</p>
1216 </div></li><li><span class="pre">index</span> : Number<div class="sub-desc"><p>The index at which the instances were inserted</p>
1217 </div></li></ul></div></div></div><div id="event-beforeload" class="member inherited"><a href="Ext.data.Store.html#event-beforeload" rel="event-beforeload" class="expand more ar"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.data.AbstractStore.html" class="definedIn docClass">Ext.data.AbstractStore</a><br/><a href="../source/AbstractStore.html#Ext-data.AbstractStore-event-beforeload" class="viewSource">view source</a></div><a name="beforeload"></a><a name="event-beforeload"></a><a href="Ext.data.Store.html#" rel="event-beforeload" class="cls expand">beforeload</a>(
1218 <span class="pre">Ext.data.Store store, Ext.data.Operation operation</span>)
1219 </div><div class="description"><div class="short"><p>Event description</p>
1220 </div><div class="long"><p>Event description</p>
1221 <h3 class="pa">Parameters</h3><ul><li><span class="pre">store</span> : Ext.data.Store<div class="sub-desc"><p>This Store</p>
1222 </div></li><li><span class="pre">operation</span> : Ext.data.Operation<div class="sub-desc"><p>The <a href="Ext.data.Operation.html" rel="Ext.data.Operation" class="docClass">Ext.data.Operation</a> object that will be passed to the Proxy to load the Store</p>
1223 </div></li></ul></div></div></div><div id="event-beforeprefetch" class="member ni"><a href="Ext.data.Store.html#event-beforeprefetch" rel="event-beforeprefetch" class="expand more ar"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.data.Store.html" class="definedIn docClass">Ext.data.Store</a><br/><a href="../source/Store2.html#Ext-data.Store-event-beforeprefetch" class="viewSource">view source</a></div><a name="beforeprefetch"></a><a name="event-beforeprefetch"></a><a href="Ext.data.Store.html#" rel="event-beforeprefetch" class="cls expand">beforeprefetch</a>(
1224 <span class="pre">Ext.data.store this, Ext.data.Operation operation</span>)
1225 </div><div class="description"><div class="short"><p>Fires before a prefetch occurs. Return false to cancel.</p>
1226 </div><div class="long"><p>Fires before a prefetch occurs. Return false to cancel.</p>
1227 <h3 class="pa">Parameters</h3><ul><li><span class="pre">this</span> : Ext.data.store<div class="sub-desc">
1228 </div></li><li><span class="pre">operation</span> : Ext.data.Operation<div class="sub-desc"><p>The associated operation</p>
1229 </div></li></ul></div></div></div><div id="event-beforesync" class="member inherited"><a href="Ext.data.Store.html#event-beforesync" rel="event-beforesync" class="expand more ar"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.data.AbstractStore.html" class="definedIn docClass">Ext.data.AbstractStore</a><br/><a href="../source/AbstractStore.html#Ext-data.AbstractStore-event-beforesync" class="viewSource">view source</a></div><a name="beforesync"></a><a name="event-beforesync"></a><a href="Ext.data.Store.html#" rel="event-beforesync" class="cls expand">beforesync</a>(
1230 <span class="pre">Object options</span>)
1231 </div><div class="description"><div class="short"><p>Called before a call to <a href="Ext.data.Store.html#sync" rel="Ext.data.Store#sync" class="docClass">sync</a> is executed. Return false from any listener to cancel the synv</p>
1232 </div><div class="long"><p>Called before a call to <a href="Ext.data.Store.html#sync" rel="Ext.data.Store#sync" class="docClass">sync</a> is executed. Return false from any listener to cancel the synv</p>
1233 <h3 class="pa">Parameters</h3><ul><li><span class="pre">options</span> : Object<div class="sub-desc"><p>Hash of all records to be synchronized, broken down into create, update and destroy</p>
1234 </div></li></ul></div></div></div><div id="event-clear" class="member inherited"><a href="Ext.data.Store.html#event-clear" rel="event-clear" class="expand more ar"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.data.AbstractStore.html" class="definedIn docClass">Ext.data.AbstractStore</a><br/><a href="../source/AbstractStore.html#Ext-data.AbstractStore-event-clear" class="viewSource">view source</a></div><a name="clear"></a><a name="event-clear"></a><a href="Ext.data.Store.html#" rel="event-clear" class="cls expand">clear</a>(
1235 <span class="pre">Ext.data.Store this</span>)
1236 </div><div class="description"><div class="short"><p>Fired after the <a href="Ext.data.Store.html#removeAll" rel="Ext.data.Store#removeAll" class="docClass">removeAll</a> method is called.</p>
1237 </div><div class="long"><p>Fired after the <a href="Ext.data.Store.html#removeAll" rel="Ext.data.Store#removeAll" class="docClass">removeAll</a> method is called.</p>
1238 <h3 class="pa">Parameters</h3><ul><li><span class="pre">this</span> : Ext.data.Store<div class="sub-desc">
1239 </div></li></ul></div></div></div><div id="event-datachanged" class="member inherited"><a href="Ext.data.Store.html#event-datachanged" rel="event-datachanged" class="expand more ar"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.data.AbstractStore.html" class="definedIn docClass">Ext.data.AbstractStore</a><br/><a href="../source/AbstractStore.html#Ext-data.AbstractStore-event-datachanged" class="viewSource">view source</a></div><a name="datachanged"></a><a name="event-datachanged"></a><a href="Ext.data.Store.html#" rel="event-datachanged" class="cls expand">datachanged</a>(
1240 <span class="pre">Ext.data.Store this</span>)
1241 </div><div class="description"><div class="short">Fires whenever the records in the Store have changed in some way - this could include adding or removing records,
1242 or ...</div><div class="long"><p>Fires whenever the records in the Store have changed in some way - this could include adding or removing records,
1243 or updating the data in existing records</p>
1244 <h3 class="pa">Parameters</h3><ul><li><span class="pre">this</span> : Ext.data.Store<div class="sub-desc"><p>The data store</p>
1245 </div></li></ul></div></div></div><div id="event-groupchange" class="member ni"><a href="Ext.data.Store.html#event-groupchange" rel="event-groupchange" class="expand more ar"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.data.Store.html" class="definedIn docClass">Ext.data.Store</a><br/><a href="../source/Store2.html#Ext-data.Store-event-groupchange" class="viewSource">view source</a></div><a name="groupchange"></a><a name="event-groupchange"></a><a href="Ext.data.Store.html#" rel="event-groupchange" class="cls expand">groupchange</a>(
1246 <span class="pre">Ext.data.Store store, Array groupers</span>)
1247 </div><div class="description"><div class="short"><p>Fired whenever the grouping in the grid changes</p>
1248 </div><div class="long"><p>Fired whenever the grouping in the grid changes</p>
1249 <h3 class="pa">Parameters</h3><ul><li><span class="pre">store</span> : Ext.data.Store<div class="sub-desc"><p>The store</p>
1250 </div></li><li><span class="pre">groupers</span> : Array<div class="sub-desc"><p>The array of grouper objects</p>
1251 </div></li></ul></div></div></div><div id="event-load" class="member ni"><a href="Ext.data.Store.html#event-load" rel="event-load" class="expand more ar"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.data.Store.html" class="definedIn docClass">Ext.data.Store</a><br/><a href="../source/Store2.html#Ext-data.Store-event-load" class="viewSource">view source</a></div><a name="load"></a><a name="event-load"></a><a href="Ext.data.Store.html#" rel="event-load" class="cls expand">load</a>(
1252 <span class="pre">Ext.data.store this, Array records, Boolean successful, Ext.data.Operation operation</span>)
1253 </div><div class="description"><div class="short"><p>Fires whenever records have been prefetched</p>
1254 </div><div class="long"><p>Fires whenever records have been prefetched</p>
1255 <h3 class="pa">Parameters</h3><ul><li><span class="pre">this</span> : Ext.data.store<div class="sub-desc">
1256 </div></li><li><span class="pre">records</span> : Array<div class="sub-desc"><p>An array of records</p>
1257 </div></li><li><span class="pre">successful</span> : Boolean<div class="sub-desc"><p>True if the operation was successful.</p>
1258 </div></li><li><span class="pre">operation</span> : Ext.data.Operation<div class="sub-desc"><p>The associated operation</p>
1259 </div></li></ul></div></div></div><div id="event-remove" class="member inherited"><a href="Ext.data.Store.html#event-remove" rel="event-remove" class="expand more ar"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.data.AbstractStore.html" class="definedIn docClass">Ext.data.AbstractStore</a><br/><a href="../source/AbstractStore.html#Ext-data.AbstractStore-event-remove" class="viewSource">view source</a></div><a name="remove"></a><a name="event-remove"></a><a href="Ext.data.Store.html#" rel="event-remove" class="cls expand">remove</a>(
1260 <span class="pre">Ext.data.Store store, Ext.data.Model record, Number index</span>)
1261 </div><div class="description"><div class="short"><p>Fired when a Model instance has been removed from this Store</p>
1262 </div><div class="long"><p>Fired when a Model instance has been removed from this Store</p>
1263 <h3 class="pa">Parameters</h3><ul><li><span class="pre">store</span> : Ext.data.Store<div class="sub-desc"><p>The Store object</p>
1264 </div></li><li><span class="pre">record</span> : Ext.data.Model<div class="sub-desc"><p>The record that was removed</p>
1265 </div></li><li><span class="pre">index</span> : Number<div class="sub-desc"><p>The index of the record that was removed</p>
1266 </div></li></ul></div></div></div><div id="event-update" class="member inherited"><a href="Ext.data.Store.html#event-update" rel="event-update" class="expand more ar"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.data.AbstractStore.html" class="definedIn docClass">Ext.data.AbstractStore</a><br/><a href="../source/AbstractStore.html#Ext-data.AbstractStore-event-update" class="viewSource">view source</a></div><a name="update"></a><a name="event-update"></a><a href="Ext.data.Store.html#" rel="event-update" class="cls expand">update</a>(
1267 <span class="pre">Store this, Ext.data.Model record, String operation</span>)
1268 </div><div class="description"><div class="short"><p>Fires when a Record has been updated</p>
1269 </div><div class="long"><p>Fires when a Record has been updated</p>
1270 <h3 class="pa">Parameters</h3><ul><li><span class="pre">this</span> : Store<div class="sub-desc">
1271 </div></li><li><span class="pre">record</span> : Ext.data.Model<div class="sub-desc"><p>The Model instance that was updated</p>
1272 </div></li><li><span class="pre">operation</span> : String<div class="sub-desc"><p>The update operation being performed. Value may be one of:</p>
1273
1274 <pre><code>               Ext.data.Model.EDIT
1275                Ext.data.Model.REJECT
1276                Ext.data.Model.COMMIT
1277 </code></pre>
1278
1279 </div></li></ul></div></div></div></div></div></div></div><div id="pageContent"></div></div></div></div></body></html>