Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Ganesh1991 opened this issue Nov 15, 2016 · 3 comments

Comments

@Ganesh1991
Copy link

Ganesh1991 commented Nov 15, 2016

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

@vivganes
Copy link

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.

@maxazan
Copy link
Owner

maxazan commented Nov 17, 2016

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

@abdulrahman-khankan
Copy link

abdulrahman-khankan commented Nov 28, 2017

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants