Hi,
We
apologize for the delay. We analyzed the reported behavior using an Angular 20
(zoneless) sample application. When testing the same scenario in an Angular
setup without zone.js, the issue did not occur. This indicates that the
behavior is related to Angular’s default change‑detection mechanism powered by
zone.js, which triggers template evaluations more frequently.
If
you want to prevent the template function from executing multiple times
specifically when the Grid’s dataSource is empty, we recommend using the
gridInstance.clearTemplate() method and passing 'template' as a string array.
This ensures that the template is cleared and not re‑invoked unnecessarily.
Sample:
https://stackblitz.com/edit/angular-cejucxbp-scz9skyn?file=src%2Fapp.component.html,src%2Fapp.component.ts
If
you prefer to avoid repeated console.log calls when hovering—regardless of
whether the Grid is empty or not with zone.js, you may instead need to adjust
the template to avoid calling functions directly within the template.
Regards,
Dineshnarasimman
M