Hi Charlotte,
Greetings from Syncfusion support.
Query 1: In control value accesssor WriteValue method, the property type is a string instead of and object (here and AccountingAccountDto, -> load with dataSource)
Solution:
Specify the change event args type as ChangeEventArgs. Refer to the code below,
onValueChanged(event:ChangeEventArgs){
}
|
Query 2: Error: ExpressionChangedAfterItHasBeenCheckedError: Expression has changed after it was checked. Previous value for 'ng-pristine': 'true'. Current value: 'false'.
Solution:
The cause of the issue is due to manipulating the dom directly. Angular will not detect these changes and react properly always. To get rid of the issue, we suggest detecting the changes explicitly as mentioned below code example.
constructor(private cd: ChangeDetectorRef) {
}
ngAfterViewChecked()
{
this.cd.detectChanges();
} |
Also, please refer the below blogs to now more about this angular issue.
Query 3: errors TypeError: Cannot read property 'number' of undefined -> due to valueTemplate <ng-template #accountValueTemplate let-data>
Solution:
We suspect that you have bind the value that not in the datasource. Please ensure once whether you have read the value that available in the datasource.
Please find the sample from the below link.
Regards,
Sevvandhi N