DevExtreme Angular - ArrayStore Properties
errorHandler
Type:
This function accepts a JavaScript Error object as the parameter.
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:
TypeScript
- import ArrayStore from "devextreme/data/array_store";
- // ...
- export class AppComponent {
- store: ArrayStore;
- constructor() {
- this.store = new ArrayStore({
- // ...
- key: ["ProductID", "ProductCode"]
- })
- }
- }
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.