jquery-treegrid icon indicating copy to clipboard operation
jquery-treegrid copied to clipboard

When specific parent node is removed please remove it's child elements too

Open Ganesh1991 opened this issue 9 years ago • 3 comments

when specific parent node is removed please remove it's child elements too

Ganesh1991 avatar Nov 15 '16 07:11 Ganesh1991

Hi @Ganesh1991

Can you please explain (preferably with a code snippet) how are you removing a parent node?

Are you removing using jQuery library? I do not see any publicly documented method to remove a node in the tree. Curious to see how you did it.

vivganes avatar Nov 16 '16 13:11 vivganes

There is no methods to delete node. I'll think about add some.

maxazan avatar Nov 17 '16 11:11 maxazan

This is an old issue but in case anyone is still searching for this.

You can use jQuery as the following, when deleting a node with class "treegrid-92" for example, select all elements with class "treegrid-parent-92" and delete them as well. Worked for me.

abdulrahman-khankan avatar Nov 28 '17 09:11 abdulrahman-khankan