Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
130
Trigger onGridCreated every time IgxRowIsland is expanded
posted

In the doc regarding Load on Demand for Hierarchical Grid, event onGridCreated is fired when a Row is expanded.

After expansion, the event is no longer triggered, since the grid is already created.

Is there a way to trigger the event every time a row is expanded, or be able to destroy the inner grid when the row collapses?

Doc: https://ko.infragistics.com/products/ignite-ui-angular/angular/components/hierarchicalgrid/load-on-demand

Thanks

Parents
  • 1560
    Offline posted

    Hello,

    I have been looking into your question and an approach I could suggest is to use the IgxHierarchicalGrid onRowToggle event. It would be emitted when the expanded state of a row gets changed. However, please keep in mind, that initially when the child grid is created, the event is fired before onGridCreated event.

    Also, the event should be defined for each row island.

    Here could be found my sample for your reference. Please test it on your side and let me know if I may be of any further assistance.

    Sincerely,

    Teodosia Hristodorova

    Associate Software Developer

Reply Children