DevExtreme React - ArrayStore Props
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
Specifies the key property (or properties) that provide(s) key values to access data items. Each key value must be unique.
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.