docs/symbols/Roo.data.Store.html
[roojs1] / docs / symbols / Roo.data.Store.html
1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
2
3
4 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
5
6         <head>
7                 <meta http-equiv="content-type" content="text/html; charset=undefined" />
8                 <meta name="generator" content="JsDoc Toolkit" />
9                 
10                 
11                 <title>JsDoc Reference - Roo.data.Store</title>
12                 
13                 
14         <link rel="stylesheet" type="text/css" href="../../css/roojs.css" />            
15         <link rel="stylesheet" type="text/css" href="../default.css" />
16         
17         
18         <script type="text/javascript" src="../page.js">
19         
20         </script>
21          
22                 
23         </head>
24
25         <body onload="RooDocsPage.onload();">
26          
27         
28 <div class="body-wrap">
29
30     <!-- ============================== links to methods. ================================= --> 
31
32     <div class="top-tools">
33     <!--
34         <a class="inner-link" href="#Roo.data.Store-props"><img src="resources/s.gif" class="item-icon icon-prop">Properties</a>
35         <a class="inner-link" href="#Roo.data.Store-methods"><img src="resources/s.gif" class="item-icon icon-method">Methods</a>
36         <a class="inner-link" href="#Roo.data.Store-events"><img src="resources/s.gif" class="item-icon icon-event">Events</a>
37         <a class="inner-link" href="#Roo.data.Store-configs"><img src="resources/s.gif" class="item-icon icon-config">Config Options</a>
38         <a class="bookmark" href="NEED_TO_CREATE_DIRECT_LINK_HREF"><img src="resources/s.gif" class="item-icon icon-fav">Direct Link</a>
39         -->
40     </div>
41
42     
43 <!-- ============================== inheritance Block. ================================= -->    
44         
45                 <div class="inheritance res-block">
46                    <pre class="res-block-inner"><a href="./Roo.util.Observable.html#constructor" roo:cls="Roo.util.Observable.html#constructor">Roo.util.Observable</a>
47 <img src="../../images/default/s.gif" height="1"  width="20"/><img class="elbow" src="../../images/default/tree/elbow-end.gif"/>Roo.data.Store 
48
49                    </pre>
50                 </div>
51        
52 <!-- ============================== class title / details ============================ -->
53     
54     
55     <h1 class="classTitle">
56                                 
57                                 Class Roo.data.Store
58                         </h1>
59                         
60     <table cellspacing="0" class="class-summary-table">
61         
62                 <tr><td class="label">Package:</td><td class="hd-info">Roo.data</td></tr>
63         
64         <tr><td class="label">Defined In:</td><td class="hd-info">
65                         
66                                         <a href="./src/Roo_data_Store.js.html">Roo/data/Store.js</a>.
67                         
68         </td></tr>
69         <tr><td class="label">Class:</td><td class="hd-info">Store</td></tr>
70         
71         
72         
73         
74                 <tr><td class="label">Extends:</td><td class="hd-info">
75                         <a href="./Roo.util.Observable.html#constructor" roo:cls="Roo.util.Observable.html#constructor">Roo.util.Observable</a>
76         
77                 </td></tr>    
78         
79         
80     </table>
81
82     
83 <!-- ============================== class summary ========================== -->                        
84     <div class="description">
85         The Store class encapsulates a client side cache of {<b>link</b> Roo.data.Record} objects which provide input data<br/>for widgets such as the Roo.grid.Grid, or the Roo.form.ComboBox.<br><br/><p><br/>A Store object uses an implementation of {<b>link</b> Roo.data.DataProxy} to access a data object unless you call loadData() directly and pass in your data. The Store object<br/>has no knowledge of the format of the data returned by the Proxy.<br><br/><p><br/>A Store object uses its configured implementation of {<b>link</b> Roo.data.DataReader} to create {<b>link</b> Roo.data.Record}<br/>instances from the data object. These records are cached and made available through accessor functions.
86     </div>
87
88         
89 <!-- ============================== Class comment block... ========================== -->                                       
90
91 <div class="comments">
92         <b>Class Comments / Notes</B> =>  
93         <u onclick="parent.CommentDialog.showCommentId = 'Roo.data.Store';">[Add Your comment/notes about this class]</u>
94         <br/>
95         <iframe frameborder="0"  id="comments-Roo.data" style="border: none;width:100%;" 
96                 src="/blog.php/GtkDjsComments/Roo.data.Store.html"></iframe>
97 </div>
98         
99
100                 
101 <!-- ============================== config options ========================== -->                                               
102                  
103     
104     
105                 
106     <div class="hr"></div>
107     <a id="Roo.data.Store-configs"></a>
108                 
109     
110      
111     
112         
113       <table cellspacing="0" class="member-table">   
114       <caption>Config Options (Usually are also Properties)</caption>
115     
116         
117         <tr>
118             <th class="sig-header" colspan="2">Options</th>
119             
120             <th class="msource-header">Defined By</th>
121         </tr>
122         
123         
124         
125         
126         
127                 <tr class="config-row expandable config-row-alt0 notInherited">
128                    <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
129                     <td class="sig">
130
131                         <a id="Roo.data.Store-cfg-baseParams" name=".baseParams"></a>
132                         <div class="fixedFont">
133                                 <b  class="itemname">baseParams</b> : <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a>
134                                 
135                                 
136                         </div>
137                   
138                         <div class="mdesc">
139                             <div class="short">An object containing properties which are to be sent as parameters<br/>on any HTTP request</div> 
140                         </div>
141                         
142                         <div class="mdesc">
143                             <div class="long">An object containing properties which are to be sent as parameters<br/>on any HTTP request</div> 
144                         </div>
145                         
146                         
147
148                     </td>
149                     <td class="msource">
150                         
151                         Roo.data.Store
152                                 
153                     </td>
154                 </tr>
155         
156         
157                 <tr class="config-row expandable config-row-alt1 notInherited">
158                    <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
159                     <td class="sig">
160
161                         <a id="Roo.data.Store-cfg-data" name=".data"></a>
162                         <div class="fixedFont">
163                                 <b  class="itemname">data</b> : <a href="./Array.html#constructor" roo:cls="Array.html#constructor">Array</a>
164                                 
165                                 
166                         </div>
167                   
168                         <div class="mdesc">
169                             <div class="short">Inline data to be loaded when the store is initialized.</div> 
170                         </div>
171                         
172                         <div class="mdesc">
173                             <div class="long">Inline data to be loaded when the store is initialized.</div> 
174                         </div>
175                         
176                         
177
178                     </td>
179                     <td class="msource">
180                         
181                         Roo.data.Store
182                                 
183                     </td>
184                 </tr>
185         
186         
187                 <tr class="config-row expandable config-row-alt0 notInherited">
188                    <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
189                     <td class="sig">
190
191                         <a id="Roo.data.Store-cfg-isLocal" name=".isLocal"></a>
192                         <div class="fixedFont">
193                                 <b  class="itemname">isLocal</b> : boolean
194                                 
195                                 
196                         </div>
197                   
198                         <div class="mdesc">
199                             <div class="short">flag if data is locally available (and can be always looked up<br/>without a remote query - used by combo/forms at present.</div> 
200                         </div>
201                         
202                         <div class="mdesc">
203                             <div class="long">flag if data is locally available (and can be always looked up<br/>without a remote query - used by combo/forms at present.</div> 
204                         </div>
205                         
206                         
207
208                     </td>
209                     <td class="msource">
210                         
211                         Roo.data.Store
212                                 
213                     </td>
214                 </tr>
215         
216         
217                 <tr class="config-row expandable config-row-alt1 notInherited">
218                    <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
219                     <td class="sig">
220
221                         <a id="Roo.data.Store-cfg-proxy" name=".proxy"></a>
222                         <div class="fixedFont">
223                                 <b  class="itemname">proxy</b> : <a href="./Roo.data.DataProxy.html#constructor" roo:cls="Roo.data.DataProxy.html#constructor">Roo.data.DataProxy</a>
224                                 
225                                 
226                         </div>
227                   
228                         <div class="mdesc">
229                             <div class="short">The Proxy object which provides access to a data object.</div> 
230                         </div>
231                         
232                         <div class="mdesc">
233                             <div class="long">The Proxy object which provides access to a data object.</div> 
234                         </div>
235                         
236                         
237
238                     </td>
239                     <td class="msource">
240                         
241                         Roo.data.Store
242                                 
243                     </td>
244                 </tr>
245         
246         
247                 <tr class="config-row expandable config-row-alt0 notInherited">
248                    <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
249                     <td class="sig">
250
251                         <a id="Roo.data.Store-cfg-pruneModifiedRecords" name=".pruneModifiedRecords"></a>
252                         <div class="fixedFont">
253                                 <b  class="itemname">pruneModifiedRecords</b> : boolean
254                                 
255                                 
256                         </div>
257                   
258                         <div class="mdesc">
259                             <div class="short">True to clear all modified record information each time the store is<br/>loaded or when a record is removed.</div> 
260                         </div>
261                         
262                         <div class="mdesc">
263                             <div class="long">True to clear all modified record information each time the store is<br/>loaded or when a record is removed. (defaults to false).</div> 
264                         </div>
265                         
266                         
267
268                     </td>
269                     <td class="msource">
270                         
271                         Roo.data.Store
272                                 
273                     </td>
274                 </tr>
275         
276         
277                 <tr class="config-row expandable config-row-alt1 notInherited">
278                    <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
279                     <td class="sig">
280
281                         <a id="Roo.data.Store-cfg-reader" name=".reader"></a>
282                         <div class="fixedFont">
283                                 <b  class="itemname">reader</b> : Roo.data.Reader
284                                 
285                                 
286                         </div>
287                   
288                         <div class="mdesc">
289                             <div class="short">The Reader object which processes the data object and returns<br/>an Array of Roo.data.record objects which are cached keyed by their <em>id</em> property.</div> 
290                         </div>
291                         
292                         <div class="mdesc">
293                             <div class="long">The Reader object which processes the data object and returns<br/>an Array of Roo.data.record objects which are cached keyed by their <em>id</em> property.</div> 
294                         </div>
295                         
296                         
297
298                     </td>
299                     <td class="msource">
300                         
301                         Roo.data.Store
302                                 
303                     </td>
304                 </tr>
305         
306         
307                 <tr class="config-row expandable config-row-alt0 notInherited">
308                    <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
309                     <td class="sig">
310
311                         <a id="Roo.data.Store-cfg-remoteSort" name=".remoteSort"></a>
312                         <div class="fixedFont">
313                                 <b  class="itemname">remoteSort</b> : boolean
314                                 
315                                 
316                         </div>
317                   
318                         <div class="mdesc">
319                             <div class="short">True if sorting is to be handled by requesting the Proxy to provide a refreshed<br/>version of the data object in sorted order, as opposed to sorting the Record cache in place (defaults to false).</div> 
320                         </div>
321                         
322                         <div class="mdesc">
323                             <div class="long">True if sorting is to be handled by requesting the Proxy to provide a refreshed<br/>version of the data object in sorted order, as opposed to sorting the Record cache in place (defaults to false).</div> 
324                         </div>
325                         
326                         
327
328                     </td>
329                     <td class="msource">
330                         
331                         Roo.data.Store
332                                 
333                     </td>
334                 </tr>
335         
336         
337                 <tr class="config-row expandable config-row-alt1 notInherited">
338                    <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
339                     <td class="sig">
340
341                         <a id="Roo.data.Store-cfg-sortInfo" name=".sortInfo"></a>
342                         <div class="fixedFont">
343                                 <b  class="itemname">sortInfo</b> : <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a>
344                                 
345                                 
346                         </div>
347                   
348                         <div class="mdesc">
349                             <div class="short">A config object in the format: {field: "fieldName", direction: "ASC|DESC"}</div> 
350                         </div>
351                         
352                         <div class="mdesc">
353                             <div class="long">A config object in the format: {field: "fieldName", direction: "ASC|DESC"}</div> 
354                         </div>
355                         
356                         
357
358                     </td>
359                     <td class="msource">
360                         
361                         Roo.data.Store
362                                 
363                     </td>
364                 </tr>
365         
366         
367     </table>
368                 
369   
370   
371   
372   
373   
374   
375   
376   
377   <!-- ============================== public properties ==================== -->        
378   
379   
380   
381     <a id="Roo.data.Store-props"></a>      
382     
383     
384
385     
386     
387      <table cellspacing="0" class="member-table">
388       <caption class="Empty">Public Properties - Has None</caption>
389      </table>
390     
391     
392      
393     
394   <!-- ============================== methods summary / details ======================== -->
395   
396   
397   <a id="Roo.data.Store-methods"></a>
398         <!-- constructor?? -->
399         
400         <!-- static's first 
401         
402         
403         -->
404         
405         <!-- then dynamics first -->
406         
407   
408   
409     
410     
411     
412       <table cellspacing="0" class="member-table">
413       <caption>Public Methods</caption>
414         <tr>
415             <th class="sig-header" colspan="2">Method</th>            
416             <th class="msource-header">Defined By</th>
417
418         </tr>
419         
420         
421         
422          
423         
424         
425           
426           <tr class="method-row config-row-alt0 expandable notInherited">
427             <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
428            
429            
430             <td class="sig">
431                 <a id="Roo.data-method-Store"   name=".Store"></a>
432                 <div class="fixedFont">
433                         <span class="attributes">new <B>Roo.data.</B></span><b class="itemname">Store</b>
434                                 
435                                  (<a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a> <B><i>config</i></B>) 
436                         
437                                 
438                         
439                 </div>
440                 <div class="mdesc">
441                 
442                  
443                         <div class="short">Create a new Roo.data.Store</div> 
444                  
445                  
446                     <div class="long">
447                         
448                         
449                         
450                                 Create a new Roo.data.Store
451                         
452                         
453                                 <dl class="detailList">
454                                 <dt class="heading">Parameters:</dt>
455                                 
456                                         <dt>
457                                                 <span class="fixedFont"><a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a></span>  <b>config</b>
458                                                 
459                                         </dt>
460                                         <dd>A config object containing the objects needed for the Store to access data,<br/>and read the data into Records.</dd>
461                                 
462                                 </dl>
463                         
464                         
465                         
466                         
467                         
468                         
469                         
470
471                     
472                     
473                      
474                     </div>                    
475                 </div>
476
477             </td>
478             <td class="msource">
479                 &nbsp;
480             </td>
481         </tr>
482         
483           
484           <tr class="method-row config-row-alt1 expandable notInherited">
485             <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
486            
487            
488             <td class="sig">
489                 <a id="Roo.data.Store-method-add"   name=".add"></a>
490                 <div class="fixedFont">
491                         <span class="attributes"></span><b class="itemname">add</b>
492                                 
493                                  (<a href="./Roo.data.Record.html#constructor" roo:cls="Roo.data.Record.html#constructor">Roo.data.Record</a>[] <B><i>records</i></B>) 
494                         
495                                 
496                         
497                 </div>
498                 <div class="mdesc">
499                 
500                    <div class="short">Add Records to the Store and fires the add event.</div> 
501                  
502                  
503                  
504                     <div class="long">
505                         
506                                 Add Records to the Store and fires the add event.
507                     
508                                 
509                         
510                         
511                         
512                         
513                                 <dl class="detailList">
514                                 <dt class="heading">Parameters:</dt>
515                                 
516                                         <dt>
517                                                 <span class="fixedFont"><a href="./Roo.data.Record.html#constructor" roo:cls="Roo.data.Record.html#constructor">Roo.data.Record</a>[]</span>  <b>records</b>
518                                                 
519                                         </dt>
520                                         <dd>An Array of Roo.data.Record objects to add to the cache.</dd>
521                                 
522                                 </dl>
523                         
524                         
525                         
526                         
527                         
528                         
529                         
530
531                     
532                     
533                      
534                     </div>                    
535                 </div>
536
537             </td>
538             <td class="msource">
539                 
540                         Roo.data.Store
541                 &nbsp;
542             </td>
543         </tr>
544         
545           
546           <tr class="method-row config-row-alt0 expandable notInherited">
547             <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
548            
549            
550             <td class="sig">
551                 <a id="Roo.data.Store-method-clearFilter"   name=".clearFilter"></a>
552                 <div class="fixedFont">
553                         <span class="attributes"></span><b class="itemname">clearFilter</b>
554                                 
555                                  (<a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Boolean">Boolean</a> <B><i>suppressEvent</i></B>) 
556                         
557                                 
558                         
559                 </div>
560                 <div class="mdesc">
561                 
562                    <div class="short">Revert to a view of the Record cache with no filtering applied.</div> 
563                  
564                  
565                  
566                     <div class="long">
567                         
568                                 Revert to a view of the Record cache with no filtering applied.
569                     
570                                 
571                         
572                         
573                         
574                         
575                                 <dl class="detailList">
576                                 <dt class="heading">Parameters:</dt>
577                                 
578                                         <dt>
579                                                 <span class="fixedFont"><a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Boolean">Boolean</a></span>  <b>suppressEvent</b>
580                                                 
581                                         </dt>
582                                         <dd>If true the filter is cleared silently without notifying listeners</dd>
583                                 
584                                 </dl>
585                         
586                         
587                         
588                         
589                         
590                         
591                         
592
593                     
594                     
595                      
596                     </div>                    
597                 </div>
598
599             </td>
600             <td class="msource">
601                 
602                         Roo.data.Store
603                 &nbsp;
604             </td>
605         </tr>
606         
607           
608           <tr class="method-row config-row-alt1 expandable notInherited">
609             <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
610            
611            
612             <td class="sig">
613                 <a id="Roo.data.Store-method-collect"   name=".collect"></a>
614                 <div class="fixedFont">
615                         <span class="attributes"></span><b class="itemname">collect</b>
616                                 
617                                  (<a href="./String.html#constructor" roo:cls="String.html#constructor">String</a> <B><i>dataIndex</i></B>, <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Boolean">Boolean</a> <B><i>allowNull</i></B>, <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Boolean">Boolean</a> <B><i>bypassFilter</i></B>) 
618                         
619                                 
620                                          : 
621                                         
622                                                 
623                                                 <a href="./Array.html#constructor" roo:cls="Array.html#constructor">Array</a>
624                                         
625                                         
626                                         
627                                 
628                         
629                 </div>
630                 <div class="mdesc">
631                 
632                    <div class="short">Collects unique values for a particular dataIndex from this store.</div> 
633                  
634                  
635                  
636                     <div class="long">
637                         
638                                 Collects unique values for a particular dataIndex from this store.
639                     
640                                 
641                         
642                         
643                         
644                         
645                                 <dl class="detailList">
646                                 <dt class="heading">Parameters:</dt>
647                                 
648                                         <dt>
649                                                 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a></span>  <b>dataIndex</b>
650                                                 
651                                         </dt>
652                                         <dd>The property to collect</dd>
653                                 
654                                         <dt>
655                                                 <span class="fixedFont"><a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Boolean">Boolean</a></span>  <b>allowNull</b>
656                                                 
657                                         </dt>
658                                         <dd>(optional) Pass true to allow null, undefined or empty string values</dd>
659                                 
660                                         <dt>
661                                                 <span class="fixedFont"><a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Boolean">Boolean</a></span>  <b>bypassFilter</b>
662                                                 
663                                         </dt>
664                                         <dd>(optional) Pass true to collect from all records, even ones which are filtered</dd>
665                                 
666                                 </dl>
667                         
668                         
669                         
670                         
671                         
672                                 <dl class="detailList">
673                                 <dt class="heading">Returns:</dt>
674                                 
675                                         <dd><span class="fixedFont"><a href="./Array.html#constructor" roo:cls="Array.html#constructor">Array</a></span>  An array of the unique values</dd>
676                                 
677                                 </dl>
678                         
679                         
680                         
681
682                     
683                     
684                      
685                     </div>                    
686                 </div>
687
688             </td>
689             <td class="msource">
690                 
691                         Roo.data.Store
692                 &nbsp;
693             </td>
694         </tr>
695         
696           
697           <tr class="method-row config-row-alt0 expandable notInherited">
698             <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
699            
700            
701             <td class="sig">
702                 <a id="Roo.data.Store-method-commitChanges"   name=".commitChanges"></a>
703                 <div class="fixedFont">
704                         <span class="attributes"></span><b class="itemname">commitChanges</b>
705                                 
706                                  () 
707                         
708                                 
709                         
710                 </div>
711                 <div class="mdesc">
712                 
713                    <div class="short">Commit all Records with outstanding changes.</div> 
714                  
715                  
716                  
717                     <div class="long">
718                         
719                                 Commit all Records with outstanding changes. To handle updates for changes, subscribe to the<br/>Store's "update" event, and perform updating when the third parameter is Roo.data.Record.COMMIT.
720                     
721                                 
722                         
723                         
724                         
725                         
726                         
727                         
728                         
729                         
730                         
731                         
732
733                     
734                     
735                      
736                     </div>                    
737                 </div>
738
739             </td>
740             <td class="msource">
741                 
742                         Roo.data.Store
743                 &nbsp;
744             </td>
745         </tr>
746         
747           
748           <tr class="method-row config-row-alt1 expandable notInherited">
749             <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
750            
751            
752             <td class="sig">
753                 <a id="Roo.data.Store-method-each"   name=".each"></a>
754                 <div class="fixedFont">
755                         <span class="attributes"></span><b class="itemname">each</b>
756                                 
757                                  (<a href="./Function.html#constructor" roo:cls="Function.html#constructor">Function</a> <B><i>fn</i></B>, <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a> <B><i>scope</i></B>) 
758                         
759                                 
760                         
761                 </div>
762                 <div class="mdesc">
763                 
764                    <div class="short">Calls the specified function for each of the Records in the cache.</div> 
765                  
766                  
767                  
768                     <div class="long">
769                         
770                                 Calls the specified function for each of the Records in the cache.
771                     
772                                 
773                         
774                         
775                         
776                         
777                                 <dl class="detailList">
778                                 <dt class="heading">Parameters:</dt>
779                                 
780                                         <dt>
781                                                 <span class="fixedFont"><a href="./Function.html#constructor" roo:cls="Function.html#constructor">Function</a></span>  <b>fn</b>
782                                                 
783                                         </dt>
784                                         <dd>The function to call. The Record is passed as the first parameter.<br/>Returning <em>false</em> aborts and exits the iteration.</dd>
785                                 
786                                         <dt>
787                                                 <span class="fixedFont"><a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a></span>  <b>scope</b>
788                                                 
789                                         </dt>
790                                         <dd>(optional) The scope in which to call the function (defaults to the Record).</dd>
791                                 
792                                 </dl>
793                         
794                         
795                         
796                         
797                         
798                         
799                         
800
801                     
802                     
803                      
804                     </div>                    
805                 </div>
806
807             </td>
808             <td class="msource">
809                 
810                         Roo.data.Store
811                 &nbsp;
812             </td>
813         </tr>
814         
815           
816           <tr class="method-row config-row-alt0 expandable notInherited">
817             <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
818            
819            
820             <td class="sig">
821                 <a id="Roo.data.Store-method-filter"   name=".filter"></a>
822                 <div class="fixedFont">
823                         <span class="attributes"></span><b class="itemname">filter</b>
824                                 
825                                  (<a href="./String.html#constructor" roo:cls="String.html#constructor">String</a> <B><i>field</i></B>, <a href="./String.html#constructor" roo:cls="String.html#constructor">String</a>/RegExp <B><i>value</i></B>, <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Boolean">Boolean</a> <B><i>anyMatch</i></B>) 
826                         
827                                 
828                         
829                 </div>
830                 <div class="mdesc">
831                 
832                    <div class="short">Filter the records by a specified property.</div> 
833                  
834                  
835                  
836                     <div class="long">
837                         
838                                 Filter the records by a specified property.
839                     
840                                 
841                         
842                         
843                         
844                         
845                                 <dl class="detailList">
846                                 <dt class="heading">Parameters:</dt>
847                                 
848                                         <dt>
849                                                 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a></span>  <b>field</b>
850                                                 
851                                         </dt>
852                                         <dd>A field on your records</dd>
853                                 
854                                         <dt>
855                                                 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a>/RegExp</span>  <b>value</b>
856                                                 
857                                         </dt>
858                                         <dd>Either a string that the field<br/>should start with or a RegExp to test against the field</dd>
859                                 
860                                         <dt>
861                                                 <span class="fixedFont"><a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Boolean">Boolean</a></span>  <b>anyMatch</b>
862                                                 
863                                         </dt>
864                                         <dd>True to match any part not just the beginning</dd>
865                                 
866                                 </dl>
867                         
868                         
869                         
870                         
871                         
872                         
873                         
874
875                     
876                     
877                      
878                     </div>                    
879                 </div>
880
881             </td>
882             <td class="msource">
883                 
884                         Roo.data.Store
885                 &nbsp;
886             </td>
887         </tr>
888         
889           
890           <tr class="method-row config-row-alt1 expandable notInherited">
891             <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
892            
893            
894             <td class="sig">
895                 <a id="Roo.data.Store-method-filterBy"   name=".filterBy"></a>
896                 <div class="fixedFont">
897                         <span class="attributes"></span><b class="itemname">filterBy</b>
898                                 
899                                  (<a href="./Function.html#constructor" roo:cls="Function.html#constructor">Function</a> <B><i>fn</i></B>, <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a> <B><i>scope</i></B>) 
900                         
901                                 
902                         
903                 </div>
904                 <div class="mdesc">
905                 
906                    <div class="short">Filter by a function.</div> 
907                  
908                  
909                  
910                     <div class="long">
911                         
912                                 Filter by a function. The specified function will be called with each<br/>record in this data source. If the function returns true the record is included,<br/>otherwise it is filtered.
913                     
914                                 
915                         
916                         
917                         
918                         
919                                 <dl class="detailList">
920                                 <dt class="heading">Parameters:</dt>
921                                 
922                                         <dt>
923                                                 <span class="fixedFont"><a href="./Function.html#constructor" roo:cls="Function.html#constructor">Function</a></span>  <b>fn</b>
924                                                 
925                                         </dt>
926                                         <dd>The function to be called, it will receive 2 args (record, id)</dd>
927                                 
928                                         <dt>
929                                                 <span class="fixedFont"><a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a></span>  <b>scope</b>
930                                                 
931                                         </dt>
932                                         <dd>(optional) The scope of the function (defaults to this)</dd>
933                                 
934                                 </dl>
935                         
936                         
937                         
938                         
939                         
940                         
941                         
942
943                     
944                     
945                      
946                     </div>                    
947                 </div>
948
949             </td>
950             <td class="msource">
951                 
952                         Roo.data.Store
953                 &nbsp;
954             </td>
955         </tr>
956         
957           
958           <tr class="method-row config-row-alt0 expandable notInherited">
959             <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
960            
961            
962             <td class="sig">
963                 <a id="Roo.data.Store-method-getAt"   name=".getAt"></a>
964                 <div class="fixedFont">
965                         <span class="attributes"></span><b class="itemname">getAt</b>
966                                 
967                                  (<a href="./Number.html#constructor" roo:cls="Number.html#constructor">Number</a> <B><i>index</i></B>) 
968                         
969                                 
970                                          : 
971                                         
972                                                 
973                                                 <a href="./Roo.data.Record.html#constructor" roo:cls="Roo.data.Record.html#constructor">Roo.data.Record</a>
974                                         
975                                         
976                                         
977                                 
978                         
979                 </div>
980                 <div class="mdesc">
981                 
982                    <div class="short">Get the Record at the specified index.</div> 
983                  
984                  
985                  
986                     <div class="long">
987                         
988                                 Get the Record at the specified index.
989                     
990                                 
991                         
992                         
993                         
994                         
995                                 <dl class="detailList">
996                                 <dt class="heading">Parameters:</dt>
997                                 
998                                         <dt>
999                                                 <span class="fixedFont"><a href="./Number.html#constructor" roo:cls="Number.html#constructor">Number</a></span>  <b>index</b>
1000                                                 
1001                                         </dt>
1002                                         <dd>The index of the Record to find.</dd>
1003                                 
1004                                 </dl>
1005                         
1006                         
1007                         
1008                         
1009                         
1010                                 <dl class="detailList">
1011                                 <dt class="heading">Returns:</dt>
1012                                 
1013                                         <dd><span class="fixedFont"><a href="./Roo.data.Record.html#constructor" roo:cls="Roo.data.Record.html#constructor">Roo.data.Record</a></span>  The Record at the passed index. Returns undefined if not found.</dd>
1014                                 
1015                                 </dl>
1016                         
1017                         
1018                         
1019
1020                     
1021                     
1022                      
1023                     </div>                    
1024                 </div>
1025
1026             </td>
1027             <td class="msource">
1028                 
1029                         Roo.data.Store
1030                 &nbsp;
1031             </td>
1032         </tr>
1033         
1034           
1035           <tr class="method-row config-row-alt1 expandable notInherited">
1036             <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
1037            
1038            
1039             <td class="sig">
1040                 <a id="Roo.data.Store-method-getById"   name=".getById"></a>
1041                 <div class="fixedFont">
1042                         <span class="attributes"></span><b class="itemname">getById</b>
1043                                 
1044                                  (<a href="./String.html#constructor" roo:cls="String.html#constructor">String</a> <B><i>id</i></B>) 
1045                         
1046                                 
1047                                          : 
1048                                         
1049                                                 
1050                                                 <a href="./Roo.data.Record.html#constructor" roo:cls="Roo.data.Record.html#constructor">Roo.data.Record</a>
1051                                         
1052                                         
1053                                         
1054                                 
1055                         
1056                 </div>
1057                 <div class="mdesc">
1058                 
1059                    <div class="short">Get the Record with the specified id.</div> 
1060                  
1061                  
1062                  
1063                     <div class="long">
1064                         
1065                                 Get the Record with the specified id.
1066                     
1067                                 
1068                         
1069                         
1070                         
1071                         
1072                                 <dl class="detailList">
1073                                 <dt class="heading">Parameters:</dt>
1074                                 
1075                                         <dt>
1076                                                 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a></span>  <b>id</b>
1077                                                 
1078                                         </dt>
1079                                         <dd>The id of the Record to find.</dd>
1080                                 
1081                                 </dl>
1082                         
1083                         
1084                         
1085                         
1086                         
1087                                 <dl class="detailList">
1088                                 <dt class="heading">Returns:</dt>
1089                                 
1090                                         <dd><span class="fixedFont"><a href="./Roo.data.Record.html#constructor" roo:cls="Roo.data.Record.html#constructor">Roo.data.Record</a></span>  The Record with the passed id. Returns undefined if not found.</dd>
1091                                 
1092                                 </dl>
1093                         
1094                         
1095                         
1096
1097                     
1098                     
1099                      
1100                     </div>                    
1101                 </div>
1102
1103             </td>
1104             <td class="msource">
1105                 
1106                         Roo.data.Store
1107                 &nbsp;
1108             </td>
1109         </tr>
1110         
1111           
1112           <tr class="method-row config-row-alt0 expandable notInherited">
1113             <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
1114            
1115            
1116             <td class="sig">
1117                 <a id="Roo.data.Store-method-getCount"   name=".getCount"></a>
1118                 <div class="fixedFont">
1119                         <span class="attributes"></span><b class="itemname">getCount</b>
1120                                 
1121                                  () 
1122                         
1123                                 
1124                         
1125                 </div>
1126                 <div class="mdesc">
1127                 
1128                    <div class="short">Gets the number of cached records.</div> 
1129                  
1130                  
1131                  
1132                     <div class="long">
1133                         
1134                                 Gets the number of cached records.<br/><p><br/><em>If using paging, this may not be the total size of the dataset. If the data object<br/>used by the Reader contains the dataset size, then the getTotalCount() function returns<br/>the data set size</em>
1135                     
1136                                 
1137                         
1138                         
1139                         
1140                         
1141                         
1142                         
1143                         
1144                         
1145                         
1146                         
1147
1148                     
1149                     
1150                      
1151                     </div>                    
1152                 </div>
1153
1154             </td>
1155             <td class="msource">
1156                 
1157                         Roo.data.Store
1158                 &nbsp;
1159             </td>
1160         </tr>
1161         
1162           
1163           <tr class="method-row config-row-alt1 expandable notInherited">
1164             <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
1165            
1166            
1167             <td class="sig">
1168                 <a id="Roo.data.Store-method-getModifiedRecords"   name=".getModifiedRecords"></a>
1169                 <div class="fixedFont">
1170                         <span class="attributes"></span><b class="itemname">getModifiedRecords</b>
1171                                 
1172                                  () 
1173                         
1174                                 
1175                                          : 
1176                                         
1177                                                 
1178                                                 <a href="./Roo.data.Record.html#constructor" roo:cls="Roo.data.Record.html#constructor">Roo.data.Record</a>[]
1179                                         
1180                                         
1181                                         
1182                                 
1183                         
1184                 </div>
1185                 <div class="mdesc">
1186                 
1187                    <div class="short">Gets all records modified since the last commit.</div> 
1188                  
1189                  
1190                  
1191                     <div class="long">
1192                         
1193                                 Gets all records modified since the last commit.  Modified records are persisted across load operations<br/>(e.g., during paging).
1194                     
1195                                 
1196                         
1197                         
1198                         
1199                         
1200                         
1201                         
1202                         
1203                         
1204                                 <dl class="detailList">
1205                                 <dt class="heading">Returns:</dt>
1206                                 
1207                                         <dd><span class="fixedFont"><a href="./Roo.data.Record.html#constructor" roo:cls="Roo.data.Record.html#constructor">Roo.data.Record</a>[]</span>  An array of Records containing outstanding modifications.</dd>
1208                                 
1209                                 </dl>
1210                         
1211                         
1212                         
1213
1214                     
1215                     
1216                      
1217                     </div>                    
1218                 </div>
1219
1220             </td>
1221             <td class="msource">
1222                 
1223                         Roo.data.Store
1224                 &nbsp;
1225             </td>
1226         </tr>
1227         
1228           
1229           <tr class="method-row config-row-alt0 expandable notInherited">
1230             <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
1231            
1232            
1233             <td class="sig">
1234                 <a id="Roo.data.Store-method-getRange"   name=".getRange"></a>
1235                 <div class="fixedFont">
1236                         <span class="attributes"></span><b class="itemname">getRange</b>
1237                                 
1238                                  (<a href="./Number.html#constructor" roo:cls="Number.html#constructor">Number</a> <B><i>startIndex</i></B>, <a href="./Number.html#constructor" roo:cls="Number.html#constructor">Number</a> <B><i>endIndex</i></B>) 
1239                         
1240                                 
1241                                          : 
1242                                         
1243                                                 
1244                                                 <a href="./Roo.data.Record.html#constructor" roo:cls="Roo.data.Record.html#constructor">Roo.data.Record</a>[]
1245                                         
1246                                         
1247                                         
1248                                 
1249                         
1250                 </div>
1251                 <div class="mdesc">
1252                 
1253                    <div class="short">Returns a range of Records between specified indices.</div> 
1254                  
1255                  
1256                  
1257                     <div class="long">
1258                         
1259                                 Returns a range of Records between specified indices.
1260                     
1261                                 
1262                         
1263                         
1264                         
1265                         
1266                                 <dl class="detailList">
1267                                 <dt class="heading">Parameters:</dt>
1268                                 
1269                                         <dt>
1270                                                 <span class="fixedFont"><a href="./Number.html#constructor" roo:cls="Number.html#constructor">Number</a></span>  <b>startIndex</b>
1271                                                 
1272                                         </dt>
1273                                         <dd>(optional) The starting index (defaults to 0)</dd>
1274                                 
1275                                         <dt>
1276                                                 <span class="fixedFont"><a href="./Number.html#constructor" roo:cls="Number.html#constructor">Number</a></span>  <b>endIndex</b>
1277                                                 
1278                                         </dt>
1279                                         <dd>(optional) The ending index (defaults to the last Record in the Store)</dd>
1280                                 
1281                                 </dl>
1282                         
1283                         
1284                         
1285                         
1286                         
1287                                 <dl class="detailList">
1288                                 <dt class="heading">Returns:</dt>
1289                                 
1290                                         <dd><span class="fixedFont"><a href="./Roo.data.Record.html#constructor" roo:cls="Roo.data.Record.html#constructor">Roo.data.Record</a>[]</span>  An array of Records</dd>
1291                                 
1292                                 </dl>
1293                         
1294                         
1295                         
1296
1297                     
1298                     
1299                      
1300                     </div>                    
1301                 </div>
1302
1303             </td>
1304             <td class="msource">
1305                 
1306                         Roo.data.Store
1307                 &nbsp;
1308             </td>
1309         </tr>
1310         
1311           
1312           <tr class="method-row config-row-alt1 expandable notInherited">
1313             <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
1314            
1315            
1316             <td class="sig">
1317                 <a id="Roo.data.Store-method-getSortState"   name=".getSortState"></a>
1318                 <div class="fixedFont">
1319                         <span class="attributes"></span><b class="itemname">getSortState</b>
1320                                 
1321                                  () 
1322                         
1323                                 
1324                         
1325                 </div>
1326                 <div class="mdesc">
1327                 
1328                    <div class="short">Returns the sort state of the Store as an object with two properties:<br/><pre><code><br/> field {String} The name of the field by which the Records are sorted<br/> direction {String} The sort order, "ASC" or "DESC"<br/></code></pre></div> 
1329                  
1330                  
1331                  
1332                     <div class="long">
1333                         
1334                                 Returns the sort state of the Store as an object with two properties:<br/><pre><code><br/> field {String} The name of the field by which the Records are sorted<br/> direction {String} The sort order, "ASC" or "DESC"<br/></code></pre>
1335                     
1336                                 
1337                         
1338                         
1339                         
1340                         
1341                         
1342                         
1343                         
1344                         
1345                         
1346                         
1347
1348                     
1349                     
1350                      
1351                     </div>                    
1352                 </div>
1353
1354             </td>
1355             <td class="msource">
1356                 
1357                         Roo.data.Store
1358                 &nbsp;
1359             </td>
1360         </tr>
1361         
1362           
1363           <tr class="method-row config-row-alt0 expandable notInherited">
1364             <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
1365            
1366            
1367             <td class="sig">
1368                 <a id="Roo.data.Store-method-getTotalCount"   name=".getTotalCount"></a>
1369                 <div class="fixedFont">
1370                         <span class="attributes"></span><b class="itemname">getTotalCount</b>
1371                                 
1372                                  () 
1373                         
1374                                 
1375                         
1376                 </div>
1377                 <div class="mdesc">
1378                 
1379                    <div class="short">Gets the total number of records in the dataset as returned by the server.</div> 
1380                  
1381                  
1382                  
1383                     <div class="long">
1384                         
1385                                 Gets the total number of records in the dataset as returned by the server.<br/><p><br/><em>If using paging, for this to be accurate, the data object used by the Reader must contain<br/>the dataset size</em>
1386                     
1387                                 
1388                         
1389                         
1390                         
1391                         
1392                         
1393                         
1394                         
1395                         
1396                         
1397                         
1398
1399                     
1400                     
1401                      
1402                     </div>                    
1403                 </div>
1404
1405             </td>
1406             <td class="msource">
1407                 
1408                         Roo.data.Store
1409                 &nbsp;
1410             </td>
1411         </tr>
1412         
1413           
1414           <tr class="method-row config-row-alt1 expandable notInherited">
1415             <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
1416            
1417            
1418             <td class="sig">
1419                 <a id="Roo.data.Store-method-indexOf"   name=".indexOf"></a>
1420                 <div class="fixedFont">
1421                         <span class="attributes"></span><b class="itemname">indexOf</b>
1422                                 
1423                                  (<a href="./Roo.data.Record.html#constructor" roo:cls="Roo.data.Record.html#constructor">Roo.data.Record</a> <B><i>record</i></B>) 
1424                         
1425                                 
1426                                          : 
1427                                         
1428                                                 
1429                                                 <a href="./Number.html#constructor" roo:cls="Number.html#constructor">Number</a>
1430                                         
1431                                         
1432                                         
1433                                 
1434                         
1435                 </div>
1436                 <div class="mdesc">
1437                 
1438                    <div class="short">Get the index within the cache of the passed Record.</div> 
1439                  
1440                  
1441                  
1442                     <div class="long">
1443                         
1444                                 Get the index within the cache of the passed Record.
1445                     
1446                                 
1447                         
1448                         
1449                         
1450                         
1451                                 <dl class="detailList">
1452                                 <dt class="heading">Parameters:</dt>
1453                                 
1454                                         <dt>
1455                                                 <span class="fixedFont"><a href="./Roo.data.Record.html#constructor" roo:cls="Roo.data.Record.html#constructor">Roo.data.Record</a></span>  <b>record</b>
1456                                                 
1457                                         </dt>
1458                                         <dd>The Roo.data.Record object to to find.</dd>
1459                                 
1460                                 </dl>
1461                         
1462                         
1463                         
1464                         
1465                         
1466                                 <dl class="detailList">
1467                                 <dt class="heading">Returns:</dt>
1468                                 
1469                                         <dd><span class="fixedFont"><a href="./Number.html#constructor" roo:cls="Number.html#constructor">Number</a></span>  The index of the passed Record. Returns -1 if not found.</dd>
1470                                 
1471                                 </dl>
1472                         
1473                         
1474                         
1475
1476                     
1477                     
1478                      
1479                     </div>                    
1480                 </div>
1481
1482             </td>
1483             <td class="msource">
1484                 
1485                         Roo.data.Store
1486                 &nbsp;
1487             </td>
1488         </tr>
1489         
1490           
1491           <tr class="method-row config-row-alt0 expandable notInherited">
1492             <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
1493            
1494            
1495             <td class="sig">
1496                 <a id="Roo.data.Store-method-indexOfId"   name=".indexOfId"></a>
1497                 <div class="fixedFont">
1498                         <span class="attributes"></span><b class="itemname">indexOfId</b>
1499                                 
1500                                  (<a href="./String.html#constructor" roo:cls="String.html#constructor">String</a> <B><i>id</i></B>) 
1501                         
1502                                 
1503                                          : 
1504                                         
1505                                                 
1506                                                 <a href="./Number.html#constructor" roo:cls="Number.html#constructor">Number</a>
1507                                         
1508                                         
1509                                         
1510                                 
1511                         
1512                 </div>
1513                 <div class="mdesc">
1514                 
1515                    <div class="short">Get the index within the cache of the Record with the passed id.</div> 
1516                  
1517                  
1518                  
1519                     <div class="long">
1520                         
1521                                 Get the index within the cache of the Record with the passed id.
1522                     
1523                                 
1524                         
1525                         
1526                         
1527                         
1528                                 <dl class="detailList">
1529                                 <dt class="heading">Parameters:</dt>
1530                                 
1531                                         <dt>
1532                                                 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a></span>  <b>id</b>
1533                                                 
1534                                         </dt>
1535                                         <dd>The id of the Record to find.</dd>
1536                                 
1537                                 </dl>
1538                         
1539                         
1540                         
1541                         
1542                         
1543                                 <dl class="detailList">
1544                                 <dt class="heading">Returns:</dt>
1545                                 
1546                                         <dd><span class="fixedFont"><a href="./Number.html#constructor" roo:cls="Number.html#constructor">Number</a></span>  The index of the Record. Returns -1 if not found.</dd>
1547                                 
1548                                 </dl>
1549                         
1550                         
1551                         
1552
1553                     
1554                     
1555                      
1556                     </div>                    
1557                 </div>
1558
1559             </td>
1560             <td class="msource">
1561                 
1562                         Roo.data.Store
1563                 &nbsp;
1564             </td>
1565         </tr>
1566         
1567           
1568           <tr class="method-row config-row-alt1 expandable notInherited">
1569             <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
1570            
1571            
1572             <td class="sig">
1573                 <a id="Roo.data.Store-method-insert"   name=".insert"></a>
1574                 <div class="fixedFont">
1575                         <span class="attributes"></span><b class="itemname">insert</b>
1576                                 
1577                                  (<a href="./Number.html#constructor" roo:cls="Number.html#constructor">Number</a> <B><i>index</i></B>, <a href="./Roo.data.Record.html#constructor" roo:cls="Roo.data.Record.html#constructor">Roo.data.Record</a>[] <B><i>records</i></B>) 
1578                         
1579                                 
1580                         
1581                 </div>
1582                 <div class="mdesc">
1583                 
1584                    <div class="short">Inserts Records to the Store at the given index and fires the add event.</div> 
1585                  
1586                  
1587                  
1588                     <div class="long">
1589                         
1590                                 Inserts Records to the Store at the given index and fires the add event.
1591                     
1592                                 
1593                         
1594                         
1595                         
1596                         
1597                                 <dl class="detailList">
1598                                 <dt class="heading">Parameters:</dt>
1599                                 
1600                                         <dt>
1601                                                 <span class="fixedFont"><a href="./Number.html#constructor" roo:cls="Number.html#constructor">Number</a></span>  <b>index</b>
1602                                                 
1603                                         </dt>
1604                                         <dd>The start index at which to insert the passed Records.</dd>
1605                                 
1606                                         <dt>
1607                                                 <span class="fixedFont"><a href="./Roo.data.Record.html#constructor" roo:cls="Roo.data.Record.html#constructor">Roo.data.Record</a>[]</span>  <b>records</b>
1608                                                 
1609                                         </dt>
1610                                         <dd>An Array of Roo.data.Record objects to add to the cache.</dd>
1611                                 
1612                                 </dl>
1613                         
1614                         
1615                         
1616                         
1617                         
1618                         
1619                         
1620
1621                     
1622                     
1623                      
1624                     </div>                    
1625                 </div>
1626
1627             </td>
1628             <td class="msource">
1629                 
1630                         Roo.data.Store
1631                 &nbsp;
1632             </td>
1633         </tr>
1634         
1635           
1636           <tr class="method-row config-row-alt0 expandable notInherited">
1637             <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
1638            
1639            
1640             <td class="sig">
1641                 <a id="Roo.data.Store-method-load"   name=".load"></a>
1642                 <div class="fixedFont">
1643                         <span class="attributes"></span><b class="itemname">load</b>
1644                                 
1645                                  (<a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a> <B><i>options</i></B>) 
1646                         
1647                                 
1648                         
1649                 </div>
1650                 <div class="mdesc">
1651                 
1652                    <div class="short">Loads the Record cache from the configured Proxy using the configured Reader.</div> 
1653                  
1654                  
1655                  
1656                     <div class="long">
1657                         
1658                                 Loads the Record cache from the configured Proxy using the configured Reader.<br/><p><br/>If using remote paging, then the first load call must specify the <em>start</em><br/>and <em>limit</em> properties in the options.params property to establish the initial<br/>position within the dataset, and the number of Records to cache on each read from the Proxy.<br/><p><br/><strong>It is important to note that for remote data sources, loading is asynchronous,<br/>and this call will return before the new data has been loaded. Perform any post-processing<br/>in a callback function, or in a "load" event handler.</strong><br/><p>
1659                     
1660                                 
1661                         
1662                         
1663                         
1664                         
1665                                 <dl class="detailList">
1666                                 <dt class="heading">Parameters:</dt>
1667                                 
1668                                         <dt>
1669                                                 <span class="fixedFont"><a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a></span>  <b>options</b>
1670                                                 
1671                                         </dt>
1672                                         <dd>An object containing properties which control loading options:<ul><br/><li>params {Object} An object containing properties to pass as HTTP parameters to a remote data source.</li><br/><li>callback {Function} A function to be called after the Records have been loaded. The callback is<br/>passed the following arguments:<ul><br/><li>r : Roo.data.Record[]</li><br/><li>options: Options object from the load call</li><br/><li>success: Boolean success indicator</li></ul></li><br/><li>scope {Object} Scope with which to call the callback (defaults to the Store object)</li><br/><li>add {Boolean} indicator to append loaded records rather than replace the current cache.</li><br/></ul></dd>
1673                                 
1674                                 </dl>
1675                         
1676                         
1677                         
1678                         
1679                         
1680                         
1681                         
1682
1683                     
1684                     
1685                      
1686                     </div>                    
1687                 </div>
1688
1689             </td>
1690             <td class="msource">
1691                 
1692                         Roo.data.Store
1693                 &nbsp;
1694             </td>
1695         </tr>
1696         
1697           
1698           <tr class="method-row config-row-alt1 expandable notInherited">
1699             <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
1700            
1701            
1702             <td class="sig">
1703                 <a id="Roo.data.Store-method-loadData"   name=".loadData"></a>
1704                 <div class="fixedFont">
1705                         <span class="attributes"></span><b class="itemname">loadData</b>
1706                                 
1707                                  (<a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a> <B><i>data</i></B>, <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Boolean">Boolean</a> <B><i>append</i></B>) 
1708                         
1709                                 
1710                         
1711                 </div>
1712                 <div class="mdesc">
1713                 
1714                    <div class="short">Loads data from a passed data block.</div> 
1715                  
1716                  
1717                  
1718                     <div class="long">
1719                         
1720                                 Loads data from a passed data block. A Reader which understands the format of the data<br/>must have been configured in the constructor.
1721                     
1722                                 
1723                         
1724                         
1725                         
1726                         
1727                                 <dl class="detailList">
1728                                 <dt class="heading">Parameters:</dt>
1729                                 
1730                                         <dt>
1731                                                 <span class="fixedFont"><a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a></span>  <b>data</b>
1732                                                 
1733                                         </dt>
1734                                         <dd>The data block from which to read the Records.  The format of the data expected<br/>is dependent on the type of Reader that is configured and should correspond to that Reader's readRecords parameter.</dd>
1735                                 
1736                                         <dt>
1737                                                 <span class="fixedFont"><a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Boolean">Boolean</a></span>  <b>append</b>
1738                                                 
1739                                         </dt>
1740                                         <dd>(Optional) True to append the new Records rather than replace the existing cache.</dd>
1741                                 
1742                                 </dl>
1743                         
1744                         
1745                         
1746                         
1747                         
1748                         
1749                         
1750
1751                     
1752                     
1753                      
1754                     </div>                    
1755                 </div>
1756
1757             </td>
1758             <td class="msource">
1759                 
1760                         Roo.data.Store
1761                 &nbsp;
1762             </td>
1763         </tr>
1764         
1765           
1766           <tr class="method-row config-row-alt0 expandable notInherited">
1767             <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
1768            
1769            
1770             <td class="sig">
1771                 <a id="Roo.data.Store-method-query"   name=".query"></a>
1772                 <div class="fixedFont">
1773                         <span class="attributes"></span><b class="itemname">query</b>
1774                                 
1775                                  (<a href="./String.html#constructor" roo:cls="String.html#constructor">String</a> <B><i>field</i></B>, <a href="./String.html#constructor" roo:cls="String.html#constructor">String</a>/RegExp <B><i>value</i></B>, <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Boolean">Boolean</a> <B><i>anyMatch</i></B>) 
1776                         
1777                                 
1778                                          : 
1779                                         
1780                                                 
1781                                                 MixedCollection
1782                                         
1783                                         
1784                                         
1785                                 
1786                         
1787                 </div>
1788                 <div class="mdesc">
1789                 
1790                    <div class="short">Query the records by a specified property.</div> 
1791                  
1792                  
1793                  
1794                     <div class="long">
1795                         
1796                                 Query the records by a specified property.
1797                     
1798                                 
1799                         
1800                         
1801                         
1802                         
1803                                 <dl class="detailList">
1804                                 <dt class="heading">Parameters:</dt>
1805                                 
1806                                         <dt>
1807                                                 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a></span>  <b>field</b>
1808                                                 
1809                                         </dt>
1810                                         <dd>A field on your records</dd>
1811                                 
1812                                         <dt>
1813                                                 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a>/RegExp</span>  <b>value</b>
1814                                                 
1815                                         </dt>
1816                                         <dd>Either a string that the field<br/>should start with or a RegExp to test against the field</dd>
1817                                 
1818                                         <dt>
1819                                                 <span class="fixedFont"><a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Boolean">Boolean</a></span>  <b>anyMatch</b>
1820                                                 
1821                                         </dt>
1822                                         <dd>True to match any part not just the beginning</dd>
1823                                 
1824                                 </dl>
1825                         
1826                         
1827                         
1828                         
1829                         
1830                                 <dl class="detailList">
1831                                 <dt class="heading">Returns:</dt>
1832                                 
1833                                         <dd><span class="fixedFont">MixedCollection</span>  Returns an Roo.util.MixedCollection of the matched records</dd>
1834                                 
1835                                 </dl>
1836                         
1837                         
1838                         
1839
1840                     
1841                     
1842                      
1843                     </div>                    
1844                 </div>
1845
1846             </td>
1847             <td class="msource">
1848                 
1849                         Roo.data.Store
1850                 &nbsp;
1851             </td>
1852         </tr>
1853         
1854           
1855           <tr class="method-row config-row-alt1 expandable notInherited">
1856             <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
1857            
1858            
1859             <td class="sig">
1860                 <a id="Roo.data.Store-method-queryBy"   name=".queryBy"></a>
1861                 <div class="fixedFont">
1862                         <span class="attributes"></span><b class="itemname">queryBy</b>
1863                                 
1864                                  (<a href="./Function.html#constructor" roo:cls="Function.html#constructor">Function</a> <B><i>fn</i></B>, <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a> <B><i>scope</i></B>) 
1865                         
1866                                 
1867                                          : 
1868                                         
1869                                                 
1870                                                 MixedCollection
1871                                         
1872                                         
1873                                         
1874                                 
1875                         
1876                 </div>
1877                 <div class="mdesc">
1878                 
1879                    <div class="short">Query by a function.</div> 
1880                  
1881                  
1882                  
1883                     <div class="long">
1884                         
1885                                 Query by a function. The specified function will be called with each<br/>record in this data source. If the function returns true the record is included<br/>in the results.
1886                     
1887                                 
1888                         
1889                         
1890                         
1891                         
1892                                 <dl class="detailList">
1893                                 <dt class="heading">Parameters:</dt>
1894                                 
1895                                         <dt>
1896                                                 <span class="fixedFont"><a href="./Function.html#constructor" roo:cls="Function.html#constructor">Function</a></span>  <b>fn</b>
1897                                                 
1898                                         </dt>
1899                                         <dd>The function to be called, it will receive 2 args (record, id)</dd>
1900                                 
1901                                         <dt>
1902                                                 <span class="fixedFont"><a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a></span>  <b>scope</b>
1903                                                 
1904                                         </dt>
1905                                         <dd>(optional) The scope of the function (defaults to this)</dd>
1906                                 
1907                                 </dl>
1908                         
1909                         
1910                         
1911                         
1912                         
1913                                 <dl class="detailList">
1914                                 <dt class="heading">Returns:</dt>
1915                                 
1916                                         <dd><span class="fixedFont">MixedCollection</span>  Returns an Roo.util.MixedCollection of the matched records</dd>
1917                                 
1918                                 </dl>
1919                         
1920                         
1921                         
1922
1923                     
1924                     
1925                      
1926                     </div>                    
1927                 </div>
1928
1929             </td>
1930             <td class="msource">
1931                 
1932                         Roo.data.Store
1933                 &nbsp;
1934             </td>
1935         </tr>
1936         
1937           
1938           <tr class="method-row config-row-alt0 expandable notInherited">
1939             <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
1940            
1941            
1942             <td class="sig">
1943                 <a id="Roo.data.Store-method-rejectChanges"   name=".rejectChanges"></a>
1944                 <div class="fixedFont">
1945                         <span class="attributes"></span><b class="itemname">rejectChanges</b>
1946                                 
1947                                  () 
1948                         
1949                                 
1950                         
1951                 </div>
1952                 <div class="mdesc">
1953                 
1954                    <div class="short">Cancel outstanding changes on all changed records.</div> 
1955                  
1956                  
1957                  
1958                     <div class="long">
1959                         
1960                                 Cancel outstanding changes on all changed records.
1961                     
1962                                 
1963                         
1964                         
1965                         
1966                         
1967                         
1968                         
1969                         
1970                         
1971                         
1972                         
1973
1974                     
1975                     
1976                      
1977                     </div>                    
1978                 </div>
1979
1980             </td>
1981             <td class="msource">
1982                 
1983                         Roo.data.Store
1984                 &nbsp;
1985             </td>
1986         </tr>
1987         
1988           
1989           <tr class="method-row config-row-alt1 expandable notInherited">
1990             <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
1991            
1992            
1993             <td class="sig">
1994                 <a id="Roo.data.Store-method-reload"   name=".reload"></a>
1995                 <div class="fixedFont">
1996                         <span class="attributes"></span><b class="itemname">reload</b>
1997                                 
1998                                  (<a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a> <B><i>options</i></B>) 
1999                         
2000                                 
2001                         
2002                 </div>
2003                 <div class="mdesc">
2004                 
2005                    <div class="short">Reloads the Record cache from the configured Proxy using the configured Reader and<br/>the options from the last load operation performed.</div> 
2006                  
2007                  
2008                  
2009                     <div class="long">
2010                         
2011                                 Reloads the Record cache from the configured Proxy using the configured Reader and<br/>the options from the last load operation performed.
2012                     
2013                                 
2014                         
2015                         
2016                         
2017                         
2018                                 <dl class="detailList">
2019                                 <dt class="heading">Parameters:</dt>
2020                                 
2021                                         <dt>
2022                                                 <span class="fixedFont"><a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a></span>  <b>options</b>
2023                                                 
2024                                         </dt>
2025                                         <dd>(optional) An object containing properties which may override the options<br/>used in the last load operation. See {<b>link</b> <b>load</b>} for details (defaults to null, in which case<br/>the most recently used options are reused).</dd>
2026                                 
2027                                 </dl>
2028                         
2029                         
2030                         
2031                         
2032                         
2033                         
2034                         
2035
2036                     
2037                     
2038                      
2039                     </div>                    
2040                 </div>
2041
2042             </td>
2043             <td class="msource">
2044                 
2045                         Roo.data.Store
2046                 &nbsp;
2047             </td>
2048         </tr>
2049         
2050           
2051           <tr class="method-row config-row-alt0 expandable notInherited">
2052             <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
2053            
2054            
2055             <td class="sig">
2056                 <a id="Roo.data.Store-method-remove"   name=".remove"></a>
2057                 <div class="fixedFont">
2058                         <span class="attributes"></span><b class="itemname">remove</b>
2059                                 
2060                                  (Ext.data.Record <B><i>record</i></B>) 
2061                         
2062                                 
2063                         
2064                 </div>
2065                 <div class="mdesc">
2066                 
2067                    <div class="short">Remove a Record from the Store and fires the remove event.</div> 
2068                  
2069                  
2070                  
2071                     <div class="long">
2072                         
2073                                 Remove a Record from the Store and fires the remove event.
2074                     
2075                                 
2076                         
2077                         
2078                         
2079                         
2080                                 <dl class="detailList">
2081                                 <dt class="heading">Parameters:</dt>
2082                                 
2083                                         <dt>
2084                                                 <span class="fixedFont">Ext.data.Record</span>  <b>record</b>
2085                                                 
2086                                         </dt>
2087                                         <dd>The Roo.data.Record object to remove from the cache.</dd>
2088                                 
2089                                 </dl>
2090                         
2091                         
2092                         
2093                         
2094                         
2095                         
2096                         
2097
2098                     
2099                     
2100                      
2101                     </div>                    
2102                 </div>
2103
2104             </td>
2105             <td class="msource">
2106                 
2107                         Roo.data.Store
2108                 &nbsp;
2109             </td>
2110         </tr>
2111         
2112           
2113           <tr class="method-row config-row-alt1 expandable notInherited">
2114             <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
2115            
2116            
2117             <td class="sig">
2118                 <a id="Roo.data.Store-method-removeAll"   name=".removeAll"></a>
2119                 <div class="fixedFont">
2120                         <span class="attributes"></span><b class="itemname">removeAll</b>
2121                                 
2122                                  () 
2123                         
2124                                 
2125                         
2126                 </div>
2127                 <div class="mdesc">
2128                 
2129                    <div class="short">Remove all Records from the Store and fires the clear event.</div> 
2130                  
2131                  
2132                  
2133                     <div class="long">
2134                         
2135                                 Remove all Records from the Store and fires the clear event.
2136                     
2137                                 
2138                         
2139                         
2140                         
2141                         
2142                         
2143                         
2144                         
2145                         
2146                         
2147                         
2148
2149                     
2150                     
2151                      
2152                     </div>                    
2153                 </div>
2154
2155             </td>
2156             <td class="msource">
2157                 
2158                         Roo.data.Store
2159                 &nbsp;
2160             </td>
2161         </tr>
2162         
2163           
2164           <tr class="method-row config-row-alt0 expandable notInherited">
2165             <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
2166            
2167            
2168             <td class="sig">
2169                 <a id="Roo.data.Store-method-setDefaultSort"   name=".setDefaultSort"></a>
2170                 <div class="fixedFont">
2171                         <span class="attributes"></span><b class="itemname">setDefaultSort</b>
2172                                 
2173                                  (<a href="./String.html#constructor" roo:cls="String.html#constructor">String</a> <B><i>fieldName</i></B>, <a href="./String.html#constructor" roo:cls="String.html#constructor">String</a> <B><i>dir</i></B>) 
2174                         
2175                                 
2176                         
2177                 </div>
2178                 <div class="mdesc">
2179                 
2180                    <div class="short">Sets the default sort column and order to be used by the next load operation.</div> 
2181                  
2182                  
2183                  
2184                     <div class="long">
2185                         
2186                                 Sets the default sort column and order to be used by the next load operation.
2187                     
2188                                 
2189                         
2190                         
2191                         
2192                         
2193                                 <dl class="detailList">
2194                                 <dt class="heading">Parameters:</dt>
2195                                 
2196                                         <dt>
2197                                                 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a></span>  <b>fieldName</b>
2198                                                 
2199                                         </dt>
2200                                         <dd>The name of the field to sort by.</dd>
2201                                 
2202                                         <dt>
2203                                                 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a></span>  <b>dir</b>
2204                                                 
2205                                         </dt>
2206                                         <dd>(optional) The sort order, "ASC" or "DESC" (defaults to "ASC")</dd>
2207                                 
2208                                 </dl>
2209                         
2210                         
2211                         
2212                         
2213                         
2214                         
2215                         
2216
2217                     
2218                     
2219                      
2220                     </div>                    
2221                 </div>
2222
2223             </td>
2224             <td class="msource">
2225                 
2226                         Roo.data.Store
2227                 &nbsp;
2228             </td>
2229         </tr>
2230         
2231           
2232           <tr class="method-row config-row-alt1 expandable notInherited">
2233             <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
2234            
2235            
2236             <td class="sig">
2237                 <a id="Roo.data.Store-method-sort"   name=".sort"></a>
2238                 <div class="fixedFont">
2239                         <span class="attributes"></span><b class="itemname">sort</b>
2240                                 
2241                                  (<a href="./String.html#constructor" roo:cls="String.html#constructor">String</a> <B><i>fieldName</i></B>, <a href="./String.html#constructor" roo:cls="String.html#constructor">String</a> <B><i>dir</i></B>) 
2242                         
2243                                 
2244                         
2245                 </div>
2246                 <div class="mdesc">
2247                 
2248                    <div class="short">Sort the Records.</div> 
2249                  
2250                  
2251                  
2252                     <div class="long">
2253                         
2254                                 Sort the Records.<br/>If remote sorting is used, the sort is performed on the server, and the cache is<br/>reloaded. If local sorting is used, the cache is sorted internally.
2255                     
2256                                 
2257                         
2258                         
2259                         
2260                         
2261                                 <dl class="detailList">
2262                                 <dt class="heading">Parameters:</dt>
2263                                 
2264                                         <dt>
2265                                                 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a></span>  <b>fieldName</b>
2266                                                 
2267                                         </dt>
2268                                         <dd>The name of the field to sort by.</dd>
2269                                 
2270                                         <dt>
2271                                                 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a></span>  <b>dir</b>
2272                                                 
2273                                         </dt>
2274                                         <dd>(optional) The sort order, "ASC" or "DESC" (defaults to "ASC")</dd>
2275                                 
2276                                 </dl>
2277                         
2278                         
2279                         
2280                         
2281                         
2282                         
2283                         
2284
2285                     
2286                     
2287                      
2288                     </div>                    
2289                 </div>
2290
2291             </td>
2292             <td class="msource">
2293                 
2294                         Roo.data.Store
2295                 &nbsp;
2296             </td>
2297         </tr>
2298         
2299           
2300           <tr class="method-row config-row-alt0 expandable notInherited">
2301             <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
2302            
2303            
2304             <td class="sig">
2305                 <a id="Roo.data.Store-method-sum"   name=".sum"></a>
2306                 <div class="fixedFont">
2307                         <span class="attributes"></span><b class="itemname">sum</b>
2308                                 
2309                                  (<a href="./String.html#constructor" roo:cls="String.html#constructor">String</a> <B><i>property</i></B>, <a href="./Number.html#constructor" roo:cls="Number.html#constructor">Number</a> <B><i>start</i></B>, <a href="./Number.html#constructor" roo:cls="Number.html#constructor">Number</a> <B><i>end</i></B>) 
2310                         
2311                                 
2312                                          : 
2313                                         
2314                                                 
2315                                                 <a href="./Number.html#constructor" roo:cls="Number.html#constructor">Number</a>
2316                                         
2317                                         
2318                                         
2319                                 
2320                         
2321                 </div>
2322                 <div class="mdesc">
2323                 
2324                    <div class="short">Sums the value of <i>property</i> for each record between start and end and returns the result.</div> 
2325                  
2326                  
2327                  
2328                     <div class="long">
2329                         
2330                                 Sums the value of <i>property</i> for each record between start and end and returns the result.
2331                     
2332                                 
2333                         
2334                         
2335                         
2336                         
2337                                 <dl class="detailList">
2338                                 <dt class="heading">Parameters:</dt>
2339                                 
2340                                         <dt>
2341                                                 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a></span>  <b>property</b>
2342                                                 
2343                                         </dt>
2344                                         <dd>A field on your records</dd>
2345                                 
2346                                         <dt>
2347                                                 <span class="fixedFont"><a href="./Number.html#constructor" roo:cls="Number.html#constructor">Number</a></span>  <b>start</b>
2348                                                 
2349                                         </dt>
2350                                         <dd>The record index to start at (defaults to 0)</dd>
2351                                 
2352                                         <dt>
2353                                                 <span class="fixedFont"><a href="./Number.html#constructor" roo:cls="Number.html#constructor">Number</a></span>  <b>end</b>
2354                                                 
2355                                         </dt>
2356                                         <dd>The last record index to include (defaults to length - 1)</dd>
2357                                 
2358                                 </dl>
2359                         
2360                         
2361                         
2362                         
2363                         
2364                                 <dl class="detailList">
2365                                 <dt class="heading">Returns:</dt>
2366                                 
2367                                         <dd><span class="fixedFont"><a href="./Number.html#constructor" roo:cls="Number.html#constructor">Number</a></span>  The sum</dd>
2368                                 
2369                                 </dl>
2370                         
2371                         
2372                         
2373
2374                     
2375                     
2376                      
2377                     </div>                    
2378                 </div>
2379
2380             </td>
2381             <td class="msource">
2382                 
2383                         Roo.data.Store
2384                 &nbsp;
2385             </td>
2386         </tr>
2387         
2388                                                        
2389     </table>
2390
2391   
2392   <!-- ============================== events summary / details ======================== -->
2393   
2394   
2395   <a id="Roo.data.Store-events"></a>
2396     
2397   
2398         
2399    
2400   
2401     
2402     
2403     
2404       <table cellspacing="0" class="member-table">
2405                 <caption>Events</caption>
2406               <thead>
2407                 <tr>
2408                     <th class="sig-header" colspan="2">Event</th>            
2409                     <th class="msource-header">Defined By</th>
2410
2411                 </tr>
2412               </thead>  
2413         
2414         
2415          
2416         
2417         
2418           <tr class="method-row expandable config-row-alt0 notInherited">
2419             <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
2420             
2421             <td class="sig">
2422                 <a id="Roo.data.Store-event-*add"></a>
2423                 
2424                <div class="fixedFont">
2425                 <b class="itemname">add</b> (Store <B><i>this</i></B>, <a href="./Roo.data.Record.html#constructor" roo:cls="Roo.data.Record.html#constructor">Roo.data.Record</a>[] <B><i>records</i></B>, <a href="./Number.html#constructor" roo:cls="Number.html#constructor">Number</a> <B><i>index</i></B>) 
2426                 
2427                 </div>
2428
2429                 <div class="mdesc">
2430
2431                    <div class="short">Fires when Records have been added to the Store
2432                    
2433                 </div> 
2434                     
2435                     <div class="long">
2436                     
2437                         Fires when Records have been added to the Store
2438                     
2439                         
2440                         
2441                 
2442                         
2443                                 <dl class="detailList">
2444                                 <dt class="heading">Parameters:</dt>
2445                                 
2446                                         <dt>
2447                                                 <span class="fixedFont">Store</span> <b>this</b>
2448                                                 
2449                                         </dt>
2450                                         <dd></dd>
2451                                 
2452                                         <dt>
2453                                                 <span class="fixedFont"><a href="./Roo.data.Record.html#constructor" roo:cls="Roo.data.Record.html#constructor">Roo.data.Record</a>[]</span> <b>records</b>
2454                                                 
2455                                         </dt>
2456                                         <dd>The array of Records added</dd>
2457                                 
2458                                         <dt>
2459                                                 <span class="fixedFont"><a href="./Number.html#constructor" roo:cls="Number.html#constructor">Number</a></span> <b>index</b>
2460                                                 
2461                                         </dt>
2462                                         <dd>The index at which the record(s) were added</dd>
2463                                 
2464                                 </dl>
2465                         
2466                         
2467                         
2468                         
2469                         
2470                         
2471                         
2472
2473                     
2474                     
2475                      
2476                     </div>                    
2477                 </div>
2478
2479             </td>
2480             <td class="msource">
2481                 Roo.data.Store
2482             </td>
2483         </tr>
2484         
2485           <tr class="method-row expandable config-row-alt1 notInherited">
2486             <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
2487             
2488             <td class="sig">
2489                 <a id="Roo.data.Store-event-*beforeload"></a>
2490                 
2491                <div class="fixedFont">
2492                 <b class="itemname">beforeload</b> (Store <B><i>this</i></B>, <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a> <B><i>options</i></B>) 
2493                 
2494                 </div>
2495
2496                 <div class="mdesc">
2497
2498                    <div class="short">Fires before a request is made for a new data object.
2499                    
2500                 </div> 
2501                     
2502                     <div class="long">
2503                     
2504                         Fires before a request is made for a new data object.  If the beforeload handler returns false<br/>the load action will be canceled.
2505                     
2506                         
2507                         
2508                 
2509                         
2510                                 <dl class="detailList">
2511                                 <dt class="heading">Parameters:</dt>
2512                                 
2513                                         <dt>
2514                                                 <span class="fixedFont">Store</span> <b>this</b>
2515                                                 
2516                                         </dt>
2517                                         <dd></dd>
2518                                 
2519                                         <dt>
2520                                                 <span class="fixedFont"><a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a></span> <b>options</b>
2521                                                 
2522                                         </dt>
2523                                         <dd>The loading options that were specified (see {<b>link</b> <b>load</b>} for details)</dd>
2524                                 
2525                                 </dl>
2526                         
2527                         
2528                         
2529                         
2530                         
2531                         
2532                         
2533
2534                     
2535                     
2536                      
2537                     </div>                    
2538                 </div>
2539
2540             </td>
2541             <td class="msource">
2542                 Roo.data.Store
2543             </td>
2544         </tr>
2545         
2546           <tr class="method-row expandable config-row-alt0 notInherited">
2547             <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
2548             
2549             <td class="sig">
2550                 <a id="Roo.data.Store-event-*clear"></a>
2551                 
2552                <div class="fixedFont">
2553                 <b class="itemname">clear</b> (Store <B><i>this</i></B>) 
2554                 
2555                 </div>
2556
2557                 <div class="mdesc">
2558
2559                    <div class="short">Fires when the data cache has been cleared.
2560                    
2561                 </div> 
2562                     
2563                     <div class="long">
2564                     
2565                         Fires when the data cache has been cleared.
2566                     
2567                         
2568                         
2569                 
2570                         
2571                                 <dl class="detailList">
2572                                 <dt class="heading">Parameters:</dt>
2573                                 
2574                                         <dt>
2575                                                 <span class="fixedFont">Store</span> <b>this</b>
2576                                                 
2577                                         </dt>
2578                                         <dd></dd>
2579                                 
2580                                 </dl>
2581                         
2582                         
2583                         
2584                         
2585                         
2586                         
2587                         
2588
2589                     
2590                     
2591                      
2592                     </div>                    
2593                 </div>
2594
2595             </td>
2596             <td class="msource">
2597                 Roo.data.Store
2598             </td>
2599         </tr>
2600         
2601           <tr class="method-row expandable config-row-alt1 notInherited">
2602             <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
2603             
2604             <td class="sig">
2605                 <a id="Roo.data.Store-event-*datachanged"></a>
2606                 
2607                <div class="fixedFont">
2608                 <b class="itemname">datachanged</b> (Store <B><i>this</i></B>) 
2609                 
2610                 </div>
2611
2612                 <div class="mdesc">
2613
2614                    <div class="short">Fires when the data cache has changed, and a widget which is using this Store<br/>as a Record cache should refresh its view.
2615                    
2616                 </div> 
2617                     
2618                     <div class="long">
2619                     
2620                         Fires when the data cache has changed, and a widget which is using this Store<br/>as a Record cache should refresh its view.
2621                     
2622                         
2623                         
2624                 
2625                         
2626                                 <dl class="detailList">
2627                                 <dt class="heading">Parameters:</dt>
2628                                 
2629                                         <dt>
2630                                                 <span class="fixedFont">Store</span> <b>this</b>
2631                                                 
2632                                         </dt>
2633                                         <dd></dd>
2634                                 
2635                                 </dl>
2636                         
2637                         
2638                         
2639                         
2640                         
2641                         
2642                         
2643
2644                     
2645                     
2646                      
2647                     </div>                    
2648                 </div>
2649
2650             </td>
2651             <td class="msource">
2652                 Roo.data.Store
2653             </td>
2654         </tr>
2655         
2656           <tr class="method-row expandable config-row-alt0 notInherited">
2657             <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
2658             
2659             <td class="sig">
2660                 <a id="Roo.data.Store-event-*load"></a>
2661                 
2662                <div class="fixedFont">
2663                 <b class="itemname">load</b> (Store <B><i>this</i></B>, <a href="./Roo.data.Record.html#constructor" roo:cls="Roo.data.Record.html#constructor">Roo.data.Record</a>[] <B><i>records</i></B>, <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a> <B><i>options</i></B>) 
2664                 
2665                 </div>
2666
2667                 <div class="mdesc">
2668
2669                    <div class="short">Fires after a new set of Records has been loaded.
2670                    
2671                 </div> 
2672                     
2673                     <div class="long">
2674                     
2675                         Fires after a new set of Records has been loaded.
2676                     
2677                         
2678                         
2679                 
2680                         
2681                                 <dl class="detailList">
2682                                 <dt class="heading">Parameters:</dt>
2683                                 
2684                                         <dt>
2685                                                 <span class="fixedFont">Store</span> <b>this</b>
2686                                                 
2687                                         </dt>
2688                                         <dd></dd>
2689                                 
2690                                         <dt>
2691                                                 <span class="fixedFont"><a href="./Roo.data.Record.html#constructor" roo:cls="Roo.data.Record.html#constructor">Roo.data.Record</a>[]</span> <b>records</b>
2692                                                 
2693                                         </dt>
2694                                         <dd>The Records that were loaded</dd>
2695                                 
2696                                         <dt>
2697                                                 <span class="fixedFont"><a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a></span> <b>options</b>
2698                                                 
2699                                         </dt>
2700                                         <dd>The loading options that were specified (see {<b>link</b> <b>load</b>} for details)</dd>
2701                                 
2702                                 </dl>
2703                         
2704                         
2705                         
2706                         
2707                         
2708                         
2709                         
2710
2711                     
2712                     
2713                      
2714                     </div>                    
2715                 </div>
2716
2717             </td>
2718             <td class="msource">
2719                 Roo.data.Store
2720             </td>
2721         </tr>
2722         
2723           <tr class="method-row expandable config-row-alt1 notInherited">
2724             <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
2725             
2726             <td class="sig">
2727                 <a id="Roo.data.Store-event-*loadexception"></a>
2728                 
2729                <div class="fixedFont">
2730                 <b class="itemname">loadexception</b> (Proxy <B><i></i></B>, <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a> <B><i>return</i></B>, <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a> <B><i>load</i></B>, <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a> <B><i>jsonData</i></B>) 
2731                 
2732                 </div>
2733
2734                 <div class="mdesc">
2735
2736                    <div class="short">Fires if an exception occurs in the Proxy during loading.
2737                    
2738                 </div> 
2739                     
2740                     <div class="long">
2741                     
2742                         Fires if an exception occurs in the Proxy during loading.<br/>Called with the signature of the Proxy's "loadexception" event.<br/>If you return Json { data: [] , success: false, .... } then this will be thrown with the following args
2743                     
2744                         
2745                         
2746                 
2747                         
2748                                 <dl class="detailList">
2749                                 <dt class="heading">Parameters:</dt>
2750                                 
2751                                         <dt>
2752                                                 <span class="fixedFont">Proxy</span> <b></b>
2753                                                 
2754                                         </dt>
2755                                         <dd></dd>
2756                                 
2757                                         <dt>
2758                                                 <span class="fixedFont"><a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a></span> <b>return</b>
2759                                                 
2760                                         </dt>
2761                                         <dd>from JsonData.reader() - success, totalRecords, records</dd>
2762                                 
2763                                         <dt>
2764                                                 <span class="fixedFont"><a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a></span> <b>load</b>
2765                                                 
2766                                         </dt>
2767                                         <dd>options</dd>
2768                                 
2769                                         <dt>
2770                                                 <span class="fixedFont"><a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a></span> <b>jsonData</b>
2771                                                 
2772                                         </dt>
2773                                         <dd>from your request (normally this contains the Exception)</dd>
2774                                 
2775                                 </dl>
2776                         
2777                         
2778                         
2779                         
2780                         
2781                         
2782                         
2783
2784                     
2785                     
2786                      
2787                     </div>                    
2788                 </div>
2789
2790             </td>
2791             <td class="msource">
2792                 Roo.data.Store
2793             </td>
2794         </tr>
2795         
2796           <tr class="method-row expandable config-row-alt0 notInherited">
2797             <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
2798             
2799             <td class="sig">
2800                 <a id="Roo.data.Store-event-*metachange"></a>
2801                 
2802                <div class="fixedFont">
2803                 <b class="itemname">metachange</b> (Store <B><i>this</i></B>, <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a> <B><i>meta</i></B>) 
2804                 
2805                 </div>
2806
2807                 <div class="mdesc">
2808
2809                    <div class="short">Fires when this store's reader provides new metadata (fields).
2810                    
2811                 </div> 
2812                     
2813                     <div class="long">
2814                     
2815                         Fires when this store's reader provides new metadata (fields). This is currently only support for JsonReaders.
2816                     
2817                         
2818                         
2819                 
2820                         
2821                                 <dl class="detailList">
2822                                 <dt class="heading">Parameters:</dt>
2823                                 
2824                                         <dt>
2825                                                 <span class="fixedFont">Store</span> <b>this</b>
2826                                                 
2827                                         </dt>
2828                                         <dd></dd>
2829                                 
2830                                         <dt>
2831                                                 <span class="fixedFont"><a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a></span> <b>meta</b>
2832                                                 
2833                                         </dt>
2834                                         <dd>The JSON metadata</dd>
2835                                 
2836                                 </dl>
2837                         
2838                         
2839                         
2840                         
2841                         
2842                         
2843                         
2844
2845                     
2846                     
2847                      
2848                     </div>                    
2849                 </div>
2850
2851             </td>
2852             <td class="msource">
2853                 Roo.data.Store
2854             </td>
2855         </tr>
2856         
2857           <tr class="method-row expandable config-row-alt1 notInherited">
2858             <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
2859             
2860             <td class="sig">
2861                 <a id="Roo.data.Store-event-*remove"></a>
2862                 
2863                <div class="fixedFont">
2864                 <b class="itemname">remove</b> (Store <B><i>this</i></B>, <a href="./Roo.data.Record.html#constructor" roo:cls="Roo.data.Record.html#constructor">Roo.data.Record</a> <B><i>record</i></B>, <a href="./Number.html#constructor" roo:cls="Number.html#constructor">Number</a> <B><i>index</i></B>) 
2865                 
2866                 </div>
2867
2868                 <div class="mdesc">
2869
2870                    <div class="short">Fires when a Record has been removed from the Store
2871                    
2872                 </div> 
2873                     
2874                     <div class="long">
2875                     
2876                         Fires when a Record has been removed from the Store
2877                     
2878                         
2879                         
2880                 
2881                         
2882                                 <dl class="detailList">
2883                                 <dt class="heading">Parameters:</dt>
2884                                 
2885                                         <dt>
2886                                                 <span class="fixedFont">Store</span> <b>this</b>
2887                                                 
2888                                         </dt>
2889                                         <dd></dd>
2890                                 
2891                                         <dt>
2892                                                 <span class="fixedFont"><a href="./Roo.data.Record.html#constructor" roo:cls="Roo.data.Record.html#constructor">Roo.data.Record</a></span> <b>record</b>
2893                                                 
2894                                         </dt>
2895                                         <dd>The Record that was removed</dd>
2896                                 
2897                                         <dt>
2898                                                 <span class="fixedFont"><a href="./Number.html#constructor" roo:cls="Number.html#constructor">Number</a></span> <b>index</b>
2899                                                 
2900                                         </dt>
2901                                         <dd>The index at which the record was removed</dd>
2902                                 
2903                                 </dl>
2904                         
2905                         
2906                         
2907                         
2908                         
2909                         
2910                         
2911
2912                     
2913                     
2914                      
2915                     </div>                    
2916                 </div>
2917
2918             </td>
2919             <td class="msource">
2920                 Roo.data.Store
2921             </td>
2922         </tr>
2923         
2924           <tr class="method-row expandable config-row-alt0 notInherited">
2925             <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
2926             
2927             <td class="sig">
2928                 <a id="Roo.data.Store-event-*update"></a>
2929                 
2930                <div class="fixedFont">
2931                 <b class="itemname">update</b> (Store <B><i>this</i></B>, <a href="./Roo.data.Record.html#constructor" roo:cls="Roo.data.Record.html#constructor">Roo.data.Record</a> <B><i>record</i></B>, <a href="./String.html#constructor" roo:cls="String.html#constructor">String</a> <B><i>operation</i></B>) 
2932                 
2933                 </div>
2934
2935                 <div class="mdesc">
2936
2937                    <div class="short">Fires when a Record has been updated
2938                    
2939                 </div> 
2940                     
2941                     <div class="long">
2942                     
2943                         Fires when a Record has been updated
2944                     
2945                         
2946                         
2947                 
2948                         
2949                                 <dl class="detailList">
2950                                 <dt class="heading">Parameters:</dt>
2951                                 
2952                                         <dt>
2953                                                 <span class="fixedFont">Store</span> <b>this</b>
2954                                                 
2955                                         </dt>
2956                                         <dd></dd>
2957                                 
2958                                         <dt>
2959                                                 <span class="fixedFont"><a href="./Roo.data.Record.html#constructor" roo:cls="Roo.data.Record.html#constructor">Roo.data.Record</a></span> <b>record</b>
2960                                                 
2961                                         </dt>
2962                                         <dd>The Record that was updated</dd>
2963                                 
2964                                         <dt>
2965                                                 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a></span> <b>operation</b>
2966                                                 
2967                                         </dt>
2968                                         <dd>The update operation being performed.  Value may be one of:<br/><pre><code><br/> Roo.data.Record.EDIT<br/> Roo.data.Record.REJECT<br/> Roo.data.Record.COMMIT<br/></code></pre></dd>
2969                                 
2970                                 </dl>
2971                         
2972                         
2973                         
2974                         
2975                         
2976                         
2977                         
2978
2979                     
2980                     
2981                      
2982                     </div>                    
2983                 </div>
2984
2985             </td>
2986             <td class="msource">
2987                 Roo.data.Store
2988             </td>
2989         </tr>
2990         
2991                                                        
2992     </table>
2993
2994   
2995   
2996   
2997  
2998 <!-- ============================== footer ================================= -->
2999                 <div class="fineprint" style="clear:both">
3000                         
3001                         Documentation generated by <a href="http://www.akbkhome.com" target="_blankt">Introspection Doc Generator</a>  on Fri Jul 16 2010 19:32:50 GMT+0800 (HKT)
3002                         Based on 
3003                         <a href="http://www.jsdoctoolkit.org/" target="_blank">JsDoc Toolkit</a>  
3004                 </div>
3005         </body>
3006 </html>