- |
-
-
- paramNames : Object
- An object containing properties which specify the names of the paging and
-sorting parameters passed to remote servers...
-
- An object containing properties which specify the names of the paging and
+ Package: | Ext.data | Defined In: | GroupingStore.js | Class: | GroupingStore | Extends: | Store | xtype: | groupingstore |
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 proved the data model for
+a grouped GridPanel. Config Options|
| autoDestroy : Booleantrue to destroy the store when the component the store is bound
+to is destroyed (defaults to false).
+Note: this shoul... true to destroy the store when the component the store is bound
+to is destroyed (defaults to false).
+ Note: this should be set to true when using stores that are bound to only 1 component. | Store | | autoLoad : Boolean/ObjectIf data is not specified, and if autoLoad
+is true or an Object, this store's load method is automatically called
+afte... If data is not specified, and if autoLoad
+is true or an Object, this store's load method is automatically called
+after creation. If the value of autoLoad is an Object, this Object will
+be passed to the store's load method. | Store | | autoSave : BooleanDefaults to true causing the store to automatically save records to
+the server when a record is modified (ie: becomes... Defaults to true causing the store to automatically save records to
+the server when a record is modified (ie: becomes 'dirty'). Specify false to manually call save
+to send all modifiedRecords to the server.
+ Note: each CRUD action will be sent as a separate request. | Store | | baseParams : ObjectAn object containing properties which are to be sent as parameters
+for every HTTP request.
+Parameters are encoded as ... An object containing properties which are to be sent as parameters
+for every HTTP request.
+ Parameters are encoded as standard HTTP parameters using Ext.urlEncode.
+ Note: baseParams may be superseded by any params
+specified in a load request, see load
+for more details.
+This property may be modified after creation using the setBaseParam
+method. | Store | | batch : BooleanDefaults to true (unless restful:true). Multiple
+requests for each CRUD action (CREATE, READ, UPDATE and DESTROY) wil... Defaults to true (unless restful:true ). Multiple
+requests for each CRUD action (CREATE, READ, UPDATE and DESTROY) will be combined
+and sent as one transaction. Only applies when autoSave is set
+to false.
+ If Store is RESTful, the DataProxy is also RESTful, and a unique transaction is
+generated for each record. | Store | | data : ArrayAn inline data object readable by the reader .
+Typically this option, or the url option will be specified. | Store | | defaultParamNames : ObjectProvides the default values for the paramNames property. To globally modify the parameters
+for all stores, this objec... Provides the default values for the paramNames property. To globally modify the parameters
+for all stores, this object should be changed on the store prototype. | Store | | groupField : String The field name by which to sort the store's data (defaults to ''). | GroupingStore | | groupOnSort : BooleanTrue to sort the data on the grouping field when a grouping operation occurs, false to sort based on the
+existing so... True to sort the data on the grouping field when a grouping operation occurs, false to sort based on the
+existing sort info (defaults to false). | GroupingStore | | listeners : ObjectA config object containing one or more event handlers to be added to this
+object during initialization. This should ... A config object containing one or more event handlers to be added to this
+object during initialization. This should be a valid listeners config object as specified in the
+addListener example for attaching multiple handlers at once.
+ DOM events from ExtJs Components
+ While some ExtJs Component classes export selected DOM events (e.g. "click", "mouseover" etc), this
+is usually only done when extra value can be added. For example the DataView's
+click event passing the node clicked on. To access DOM
+events directly from a Component's HTMLElement, listeners must be added to the Element after the Component
+has been rendered. A plugin can simplify this step: // Plugin is configured with a listeners config object.
+// The Component is appended to the argument list of all handler functions.
+Ext.DomObserver = Ext.extend(Object, {
+ constructor: function(config) {
+ this.listeners = config.listeners ? config.listeners : config;
+ },
+
+ // Component passes itself into plugin's init method
+ init: function(c) {
+ var p, l = this.listeners;
+ for (p in l) {
+ if (Ext.isFunction(l[p])) {
+ l[p] = this.createHandler(l[p], c);
+ } else {
+ l[p].fn = this.createHandler(l[p].fn, c);
+ }
+ }
+
+ // Add the listeners to the Element immediately following the render call
+ c.render = c.render.createSequence(function() {
+ var e = c.getEl();
+ if (e) {
+ e.on(l);
+ }
+ });
+ },
+
+ createHandler: function(fn, c) {
+ return function(e) {
+ fn.call(this, e, c);
+ };
+ }
+});
+
+var combo = new Ext.form.ComboBox({
+
+ // Collapse combo when its element is clicked on
+ plugins: [ new Ext.DomObserver({
+ click: function(evt, comp) {
+ comp.collapse();
+ }
+ })],
+ store: myStore,
+ typeAhead: true,
+ mode: 'local',
+ triggerAction: 'all'
+});
| Observable | | paramNames : ObjectAn object containing properties which specify the names of the paging and
+sorting parameters passed to remote servers... An object containing properties which specify the names of the paging and
sorting parameters passed to remote servers when loading blocks of data. By default, this
object takes the following form: {
- start : "start", // The parameter name which specifies the start row
- limit : "limit", // The parameter name which specifies number of rows to return
- sort : "sort", // The parameter name which specifies the column to sort on
- dir : "dir" // The parameter name which specifies the sort direction
+ start : 'start', // The parameter name which specifies the start row
+ limit : 'limit', // The parameter name which specifies number of rows to return
+ sort : 'sort', // The parameter name which specifies the column to sort on
+ dir : 'dir' // The parameter name which specifies the sort direction
}
The server must produce the requested data block upon receipt of these parameter names.
If different parameter names are required, this property can be overriden using a configuration
property.
- A PagingToolbar bound to this grid uses this property to determine
-the parameter names to use in its requests.
-
- |
- Store |
-
-
- |
-
-
- recordType : Function
- The Record constructor as supplied to (or created by) the Reader. Read-only.
-If the Reader was constructed by passin...
-
- The Record constructor as supplied to (or created by) the Reader. Read-only.
- If the Reader was constructed by passing in an Array of field definition objects, instead of an created
-Record constructor it will have created a constructor from that Array.
- This property may be used to create new Records of the type held in this Store.
-
- |
- Store |
-
-
-
- Public Methods
-
-
-
-
-
-
- |
-
-
- GroupingStore( Object config )
- Creates a new GroupingStore.
-
- Creates a new GroupingStore.
- Parameters:
-
- Returns:
-
-
-
-
- |
- GroupingStore |
-
-
- |
-
-
- add( Ext.data.Record[] records ) : void
- Add Records to the Store and fires the add event.
-
- Add Records to the Store and fires the add event.
- Parameters:
-
- Returns:
-
-
-
-
- |
- Store |
-
-
- |
-
-
- addEvents( Object object ) : void
- Used to define events on this Observable
-
- Used to define events on this Observable
- Parameters:
-
- Returns:
-
-
-
-
- |
- Observable |
-
-
- |
-
-
- addListener( String eventName , Function handler , [Object scope ], [Object options ] ) : void
- Appends an event handler to this component
-
- Appends an event handler to this component
- Parameters:
- eventName : StringThe type of event to listen for handler : FunctionThe method the event invokes scope : Object(optional) The scope in which to execute the handler
-function. The handler function's "this" context. options : Object(optional) An object containing handler configuration
+ A PagingToolbar bound to this Store uses this property to determine
+the parameter names to use in its requests.
| Store | | proxy : Ext.data.DataProxyThe DataProxy object which provides
+access to a data object. See url . | Store | | pruneModifiedRecords : Booleantrue to clear all modified record information each time
+the store is loaded or when a record is removed (defaults to ... true to clear all modified record information each time
+the store is loaded or when a record is removed (defaults to false). See getModifiedRecords
+for the accessor method to retrieve the modified records. | Store | | reader : Ext.data.DataReaderThe Reader object which processes the
+data object and returns an Array of Ext.data.Record objects which are cached ke... The Reader object which processes the
+data object and returns an Array of Ext.data.Record objects which are cached keyed by their
+ id property. | Store | | remoteGroup : BooleanTrue if the grouping should apply on the server side, false if it is local only (defaults to false). If the
+groupin... True if the grouping should apply on the server side, false if it is local only (defaults to false). If the
+grouping is local, it can be applied immediately to the data. If it is remote, then it will simply act as a
+helper, automatically sending the grouping field name as the 'groupBy' param with each XHR call. | GroupingStore | | remoteSort : booleantrue if sorting is to be handled by requesting the Proxy
+to provide a refreshed version of the data object in sorted ... true if sorting is to be handled by requesting the Proxy
+to provide a refreshed version of the data object in sorted order, as opposed to sorting the Record cache
+in place (defaults to false).
+ If remoteSort is true, then clicking on a Grid Column's
+header causes the current page to be requested from the server appending
+the following two parameters to the params:
+- sort : String
The name (as specified in the Record's
+Field definition) of the field to sort on.
+- dir : String
The direction of the sort, 'ASC' or 'DESC' (case-sensitive).
+ | Store | | restful : BooleanDefaults to false. Set to true to have the Store and the set
+Proxy operate in a RESTful manner. The store will autom... Defaults to false. Set to true to have the Store and the set
+Proxy operate in a RESTful manner. The store will automatically generate GET, POST,
+PUT and DELETE requests to the server. The HTTP method used for any given CRUD
+action is described in Ext.data.Api.restActions. For additional information
+see Ext.data.DataProxy.restful.
+ Note: if restful:true batch will
+internally be set to false. | Store | | sortInfo : ObjectA config object to specify the sort order in the request of a Store's
+load operation. Note that for local sorting, t... A config object to specify the sort order in the request of a Store's
+ load operation. Note that for local sorting, the direction property is
+case-sensitive. See also remoteSort and paramNames.
+For example: sortInfo: {
+ field: 'fieldName',
+ direction: 'ASC' // or 'DESC' (case sensitive for local sorting)
+}
| Store | | storeId : StringIf passed, the id to use to register with the StoreMgr.
+Note: if a (deprecated) id is specified it will supersede the... If passed, the id to use to register with the StoreMgr.
+ Note: if a (deprecated) id is specified it will supersede the storeId
+assignment. | Store | | url : StringIf a proxy is not specified the url will be used to
+implicitly configure a HttpProxy if an url is specified.
+Typicall... If a proxy is not specified the url will be used to
+implicitly configure a HttpProxy if an url is specified.
+Typically this option, or the data option will be specified. | Store | | writer : Ext.data.DataWriterThe Writer object which processes a record object for being written
+to the server-side database.
+When a writer is ins... The Writer object which processes a record object for being written
+to the server-side database.
+ When a writer is installed into a Store the add, remove, and update
+events on the store are monitored in order to remotely create records,
+destroy records, or update records.
+ The proxy for this store will relay any writexception events to this store.
+ Sample implementation:
+ var writer = new Ext.data.JsonWriter({
+ encode: true,
+ writeAllFields: true // write all fields, not just those that changed
+});
+
+// Typical Store collecting the Proxy, Reader and Writer together.
+var store = new Ext.data.Store({
+ storeId: 'user',
+ root: 'records',
+ proxy: proxy,
+ reader: reader,
+ writer: writer, // <-- plug a DataWriter into the store just as you would a Reader
+ paramsAsHash: true,
+ autoSave: false // <-- false to delay executing create, update, destroy requests
+ // until specifically told to do so.
+});
| Store | Public Properties|
| baseParams : ObjectSee the corresponding configuration option
+for a description of this property.
+To modify this property see setBasePar... | Store | | fields : Ext.util.MixedCollection | 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 | | 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.
+ If the Reader was constructed by passing in an Array of Ext.data.Field definition objects,
+instead of a Record constructor, it will implicitly create a Record constructor from that Array (see
+Ext.data.Record.create for additional details).
+ This property may be used to create new Records of the type held in this Store, for example: // create the data store
+var store = new Ext.data.ArrayStore({
+ autoDestroy: true,
+ fields: [
+ {name: 'company'},
+ {name: 'price', type: 'float'},
+ {name: 'change', type: 'float'},
+ {name: 'pctChange', type: 'float'},
+ {name: 'lastChange', type: 'date', dateFormat: 'n/j h:ia'}
+ ]
+});
+store.loadData(myData);
+
+// create the Grid
+var grid = new Ext.grid.EditorGridPanel({
+ store: store,
+ colModel: new Ext.grid.ColumnModel({
+ columns: [
+ {id:'company', header: 'Company', width: 160, dataIndex: 'company'},
+ {header: 'Price', renderer: 'usMoney', dataIndex: 'price'},
+ {header: 'Change', renderer: change, dataIndex: 'change'},
+ {header: '% Change', renderer: pctChange, dataIndex: 'pctChange'},
+ {header: 'Last Updated', width: 85,
+ renderer: Ext.util.Format.dateRenderer('m/d/Y'),
+ dataIndex: 'lastChange'}
+ ],
+ defaults: {
+ sortable: true,
+ width: 75
+ }
+ }),
+ autoExpandColumn: 'company', // match the id specified in the column model
+ height:350,
+ width:600,
+ title:'Array Grid',
+ tbar: [{
+ text: 'Add Record',
+ handler : function(){
+ var defaultData = {
+ change: 0,
+ company: 'New Company',
+ lastChange: (new Date()).clearTime(),
+ pctChange: 0,
+ price: 10
+ };
+ var recId = 3; // provide unique id
+ var p = new store.recordType(defaultData, recId); // create new record
+ grid.stopEditing();
+ store.insert(0, p); // insert a new record into the store (also see add)
+ grid.startEditing(0, 0);
+ }
+ }]
+});
| Store |
Public Methods|
| GroupingStore( Object config )
+ Creates a new GroupingStore. Creates a new GroupingStore. | GroupingStore | | add( Ext.data.Record[] records )
+ :
+ voidAdd Records to the Store and fires the add event. To add Records
+to the store from a remote source use load({add:tru... Add Records to the Store and fires the add event. To add Records
+to the store from a remote source use load({add:true}) .
+See also recordType and insert . Parameters:records : Ext.data.Record[]An Array of Ext.data.Record objects
+to add to the cache. See recordType. Returns: | Store | | addEvents( Object object )
+ :
+ voidUsed to define events on this Observable Used to define events on this Observable | Observable | | addListener( String eventName , Function handler , [Object scope ], [Object options ] )
+ :
+ voidAppends an event handler to this object. Appends an event handler to this object. Parameters:eventName : StringThe name of the event to listen for. handler : FunctionThe method the event invokes. scope : Object(optional) The scope (this reference) in which the handler function is executed.
+If omitted, defaults to the object which fired the event. options : Object(optional) An object containing handler configuration.
properties. This may contain any of the following properties:
-- scope : Object
The scope in which to execute the handler function. The handler function's "this" context.
-- delay : Number
The number of milliseconds to delay the invocation of the handler after the event fires.
-- single : Boolean
True to add a handler to handle just the next firing of the event, and then remove itself.
-- buffer : Number
Causes the handler to be scheduled to run in an Ext.util.DelayedTask delayed
+ - scope : Object
The scope (this reference) in which the handler function is executed.
+If omitted, defaults to the object which fired the event.
+- delay : Number
The number of milliseconds to delay the invocation of the handler after the event fires.
+- single : Boolean
True to add a handler to handle just the next firing of the event, and then remove itself.
+- buffer : Number
Causes the handler to be scheduled to run in an Ext.util.DelayedTask delayed
by the specified number of milliseconds. If the event fires again within that time, the original
-handler is not invoked, but the new handler is scheduled in its place.
+handler is not invoked, but the new handler is scheduled in its place.
+- target : Observable
Only call the handler if the event was fired on the target Observable, not
+if the event was bubbled up from a child Observable.
Combining Options
Using the options argument, it is possible to combine different types of listeners:
-A normalized, delayed, one-time listener that auto stops the event and passes a custom argument (forumId)
- el.on('click', this.onClick, this, {
+A delayed, one-time listener.
+myDataView.on('click', this.onClick, this, {
single: true,
- delay: 100,
- forumId: 4
+ delay: 100
});
Attaching multiple handlers in 1 call
The method also allows for a single argument to be passed which is a config object containing properties
which specify multiple handlers.
- foo.on({
+myGridPanel.on({
'click' : {
- fn: this.onClick,
- scope: this,
+ fn: this.onClick,
+ scope: this,
delay: 100
},
'mouseover' : {
- fn: this.onMouseOver,
- scope: this
+ fn: this.onMouseOver,
+ scope: this
},
'mouseout' : {
- fn: this.onMouseOut,
- scope: this
+ fn: this.onMouseOut,
+ scope: this
}
});
Or a shorthand syntax:
- foo.on({
- 'click' : this.onClick,
- 'mouseover' : this.onMouseOver,
- 'mouseout' : this.onMouseOut,
- scope: this
-});
- Returns:
-
-
-
-
- |
- Observable |
-
-
- |
-
-
- addSorted( Ext.data.Record record ) : void
- (Local sort only) Inserts the passed Record into the Store at the index where it
-should go based on the current sort ...
-
- (Local sort only) Inserts the passed Record into the Store at the index where it
-should go based on the current sort information.
- Parameters:
-
- Returns:
-
-
-
-
- |
- Store |
-
-
- |
-
-
- clearFilter( Boolean suppressEvent ) : void
- Revert to a view of the Record cache with no filtering applied.
-
- Revert to a view of the Record cache with no filtering applied.
- Parameters:
-
- Returns:
-
-
-
-
- |
- Store |
-
-
- |
-
-
- clearGrouping() : void
- Clears any existing grouping and refreshes the data using the default sort.
-
- Clears any existing grouping and refreshes the data using the default sort.
- Parameters:
-
- Returns:
-
-
-
-
- |
- GroupingStore |
-
-
- |
-
-
- collect( String dataIndex , [Boolean allowNull ], [Boolean bypassFilter ] ) : Array
- Collects unique values for a particular dataIndex from this store.
-
- Collects unique values for a particular dataIndex from this store.
- Parameters:
- dataIndex : StringThe property to collect allowNull : Boolean(optional) Pass true to allow null, undefined or empty string values bypassFilter : Boolean(optional) Pass true to collect from all records, even ones which are filtered
- Returns:
-
-
-
-
- |
- Store |
-
-
- |
-
-
- commitChanges() : void
- Commit all Records with outstanding changes. To handle updates for changes, subscribe to the
-Store's "update" event, ...
-
- 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.
- Parameters:
-
- Returns:
-
-
-
-
- |
- Store |
-
-
- |
-
-
- each( Function fn , [Object scope ] ) : void
- Calls the specified function for each of the Records in the cache.
-
- Calls the specified function for each of the Records in the cache.
- Parameters:
-
- Returns:
-
-
-
-
- |
- Store |
-
-
- |
-
-
- filter( String field , String/RegExp value , [Boolean anyMatch ], [Boolean caseSensitive ] ) : void
- Filter the records by a specified property.
-
- Filter the records by a specified property.
- Parameters:
- field : StringA field on your records value : String/RegExpEither a string that the field
-should begin with, or a RegExp to test against the field. anyMatch : Boolean(optional) True to match any part not just the beginning caseSensitive : Boolean(optional) True for case sensitive comparison
- Returns:
-
-
-
-
- |
- Store |
-
-
- |
-
-
- filterBy( Function fn , [Object scope ] ) : void
- Filter by a function. The specified function will be called for each
-Record in this Store. If the function returns tr...
-
- Filter by a function. The specified function will be called for each
+ myGridPanel.on({
+ 'click' : this.onClick,
+ 'mouseover' : this.onMouseOver,
+ 'mouseout' : this.onMouseOut,
+ scope: this
+});
Returns: | Observable | | addSorted( Ext.data.Record record )
+ :
+ void(Local sort only) Inserts the passed Record into the Store at the index where it
+should go based on the current sort ... (Local sort only) Inserts the passed Record into the Store at the index where it
+should go based on the current sort information. | Store | | clearFilter( Boolean suppressEvent )
+ :
+ voidRevert to a view of the Record cache with no filtering applied. Revert to a view of the Record cache with no filtering applied. Parameters:suppressEvent : BooleanIf true the filter is cleared silently without firing the
+ datachanged event. Returns: | Store | | clearGrouping()
+ :
+ voidClears any existing grouping and refreshes the data using the default sort. Clears any existing grouping and refreshes the data using the default sort. | GroupingStore | | collect( String dataIndex , [Boolean allowNull ], [Boolean bypassFilter ] )
+ :
+ ArrayCollects unique values for a particular dataIndex from this store. Collects unique values for a particular dataIndex from this store. Parameters:dataIndex : StringThe property to collect allowNull : Boolean(optional) Pass true to allow null, undefined or empty string values bypassFilter : Boolean(optional) Pass true to collect from all records, even ones which are filtered Returns: | Store | | commitChanges()
+ :
+ voidCommit 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 | | destroy()
+ :
+ void | Store | | each( Function fn , [Object scope ] )
+ :
+ voidCalls the specified function for each of the Records in the cache. Calls the specified function for each of the Records in the cache. Parameters:fn : FunctionThe function to call. The Record is passed as the first parameter.
+Returning false aborts and exits the iteration. scope : Object(optional) The scope in which to call the function (defaults to the Record). Returns: | Store | | enableBubble( Object events )
+ :
+ voidUsed to enable bubbling of events Used to enable bubbling of events | Observable | | filter( String field , String/RegExp value , [Boolean anyMatch ], [Boolean caseSensitive ] )
+ :
+ voidFilter the records by a specified property. Filter the records by a specified property. Parameters:field : StringA field on your records value : String/RegExpEither a string that the field should begin with, or a RegExp to test
+against the field. anyMatch : Boolean(optional) true to match any part not just the beginning caseSensitive : Boolean(optional) true for case sensitive comparison Returns: | Store | | filterBy( Function fn , [Object scope ] )
+ :
+ voidFilter by a function. The specified function will be called for each
+Record in this Store. If the function returns tr... Filter by a function. The specified function will be called for each
Record in this Store. If the function returns true the Record is included,
-otherwise it is filtered out.
- Parameters:
- fn : FunctionThe function to be called. It will be passed the following parameters:
-
- |
- Store |
-
-
- |
-
-
- find( String property , String/RegExp value , [Number startIndex ], [Boolean anyMatch ], [Boolean caseSensitive ] ) : Number
- Finds the index of the first matching record in this store by a specific property/value.
-
- Finds the index of the first matching record in this store by a specific property/value.
- Parameters:
- property : StringA property on your objects value : String/RegExpEither a string that the property value
-should begin with, or a RegExp to test against the property. startIndex : Number(optional) The index to start searching at anyMatch : Boolean(optional) True to match any part of the string, not just the beginning caseSensitive : Boolean(optional) True for case sensitive comparison
- Returns:
-
- Number The matched index or -1
-
-
-
-
- |
- Store |
-
-
- |
-
-
- findBy( Function fn , [Object scope ], [Number startIndex ] ) : Number
- Find the index of the first matching Record in this Store by a function.
-If the function returns true it is considere...
-
- Find the index of the first matching Record in this Store by a function.
-If the function returns true it is considered a match. | Store | | find( String property , String/RegExp value , [Number startIndex ], [Boolean anyMatch ], [Boolean caseSensitive ] )
+ :
+ NumberFinds the index of the first matching record in this store by a specific property/value. Finds the index of the first matching record in this store by a specific property/value. Parameters:property : StringA property on your objects value : String/RegExpEither a string that the property value
+should begin with, or a RegExp to test against the property. startIndex : Number(optional) The index to start searching at anyMatch : Boolean(optional) True to match any part of the string, not just the beginning caseSensitive : Boolean(optional) True for case sensitive comparison Returns:Number The matched index or -1
| Store | | findBy( Function fn , [Object scope ], [Number startIndex ] )
+ :
+ NumberFind the index of the first matching Record in this Store by a function.
+If the function returns true it is considere... Find the index of the first matching Record in this Store by a function.
+If the function returns true it is considered a match. Parameters:
- Returns:
-
- Number The matched index or -1
-
-
-
-
- |
- Store |
-
-
- |
-
-
- fireEvent( String eventName , Object... args ) : Boolean
- Fires the specified event with the passed parameters (minus the event name).
-
- Fires the specified event with the passed parameters (minus the event name).
- Parameters:
-
- Returns:
-
-
-
-
- |
- Observable |
-
-
- |
-
-
- getAt( Number index ) : Ext.data.Record
- Get the Record at the specified index.
-
- Get the Record at the specified index.
- Parameters:
-
- Returns:
-
-
-
-
- |
- Store |
-
-
- |
-
-
- getById( String id ) : Ext.data.Record
- Get the Record with the specified id.
-
- Get the Record with the specified id.
- Parameters:
-
- Returns:
-
-
-
-
- |
- Store |
-
-
- |
-
-
- getCount() : Number
- Gets the number of cached records.
-If using paging, this may not be the total size of the dataset. If the data object...
-
- Gets the number of cached records.
+ scope : Object(optional) The scope of the function (defaults to this) startIndex : Number(optional) The index to start searching at Returns:Number The matched index or -1
| Store | | findExact( String property , String/RegExp value , [Number startIndex ] )
+ :
+ NumberFinds the index of the first matching record in this store by a specific property/value. Finds the index of the first matching record in this store by a specific property/value. Parameters:property : StringA property on your objects value : String/RegExpThe value to match against startIndex : Number(optional) The index to start searching at Returns:Number The matched index or -1
| Store | | fireEvent( String eventName , Object... args )
+ :
+ BooleanFires the specified event with the passed parameters (minus the event name).
+An event may be set to bubble up an Obse... | Observable | | getAt( Number index )
+ :
+ Ext.data.RecordGet the Record at the specified index. Get the Record at the specified index. | Store | | getById( String id )
+ :
+ Ext.data.RecordGet the Record with the specified id. Get the Record with the specified id. | Store | | getCount()
+ :
+ NumberGets the number of cached records.
+If using paging, this may not be the total size of the dataset. If the data object... Gets the number of cached records.
If using paging, this may not be the total size of the dataset. If the data object
-used by the Reader contains the dataset size, then the getTotalCount function returns
-the dataset size.
- Parameters:
-
- Returns:
-
-
-
-
- |
- Store |
-
-
- |
-
-
- getModifiedRecords() : Ext.data.Record[]
- Gets all records modified since the last commit. Modified records are persisted across load operations
-(e.g., during...
-
- Gets all records modified since the last commit. Modified records are persisted across load operations
-(e.g., during paging).
- Parameters:
-
- Returns:
-
-
-
-
- |
- Store |
-
-
- |
-
-
- getRange( [Number startIndex ], [Number endIndex ] ) : Ext.data.Record[]
- Returns a range of Records between specified indices.
-
- Returns a range of Records between specified indices.
- Parameters:
-
- Returns:
-
- Ext.data.Record[] An array of Records
-
-
-
-
- |
- Store |
-
-
- |
-
-
- getSortState() : Object
- Returns an object describing the current sort state of this Store.
-
- Returns an object describing the current sort state of this Store.
- Parameters:
-
- Returns:
-
- Object The sort state of the Store. An object with two properties: - field : String
The name of the field by which the Records are sorted. - direction : String
The sort order, "ASC" or "DESC" (case-sensitive).
-
-
-
-
- |
- Store |
-
-
- |
-
-
- getTotalCount() : Number
- Gets the total number of records in the dataset as returned by the server.
-If using paging, for this to be accurate, ...
-
- Gets the total number of records in the dataset as returned by the server.
- If using paging, for this to be accurate, the data object used by the Reader must contain
-the dataset size. For remote data sources, this is provided by a query on the server.
- Parameters:
-
- Returns:
-
- Number The number of Records as specified in the data object passed to the Reader by the Proxy This value is not updated when changing the contents of the Store locally.
-
-
-
-
- |
- Store |
-
-
- |
-
-
- groupBy( String field , [Boolean forceRegroup ] ) : void
- Groups the data by the specified field.
-
- Groups the data by the specified field.
- Parameters:
- field : StringThe field name by which to sort the store's data forceRegroup : Boolean(optional) True to force the group to be refreshed even if the field passed
-in is the same as the current grouping field, false to skip grouping on the same field (defaults to false)
- Returns:
-
-
-
-
- |
- GroupingStore |
-
-
- |
-
-
- hasListener( String eventName ) : Boolean
- Checks to see if this object has any listeners for a specified event
-
- Checks to see if this object has any listeners for a specified event
- Parameters:
-
- Returns:
-
-
-
-
- |
- Observable |
-
-
- |
-
-
- indexOf( Ext.data.Record record ) : Number
- Get the index within the cache of the passed Record.
-
- Get the index within the cache of the passed Record.
- Parameters:
-
- Returns:
-
-
-
-
- |
- Store |
-
-
- |
-
-
- indexOfId( String id ) : Number
- Get the index within the cache of the Record with the passed id.
-
- Get the index within the cache of the Record with the passed id.
- Parameters:
-
- Returns:
-
-
-
-
- |
- Store |
-
-
- |
-
-
- insert( Number index , Ext.data.Record[] records ) : void
- Inserts Records into the Store at the given index and fires the add event.
-
- Inserts Records into the Store at the given index and fires the add event.
- Parameters:
-
- Returns:
-
-
-
-
- |
- Store |
-
-
- |
-
-
- isFiltered() : Boolean
- Returns true if this store is currently filtered
-
- Returns true if this store is currently filtered
- Parameters:
-
- Returns:
-
-
-
-
- |
- Store |
-
-
- |
-
-
- load( Object options ) : Boolean
- Loads the Record cache from the configured Proxy using the configured Reader.
-If using remote paging, then the first ...
-
- Loads the Record cache from the configured Proxy using the configured Reader.
- If using remote paging, then the first load call must specify the start
-and limit properties in the options.params property to establish the initial
-position within the dataset, and the number of Records to cache on each read from the Proxy.
- It is important to note that for remote data sources, loading is asynchronous,
-and this call will return before the new data has been loaded. Perform any post-processing
-in a callback function, or in a "load" event handler.
- Parameters:
- options : ObjectAn object containing properties which control loading options:
-- params :Object
An object containing properties to pass as HTTP parameters to a remote data source.
-- callback : Function
A function to be called after the Records have been loaded. The callback is
-passed the following arguments:
-- r : Ext.data.Record[]
-- options: Options object from the load call
-- success: Boolean success indicator
-- scope : Object
Scope with which to call the callback (defaults to the Store object)
-- add : Boolean
Indicator to append loaded records rather than replace the current cache.
-
- Returns:
-
-
-
-
- |
- Store |
-
-
- |
-
-
- loadData( Object data , [Boolean add ] ) : void
- Loads data from a passed data block and fires the load event. A Reader which understands the format of the data
-must ...
-
- Loads data from a passed data block and fires the load event. A Reader which understands the format of the data
-must have been configured in the constructor.
- Parameters:
-
- Returns:
-
-
-
-
- |
- Store |
-
-
- |
-
-
- on( String eventName , Function handler , [Object scope ], [Object options ] ) : void
- Appends an event handler to this element (shorthand for addListener)
-
- Appends an event handler to this element (shorthand for addListener)
- Parameters:
- eventName : StringThe type of event to listen for handler : FunctionThe method the event invokes scope : Object(optional) The scope in which to execute the handler
-function. The handler function's "this" context. options : Object(optional)
- Returns:
-
-
-
-
- |
- Observable |
-
-
- |
-
-
- purgeListeners() : void
- Removes all listeners for this object
-
- Removes all listeners for this object
- Parameters:
-
- Returns:
-
-
-
-
- |
- Observable |
-
-
- |
-
-
- query( String field , String/RegExp value , [Boolean anyMatch ], [Boolean caseSensitive ] ) : MixedCollection
- Query the records by a specified property.
-
- Query the records by a specified property.
- Parameters:
- field : StringA field on your records value : String/RegExpEither a string that the field
-should begin with, or a RegExp to test against the field. anyMatch : Boolean(optional) True to match any part not just the beginning caseSensitive : Boolean(optional) True for case sensitive comparison
- Returns:
-
-
-
-
- |
- Store |
-
-
- |
-
-
- queryBy( Function fn , [Object scope ] ) : MixedCollection
- Query the cached records in this Store using a filtering function. The specified function
-will be called with each re...
-
- Query the cached records in this Store using a filtering function. The specified function
+used by the Reader contains the dataset size, then the getTotalCount function returns
+the dataset size. Note: see the Important note in load. | Store | | getModifiedRecords()
+ :
+ Ext.data.Record[]Gets all records modified since the last commit. Modified records are
+persisted across load operations (e.g., during... | Store | | getRange( [Number startIndex ], [Number endIndex ] )
+ :
+ Ext.data.Record[]Returns a range of Records between specified indices. Returns a range of Records between specified indices. Parameters:Returns:Ext.data.Record[] An array of Records
| Store | | getSortState()
+ :
+ ObjectReturns an object describing the current sort state of this Store. Returns an object describing the current sort state of this Store. Parameters:Returns:Object The sort state of the Store. An object with two properties:<ul>
+<li><b>field : String<p class="sub-desc">The name of the field by which the Records are sorted.</p></li>
+<li><b>direction : String<p class="sub-desc">The sort order, 'ASC' or 'DESC' (case-sensitive).</p></li>
+</ul>
+See <tt>{@link #sortInfo}</tt> for additional details.
| Store | | getTotalCount()
+ :
+ NumberGets the total number of records in the dataset as returned by the server.
+If using paging, for this to be accurate, ... Gets the total number of records in the dataset as returned by the server.
+ If using paging, for this to be accurate, the data object used by the Reader
+must contain the dataset size. For remote data sources, the value for this property
+(totalProperty for JsonReader,
+totalRecords for XmlReader) shall be returned by a query on the server.
+Note: see the Important note in load. | Store | | groupBy( String field , [Boolean forceRegroup ] )
+ :
+ voidGroups the data by the specified field. Groups the data by the specified field. Parameters:field : StringThe field name by which to sort the store's data forceRegroup : Boolean(optional) True to force the group to be refreshed even if the field passed
+in is the same as the current grouping field, false to skip grouping on the same field (defaults to false) Returns: | GroupingStore | | hasListener( String eventName )
+ :
+ BooleanChecks to see if this object has any listeners for a specified event Checks to see if this object has any listeners for a specified event | Observable | | indexOf( Ext.data.Record record )
+ :
+ NumberGet the index within the cache of the passed Record. Get the index within the cache of the passed Record. | Store | | indexOfId( String id )
+ :
+ NumberGet the index within the cache of the Record with the passed id. Get the index within the cache of the Record with the passed id. | Store | | insert( Number index , Ext.data.Record[] records )
+ :
+ voidInserts Records into the Store at the given index and fires the add event.
+See also add and addSorted. Inserts Records into the Store at the given index and fires the add event.
+See also add and addSorted . | Store | | isFiltered()
+ :
+ BooleanReturns true if this store is currently filtered Returns true if this store is currently filtered | Store | | load( Object options )
+ :
+ BooleanLoads the Record cache from the configured proxy using the configured reader.
+Notes:<div class="mdetail-params">
+Impo... Loads the Record cache from the configured proxy using the configured reader.
+ Notes:
+- Important: loading is asynchronous! This call will return before the new data has been
+loaded. To perform any post-processing where information from the load call is required, specify
+the callback function to be called, or use a a 'load' event handler.
+- If using remote paging, the first load call must specify the start and limit
+properties in the
options.params property to establish the initial position within the
+dataset, and the number of Records to cache on each read from the Proxy.
+- If using remote sorting, the configured
sortInfo
+will be automatically included with the posted parameters according to the specified
+paramNames .
+ Parameters:options : ObjectAn object containing properties which control loading options:
+- params :Object
An object containing properties to pass as HTTP
+parameters to a remote data source. Note: params will override any
+baseParams of the same name.
+ Parameters are encoded as standard HTTP parameters using Ext.urlEncode.
+- callback : Function
A function to be called after the Records
+have been loaded. The callback is called after the load event and is passed the following arguments:
+- r : Ext.data.Record[]
+- options: Options object from the load call
+- success: Boolean success indicator
+- scope : Object
Scope with which to call the callback (defaults
+to the Store object)
+- add : Boolean
Indicator to append loaded records rather than
+replace the current cache. Note: see note for loadData
+ Returns: | Store | | loadData( Object data , [Boolean append ] )
+ :
+ voidLoads data from a passed data block and fires the load event. A Reader
+which understands the format of the data must ... Loads data from a passed data block and fires the load event. A Reader
+which understands the format of the data must have been configured in the constructor. Parameters:data : ObjectThe data block from which to read the Records. The format of the data expected
+is dependent on the type of Reader that is configured and should correspond to
+that Reader's Ext.data.Reader.readRecords parameter. append : Boolean(Optional) true to append the new Records rather the default to replace
+the existing cache.
+ Note: that Records in a Store are keyed by their id, so added Records
+with ids which are already present in the Store will replace existing Records. Only Records with
+new, unique ids will be added. Returns: | Store | | on( String eventName , Function handler , [Object scope ], [Object options ] )
+ :
+ voidAppends an event handler to this object (shorthand for addListener.) Appends an event handler to this object (shorthand for addListener.) Parameters:eventName : StringThe type of event to listen for handler : FunctionThe method the event invokes scope : Object(optional) The scope (this reference) in which the handler function is executed.
+If omitted, defaults to the object which fired the event. options : Object(optional) An object containing handler configuration. Returns: | Observable | | purgeListeners()
+ :
+ voidRemoves all listeners for this object Removes all listeners for this object | Observable | | query( String field , String/RegExp value , [Boolean anyMatch ], [Boolean caseSensitive ] )
+ :
+ MixedCollectionQuery the records by a specified property. Query the records by a specified property. Parameters:field : StringA field on your records value : String/RegExpEither a string that the field
+should begin with, or a RegExp to test against the field. anyMatch : Boolean(optional) True to match any part not just the beginning caseSensitive : Boolean(optional) True for case sensitive comparison Returns: | Store | | queryBy( Function fn , [Object scope ] )
+ :
+ MixedCollectionQuery the cached records in this Store using a filtering function. The specified function
+will be called with each re... Query the cached records in this Store using a filtering function. The specified function
will be called with each record in this Store. If the function returns true the record is
-included in the results.
- Parameters:
- fn : FunctionThe function to be called. It will be passed the following parameters:
-
- |
- Store |
-
-
- |
-
-
- rejectChanges() : void
- Cancel outstanding changes on all changed records.
-
- Cancel outstanding changes on all changed records.
- Parameters:
-
- Returns:
-
-
-
-
- |
- Store |
-
-
- |
-
-
- relayEvents( Object o , Array events ) : void
- Relays selected events from the specified Observable as if the events were fired by this.
-
- Relays selected events from the specified Observable as if the events were fired by this.
- Parameters:
-
- Returns:
-
-
-
-
- |
- Observable |
-
-
- |
-
-
- reload( [Object options ] ) : void
- Reloads the Record cache from the configured Proxy using the configured Reader and
-the options from the last load ope...
-
- Reloads the Record cache from the configured Proxy using the configured Reader and
+ scope : Object(optional) The scope of the function (defaults to this) Returns: | Store | | rejectChanges()
+ :
+ voidReject outstanding changes on all modified records. | Store | | relayEvents( Object o , Array events )
+ :
+ voidRelays selected events from the specified Observable as if the events were fired by this. Relays selected events from the specified Observable as if the events were fired by this. | Observable | | reload( [Object options ] )
+ :
+ voidReloads the Record cache from the configured Proxy using the configured Reader and
+the options from the last load ope... Reloads the Record cache from the configured Proxy using the configured Reader and
the options from the last load operation performed.
- It is important to note that for remote data sources, loading is asynchronous,
-and this call will return before the new data has been loaded. Perform any post-processing
-in a callback function, or in a "load" event handler.
- Parameters:
- options : Object(optional) An object containing loading options which may override the options
-used in the last load operation. See load for details (defaults to null, in which case
-the most recently used options are reused).
- Returns:
-
-
-
-
- |
- Store |
-
-
- |
-
-
- remove( Ext.data.Record record ) : void
- Remove a Record from the Store and fires the remove event.
-
- Remove a Record from the Store and fires the remove event.
- Parameters:
-
- Returns:
-
-
-
-
- |
- Store |
-
-
- |
-
-
- removeAll() : void
- Remove all Records from the Store and fires the clear event.
-
- Remove all Records from the Store and fires the clear event.
- Parameters:
-
- Returns:
-
-
-
-
- |
- Store |
-
-
- |
-
-
- removeAt( Number index ) : void
- Remove a Record from the Store at the specified index. Fires the remove event.
-
- Remove a Record from the Store at the specified index. Fires the remove event.
- Parameters:
-
- Returns:
-
-
-
-
- |
- Store |
-
-
- |
-
-
- removeListener( String eventName , Function handler , [Object scope ] ) : void
- Removes a listener
-
- Removes a listener
- Parameters:
-
- Returns:
-
-
-
-
- |
- Observable |
-
-
- |
-
-
- resumeEvents() : void
-
-
- Resume firing events. (see suspendEvents)
- Parameters:
-
- Returns:
-
-
-
-
- |
- Observable |
-
-
- |
-
-
- setDefaultSort( String fieldName , [String dir ] ) : void
- Sets the default sort column and order to be used by the next load operation.
-
- Sets the default sort column and order to be used by the next load operation.
- Parameters:
- fieldName : StringThe name of the field to sort by. dir : String(optional) The sort order, "ASC" or "DESC" (case-sensitive, defaults to "ASC")
- Returns:
-
-
-
-
- |
- Store |
-
-
- |
-
-
- sort( String fieldName , [String dir ] ) : void
- Sort the Records.
-If remote sorting is used, the sort is performed on the server, and the cache is
-reloaded. If local...
-
- Sort the Records.
-If remote sorting is used, the sort is performed on the server, and the cache is
-reloaded. If local sorting is used, the cache is sorted internally.
- Parameters:
- fieldName : StringThe name of the field to sort by. dir : String(optional) The sort order, "ASC" or "DESC" (case-sensitive, defaults to "ASC")
- Returns:
-
-
-
-
- |
- Store |
-
-
- |
-
-
- sum( String property , Number start , Number end ) : Number
- Sums the value of property for each record between start and end and returns the result.
-
- Sums the value of property for each record between start and end and returns the result.
- Parameters:
-
- Returns:
-
-
-
-
- |
- Store |
-
-
- |
-
-
- suspendEvents() : void
-
-
- Suspend the firing of all events. (see resumeEvents)
- Parameters:
-
- Returns:
-
-
-
-
- |
- Observable |
-
-
- |
-
-
- un( String eventName , Function handler , [Object scope ] ) : void
- Removes a listener (shorthand for removeListener)
-
- Removes a listener (shorthand for removeListener)
- Parameters:
-
- Returns:
-
-
-
-
- |
- Observable |
-
-
-
- Public Events
-
-
-
-
-
-
- |
-
-
- add : ( Store this , Ext.data.Record[] records , Number index )
- Fires when Records have been added to the Store
-
- Fires when Records have been added to the Store
- Listeners will be called with the following arguments:
-
-
-
-
- |
- Store |
-
-
- |
-
-
- beforeload : ( Store this , Object options )
- Fires before a request is made for a new data object. If the beforeload handler returns false
-the load action will b...
-
- Fires before a request is made for a new data object. If the beforeload handler returns false
-the load action will be canceled.
- Listeners will be called with the following arguments:
- this : Storeoptions : ObjectThe loading options that were specified (see load for details)
-
-
-
- |
- Store |
-
-
- |
-
-
- clear : ( Store this )
- 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 ...
-
- Fires when the data cache has changed in a bulk manner (e.g., it has been sorted, filtered, etc.) and a
-widget that is using this Store as a Record cache should refresh its view.
- Listeners will be called with the following arguments:
-
-
-
-
- |
- Store |
-
-
- |
-
-
- load : ( Store this , Ext.data.Record[] records , Object options )
- Fires after a new set of Records has been loaded.
-
- Fires after a new set of Records has been loaded.
- Listeners will be called with the following arguments:
-
-
-
-
- |
- Store |
-
-
- |
-
-
- loadexception : ()
- Fires if an exception occurs in the Proxy during loading.
-Called with the signature of the Proxy's "loadexception" ev...
-
- Fires if an exception occurs in the Proxy during loading.
-Called with the signature of the Proxy's "loadexception" event.
- Listeners will be called with the following arguments:
-
-
-
-
- |
- Store |
-
-
- |
-
-
- metachange : ( Store this , Object meta )
- Fires when this store's reader provides new metadata (fields). This is currently only supported for JsonReaders.
-
- Fires when this store's reader provides new metadata (fields). This is currently only supported for JsonReaders.
- Listeners will be called with the following arguments:
- this : Storemeta : ObjectThe JSON metadata
-
-
-
- |
- Store |
-
-
- |
-
-
- remove : ( Store this , Ext.data.Record record , Number index )
- Fires when a Record has been removed from the Store
-
- Fires when a Record has been removed from the Store
- Listeners will be called with the following arguments:
-
-
-
-
- |
- Store |
-
-
- |
-
-
- update : ( Store this , Ext.data.Record record , String operation )
- Fires when a Record has been updated
-
- Fires when a Record has been updated
- Listeners will be called with the following arguments:
- | Store | | remove( Ext.data.Record record )
+ :
+ voidRemove a Record from the Store and fires the remove event. Remove a Record from the Store and fires the remove event. | Store | | removeAll()
+ :
+ voidRemove all Records from the Store and fires the clear event. Remove all Records from the Store and fires the clear event. | Store | | removeAt( Number index )
+ :
+ voidRemove a Record from the Store at the specified index. Fires the remove event. Remove a Record from the Store at the specified index. Fires the remove event. | Store | | removeListener( String eventName , Function handler , [Object scope ] )
+ :
+ voidRemoves an event handler. Removes an event handler. | Observable | | resumeEvents()
+ :
+ voidResume firing events. (see suspendEvents)
+If events were suspended using the queueSuspended parameter, then all
+event... Resume firing events. (see suspendEvents)
+If events were suspended using the queueSuspended parameter, then all
+events fired during event suspension will be sent to any listeners now. | Observable | | save()
+ :
+ voidSaves all pending changes to the store. If the commensurate Ext.data.Api.actions action is not configured, then
+the ... Saves all pending changes to the store. If the commensurate Ext.data.Api.actions action is not configured, then
+the configured url will be used.
+
+change url
+--------------- --------------------
+removed records Ext.data.Api.actions.destroy
+phantom records Ext.data.Api.actions.create
+modified records Ext.data.Api.actions.update
+ | Store | | setBaseParam( String name , Mixed value )
+ :
+ voidSet the value for a property name in this store's baseParams. Usage:myStore.setBaseParam('foo', {bar:3}); Set the value for a property name in this store's baseParams. Usage: myStore.setBaseParam('foo', {bar:3});
| Store | | setDefaultSort( String fieldName , [String dir ] )
+ :
+ voidSets the default sort column and order to be used by the next load operation. Sets the default sort column and order to be used by the next load operation. Parameters:fieldName : StringThe name of the field to sort by. dir : String(optional) The sort order, 'ASC' or 'DESC' (case-sensitive, defaults to 'ASC') Returns: | Store | | sort( String fieldName , [String dir ] )
+ :
+ voidSort the Records.
+If remote sorting is used, the sort is performed on the server, and the cache is reloaded. If local... Sort the Records.
+If remote sorting is used, the sort is performed on the server, and the cache is reloaded. If local
+sorting is used, the cache is sorted internally. See also remoteSort and paramNames. Parameters:fieldName : StringThe name of the field to sort by. dir : String(optional) The sort order, 'ASC' or 'DESC' (case-sensitive, defaults to 'ASC') Returns: | Store | | sum( String property , [Number start ], [Number end ] )
+ :
+ NumberSums the value of property for each record between start
+and end and returns the result. Sums the value of property for each record between start
+and end and returns the result. | Store | | suspendEvents( Boolean queueSuspended )
+ :
+ voidSuspend the firing of all events. (see resumeEvents) Suspend the firing of all events. (see resumeEvents) Parameters:queueSuspended : BooleanPass as true to queue up suspended events to be fired
+after the resumeEvents call instead of discarding all suspended events; Returns: | Observable | | un( String eventName , Function handler , [Object scope ] )
+ :
+ voidRemoves an event handler (shorthand for removeListener.) | Observable | Public Events|
| add :
+ ( Store this , Ext.data.Record[] records , Number index )
+ Fires when Records have been added to the Store Fires when Records have been added to the Store Listeners will be called with the following arguments: | Store | | beforeload :
+ ( Store this , Object options )
+ Fires before a request is made for a new data object. If the beforeload handler returns
+false the load action will b... Fires before a request is made for a new data object. If the beforeload handler returns
+ false the load action will be canceled. Listeners will be called with the following arguments:this : Storeoptions : ObjectThe loading options that were specified (see load for details)
| Store | | beforewrite :
+ ( DataProxy this , String action , Record/Array[Record] rs , Object options , Object arg )
+ Listeners will be called with the following arguments: | Store | | clear :
+ ( Store this )
+ 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
+widget that is using this Store as a Record cache should refresh its view. Listeners will be called with the following arguments: | Store | | exception :
+ ( misc misc )
+ Fires if an exception occurs in the Proxy during a remote request.
+This event is relayed through the corresponding Ex... Fires if an exception occurs in the Proxy during a remote request.
+This event is relayed through the corresponding Ext.data.DataProxy.
+See Ext.data.DataProxy.exception
+for additional details. Listeners will be called with the following arguments: | Store | | load :
+ ( Store this , Ext.data.Record[] records , Object options )
+ Fires after a new set of Records has been loaded. Fires after a new set of Records has been loaded. Listeners will be called with the following arguments: | Store | | loadexception :
+ ( misc misc )
+ This event is deprecated in favor of the catch-all exception
+event instead.
+This event is relayed through the corresp... | Store | | metachange :
+ ( Store this , Object meta )
+ Fires when this store's reader provides new metadata (fields). This is currently only supported for JsonReaders. Fires when this store's reader provides new metadata (fields). This is currently only supported for JsonReaders. Listeners will be called with the following arguments:this : Storemeta : ObjectThe JSON metadata
| Store | | remove :
+ ( Store this , Ext.data.Record record , Number index )
+ Fires when a Record has been removed from the Store Fires when a Record has been removed from the Store Listeners will be called with the following arguments: | Store | | update :
+ ( Store this , Ext.data.Record record , String operation )
+ Fires when a Record has been updated Fires when a Record has been updated Listeners will be called with the following arguments:
-
-
-
- |
- Store |
-
-
-
-
\ No newline at end of file
+ Ext.data.Record.COMMIT | Store |