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
845
Update cell value in parent row
posted

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

Parents
No Data
Reply
  • 71886
    Verified Answer
    Offline posted

    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.

Children