Using onGridCreated on a row island throws an error #6860
Labels
🐛 bug
Any issue that describes a bug
grid: hierarchical-grid
severity: low
✅ status: resolved
Applies to issues that have pending PRs resolving them, or PRs that have already merged.
Description
When the
onGridCreated
event is used for a given child row and whendetectChanges
is called on the event's grid, multiple errors are thrown (see attached image).The most common usecase of
onGridCreated
concerns the load on demand feature, which suggests using an http request (or a similar task). The execution of that request may require some time and is going to be resolved in a different event loop. When the user decides not to use any requests (and promises), the event's grid seems to be not yet registered and one has to create a new macrotask by themselves, as for instancesetTimeout
, which works as a proper workaround of the issue.The upmentioned behavior could be observed in the following sample:
https://stackblitz.com/edit/bug-igx-hierarchical-grid-shachm,
while the workaround with
setTimeout
is to be found here:https://stackblitz.com/edit/bug-igx-hierarchical-grid-d1rxf9
Attachments
The text was updated successfully, but these errors were encountered: