DevExtreme Angular - ArrayStore Properties
data
Type:
Array<any>
jQuery
JavaScript
var store = new DevExpress.data.ArrayStore({ data: [ { id: 1, name: "John Doe" }, // ... ] });
Angular
TypeScript
import ArrayStore from "devextreme/data/array_store"; // ... export class AppComponent { store: ArrayStore; constructor() { this.store = new ArrayStore({ data: [ { id: 1, name: "John Doe" }, // ... ] }) } }
errorHandler
Type:
This function accepts a JavaScript Error object as the parameter.
jQuery
JavaScript
var store = new DevExpress.data.ArrayStore({ // ... errorHandler: function (error) { console.log(error.message); } });
Angular
TypeScript
import ArrayStore from "devextreme/data/array_store"; // ... export class AppComponent { store: ArrayStore; constructor() { this.store = new ArrayStore({ // ... errorHandler: function (error) { console.log(error.message); } }) } }
key
In the following example, the ProductID
and ProductCode
properties are specified as key properties:
jQuery
JavaScript
var store = new DevExpress.data.ArrayStore({ // ... key: ["ProductID", "ProductCode"] });
Angular
TypeScript
import ArrayStore from "devextreme/data/array_store"; // ... export class AppComponent { store: ArrayStore; constructor() { this.store = new ArrayStore({ // ... key: ["ProductID", "ProductCode"] }) } }
onInserted
Type:
jQuery
JavaScript
var store = new DevExpress.data.ArrayStore({ onInserted: function (values, key) { // Your code goes here } });
Angular
TypeScript
import ArrayStore from "devextreme/data/array_store"; // ... export class AppComponent { store: ArrayStore; constructor() { this.store = new ArrayStore({ onInserted: function (values, key) { // Your code goes here } }) } }
onInserting
jQuery
JavaScript
var store = new DevExpress.data.ArrayStore({ onInserting: function (values) { // Your code goes here } });
Angular
TypeScript
import ArrayStore from "devextreme/data/array_store"; // ... export class AppComponent { store: ArrayStore; constructor() { this.store = new ArrayStore({ onInserting: function (values) { // Your code goes here } }) } }
onLoaded
jQuery
JavaScript
var store = new DevExpress.data.ArrayStore({ onLoaded: function (result) { // Your code goes here } });
Angular
TypeScript
import ArrayStore from "devextreme/data/array_store"; // ... export class AppComponent { store: ArrayStore; constructor() { this.store = new ArrayStore({ onLoaded: function (result) { // Your code goes here } }) } }
onLoading
Type:
Function parameters:
loadOptions:
jQuery
JavaScript
var store = new DevExpress.data.ArrayStore({ onLoading: function (loadOptions) { // Your code goes here } });
Angular
TypeScript
import ArrayStore from "devextreme/data/array_store"; // ... export class AppComponent { store: ArrayStore; constructor() { this.store = new ArrayStore({ onLoading: function (loadOptions) { // Your code goes here } }) } }
onModified
Type:
jQuery
JavaScript
var store = new DevExpress.data.ArrayStore({ onModified: function () { // Your code goes here } });
Angular
TypeScript
import ArrayStore from "devextreme/data/array_store"; // ... export class AppComponent { store: ArrayStore; constructor() { this.store = new ArrayStore({ onModified: function () { // Your code goes here } }) } }
onModifying
Type:
jQuery
JavaScript
var store = new DevExpress.data.ArrayStore({ onModifying: function () { // Your code goes here } });
Angular
TypeScript
import ArrayStore from "devextreme/data/array_store"; // ... export class AppComponent { store: ArrayStore; constructor() { this.store = new ArrayStore({ onModifying: function () { // Your code goes here } }) } }
onRemoved
jQuery
JavaScript
var store = new DevExpress.data.ArrayStore({ onRemoved: function (key) { // Your code goes here } });
Angular
TypeScript
import ArrayStore from "devextreme/data/array_store"; // ... export class AppComponent { store: ArrayStore; constructor() { this.store = new ArrayStore({ onRemoved: function (key) { // Your code goes here } }) } }
onRemoving
Type:
jQuery
JavaScript
var store = new DevExpress.data.ArrayStore({ onRemoving: function (key) { // Your code goes here } });
Angular
TypeScript
import ArrayStore from "devextreme/data/array_store"; // ... export class AppComponent { store: ArrayStore; constructor() { this.store = new ArrayStore({ onRemoving: function (key) { // Your code goes here } }) } }
onUpdated
Type:
jQuery
JavaScript
var store = new DevExpress.data.ArrayStore({ onUpdated: function (key, values) { // Your code goes here } });
Angular
TypeScript
import ArrayStore from "devextreme/data/array_store"; // ... export class AppComponent { store: ArrayStore; constructor() { this.store = new ArrayStore({ onUpdated: function (key, values) { // Your code goes here } }) } }
onUpdating
Type:
jQuery
JavaScript
var store = new DevExpress.data.ArrayStore({ onUpdating: function (key, values) { // Your code goes here } });
Angular
TypeScript
import ArrayStore from "devextreme/data/array_store"; // ... export class AppComponent { store: ArrayStore; constructor() { this.store = new ArrayStore({ onUpdating: function (key, values) { // Your code goes here } }) } }
Feel free to share topic-related thoughts here.
If you have technical questions, please create a support ticket in the DevExpress Support Center.
Thank you for the feedback!
If you have technical questions, please create a support ticket in the DevExpress Support Center.