Data Layer ArrayStore

A Store accessing an in-memory array.

Type: Object

To associate the required array with the ArrayStore, pass this array ArrayStore constructor.

JavaScript
var store = new DevExpress.data.ArrayStore(array);

If you need to specify other configuration option of the ArrayStore in addition to the data array, pass the required array to the data configuration option.

JavaScript
var store = new DevExpress.data.ArrayStore({
    data: array,
    key: "id",
    modified: function() {
        // 'modified' event handler
    },
    errorHandler: function(error) {
        // Error handler
    }
});

Note, that the key option is required if you are going to use the Store for read-write access to data.

For more information on working with in-memory data, refer to the Data Source Examples article.

Configuration

This section describes configuration options used to configure the ArrayStore.

Methods

This section describes the methods used to access the data associated with the ArrayStore.

Events

This section describes events fired by this Store.

Subscribing to any event described in this section is equivalent to passing the event handling function to the corresponding configuration option. The only difference is that the function passed to the configuration option is the first within the stack of event handlers.