Hello,
I have an igHierarchicalGrid with two levels. Updating is enabled on the second level, and in the "iggridupdatingeditcellended" javascript event i would like to update a cell in the parent row.
How can i get a reference to the parent row? Is it possible to update this row?
Thanks
Deon
Hello Deon,
There is no direct method to achieve this, no built-in functionality, so what you could do is to use the following code and try with it:
editCellEnded: function(e, ui){ var parentTR = ui.owner.grid.element.closest("tr").prev(); var parentRowId = $(parentTR).attr('data-id'); var parentRow = $('#grid').igGrid('findRecordByKey', parentRowId); }
Please feel free to let me know if a question about our tool set comes up on your mind.
Hi Boris,
Thanks very much, that worked well! Much appreciated.
Regards