Open Cardozo17 opened 6 years ago
Hey, having the same issue here. The parent/child tree is gone, and I cannnot expand/collapse anymore.
We resolved this not by destroying the instance but removing all the inherit classes added by treetable and then instantiating the table again.
I solved this with a query string and reloading the page :( Do you have sample code for achieving this?
You can force the tree to reinitialize by passing boolean value true as a paramter to the treetable function call.
$("#table_id").treetable({ indent:15 } ,true);
This is from the official docs :
The treetable() function accepts the following arguments:
options (optional) A Javascript object of configuration settings as described in the chapter on configuration. force (optional) Pass the boolean true to force reinitialization of the tree.
I am using treetable with vuejs and I sometimes need to fully reload the treetable structure when my object associated to it is updated. I am trying to accomplish this by destroying my treetable instance and then removing the intenders. Problem is that after I destroy my treetable and initiate it again my branches are all messed up. Any suggestions?. Thanks in advance.