Thread ID: |
Created: |
Updated: |
Platform: |
Replies: |
146356 | Aug 1,2019 08:15 AM UTC | Aug 5,2019 09:05 AM UTC | React - EJ 2 | 3 |
![]() |
Tags: Grid |
public dataStateChange(state : DataStateChangeEventArgs) {
this.orderService.execute(state).then(( gridData ) => {
if(this.grid) {
this.grid.dataSource = gridData
}
});
}
This is the error:
Types of property 'dataStateChange' are incompatible.
Type '(state: DataStateChangeEventArgs) => void' is not assignable to type 'EmitType<DataStateChangeEventArgs>'.
Type '(state: DataStateChangeEventArgs) => void' is not assignable to type '(arg?: DataStateChangeEventArgs | undefined, ...rest: any[]) => void'.
Types of parameters 'state' and 'arg' are incompatible.
Type 'DataStateChangeEventArgs | undefined' is not assignable to type 'DataStateChangeEventArgs'.
Type 'undefined' is not assignable to type 'DataStateChangeEventArgs'.
This post will be permanently deleted. Are you sure you want to continue?
Sorry, An error occured while processing your request. Please try again later.
This page will automatically be redirected to the sign-in page in 10 seconds.