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?
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