Hi,
You're using Angular 11 in the StackBlitz demo
Think this may be related to either Angular 12 or Typescript 4.2.
I'm having a similar issue with a treeview event:
<div><ejs-treeview id='treeelement' [fields]='fields' (nodeSelected)='treeNodeSelected($event)'></ejs-treeview></div>
throws same error on (nodeSelected)
Could you verify using Angular 12 and Typescript 4.2?
Hi,
I was having the same issue with the Grid component. When I added a call to the databound in the HTML then I got the error:
error TS2722: Cannot invoke an object which is possibly 'undefined'.
The way to fix it was to disable TypeScript template strict mode in the tsconfig.json (set 'strictTemplates' to false)
My question is if there is a way to use the Syncfusion components with TypeScript strict mode enable?
The strict mode is a great feature and I hate to be adding workarounds like using the '!' non-null assertion operator like here:
What is the workaround?