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
1415
Trigger onGridCreated every time IgxRowIsland is expanded load on demand hierarchical grid
posted

Hi team,

I am using Ignite v9.1.28 Hierarchical grid load on demand.

Requirement: I want to trigger OnGridCreated($event) method everytime user expands the parent row. As per current functionality it is storing the cache due to which there is some issue with inconsistency of data.

Please help.


Parents
  • 2680
    Offline posted

    Hi Shobhana,

    I believe as mentioned in several previous discussions such as these related threads – first, second, etc., you are familiar with version 9.1.x being long expired and not eligible for developer support.

    To address your question, regardless of the version and according to the IgxRowIslandComponent API the gridCreated event is emmited when a grid is being created based on this row island. It is not particularly related to expanding/collapsing a parent record, except seemingly the first time when expanding triggers the child grid creation. As an event on an existing component, its purpose is not to be raised by the developer, and is merely the described by the API means of notifying a child grid being created. Note, this is not related to the data for any child grid being refreshed either.

    An event that might suit your scenario would be the rowToggle (onRowToggle for version 9.1.28). It is emitted when the expanded state of a row gets changed. The event has to be handled for each row island in addition to the parent grid.

    Best regards,
    Bozhidara Pachilova
    Associate Software Developer

Reply Children