How can I get all the child rows of the selected parent row?

Tags: #<Tag:0x00007efc6d147038>

How can I get all the child rows of the selected parent row ?

HandsonTable

When I change the row DD_0001 , I would like to get all its child rows (ED-0001,ED_0002,ED_0003) so as to make some changes to child after or before the parent has changed.

Hi @josephdalin

Can you attach a JSFiddle demo where we can reproduce the issue?
Please describe all the steps to do so.

Hi @piotr.nowak , Please go through the below js fiddle.

http://jsfiddle.net/mfdezp29/

Here when I change the row numbered 1(ABC) to (ABC Test) ,inside the afterChange hook I want to modify the child rows as well.Here rows numbered 2 and 3 (say ‘Test’).

But inside the afterChange hook I am getting only the current row only. I would like to get the child rows as well so that I can change the child rows inside afterChange().Is it possible ?

Please see the logged details inside afterChange hook.

It seems that your requirement is hard to achieve if possible at all.

On the one hand, we have a row and column from the change hook. On the other hand, nestedRows plugin holds a sourceData with __children arrays in which we have access to the structure. Unfortunately, without the cell coordinates.

Therefore, we don’t have all information necessary to connect available data.