Title: Question about remove tree node Post by: nyr_jack on January 05, 2013, 01:05:33 AM when remove a root of tree , but there's a bug "0.target is null or". How can I remove the root of tree correctly, please help.
Title: Re: Question about remove tree node Post by: stworthy on January 05, 2013, 02:36:36 AM How do you remove the root node? Please try the code below.
Code: var roots = $('#tt').tree('getRoots'); Title: Re: Question about remove tree node Post by: nyr_jack on January 05, 2013, 06:27:50 PM I tried, but the bug wasn't solved. I think, maybe when I removed all roots of tree, then the tree is empty , so occur the bug '0.target is null or...' , is it right? If I'm right, how can I do ? I'v paste my codes to General Discussion, you can write a 'remove' function to try.
http://www.jeasyui.com/forum/index.php?topic=1047.0 |