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
520
Get rowKey of parent row when row in child grid selected?
posted

This seems like a simple problem but has me stumped in a see of jquery closet / prev and selectors.

I am using the igHierachicalGrid in an angular2 / typescript application.

How can I get the rowKey of the parent row when a row in it's child grid is selected?

  • 15320
    Offline posted

    Hello alancarter,

    You may handle rowSelectionChanged event of the grid and get the parent row key using the following code:

    rowSelectionChanged: function(evt, ui) {

    var parentKey = ui.owner.grid.options.foreignKeyValue;

    }

    Please let me know if you need further assistance.

    Regards,
    Tsanna