A specialized store implementation that provides for grouping records by one of the available fields. This
+
A specialized store implementation that provides for grouping records by one of the available fields. This
is usually used in conjunction with an
Ext.grid.GroupingView to provide the data model for
a grouped GridPanel.
Internally, GroupingStore is simply a normal Store with multi sorting enabled from the start. The grouping field
@@ -174,13 +174,12 @@ for a description of this property.
To modify this property see setBasePar...
Store | | fields : Ext.util.MixedCollection | Store |
| hasMultiSort : Boolean
-True if this store is currently sorted by more than one field/direction combination. | Store |
| isDestroyed : Boolean
+for the Records stored in this Store. Read-only. | Store |
| isDestroyed : Boolean
True if the store has been destroyed already. Read only | Store |
| lastOptions : ObjectContains the last options object used as the parameter to the load method. See load
for the details of what this may ... Contains the last options object used as the parameter to the load method. See load
for the details of what this may contain. This may be useful for accessing any params which were used
-to load the current Record cache. | Store |
| multiSortInfo : Object
-Object containing overall sort direction and an ordered array of sorter configs used when sorting on multiple fields | Store |
| recordType : FunctionThe Record constructor as supplied to (or created by) the
+to load the current Record cache. | Store |
| multiSort : Boolean
+True if this store is currently sorted by more than one field/direction combination. | Store |
| multiSortInfo : Object Object containing overall sort direction and an ordered array of sorter configs used when sorting on multiple fields | Store |
| recordType : FunctionThe Record constructor as supplied to (or created by) the
Reader. Read-only.
If the Reader was constructed by passing... The Record constructor as supplied to (or created by) the
Reader. Read-only.
@@ -318,13 +317,7 @@ should go based on the current sort information. Commit all Records with outstanding changes. To handle updates for changes,
subscribe to the Store's update event, an... Commit all Records with outstanding changes. To handle updates for changes,
subscribe to the Store's update event, and perform updating when the third parameter is
-Ext.data.Record.COMMIT. | Store |
| createMultipleFilterFn( Array filters )
- :
- FunctionGiven an array of filter functions (each with optional scope), constructs and returns a single function that returns
-... Given an array of filter functions (each with optional scope), constructs and returns a single function that returns
-the result of all of the filters ANDed together | Store |
| createSortFunction( String field , String direction )
- :
- FunctionCreates and returns a function which sorts an array by the given field and direction Creates and returns a function which sorts an array by the given field and direction | Store |
| destroy()
+Ext.data.Record.COMMIT. | Store |
| destroy()
:
void | Store |
| each( Function fn , [Object scope ] )
:
@@ -372,21 +365,21 @@ options to filter by more than one property.
Single filter example:
store.filter('name', 'Ed', true, true); //finds all records containing the substring 'Ed'
Multiple filter example:
-store.filter([
+store.filter([
{
-property : 'name',
-value : 'Ed',
-anyMatch : true, //optional, defaults to true
-caseSensitive: true //optional, defaults to true
+property : 'name',
+value : 'Ed',
+anyMatch : true, //optional, defaults to true
+caseSensitive: true //optional, defaults to true
},
-//filter functions can also be passed
+//filter functions can also be passed
{
-fn : function(record) {
-return record.get('age') == 24
+fn : function(record) {
+return record.get('age') == 24
},
scope: this
}
-]);
| Store |
| filterBy( Function fn , [Object scope ] )
:
voidFilter by a function. The specified function will be called for each
@@ -625,8 +618,8 @@ false the load action will b... Fires before a request is
with an array of records for each action. | Store |
| beforewrite :
( Ext.data.Store store , String action , Record/Record[] rs , Object options , Object arg )
Listeners will be called with the following arguments: | Store |
| clear :
- ( Store this , Record[] The )
- Fires when the data cache has been cleared. Fires when the data cache has been cleared. Listeners will be called with the following arguments: | Store |
| datachanged :
+ ( Store this , Record[] records )
+ Fires when the data cache has been cleared. Fires when the data cache has been cleared. Listeners will be called with the following arguments: | Store |
| datachanged :
( Store this )
Fires when the data cache has changed in a bulk manner (e.g., it has been sorted, filtered, etc.) and a
widget that i... Fires when the data cache has changed in a bulk manner (e.g., it has been sorted, filtered, etc.) and a
|