Hi,
We have a dinamically populated treeview with scroll function. For some scenarios we are un-selecting nodes programmatically using below code
var treeView = $(treeViewId).data("ejTreeView");
var selectedNode = treeView.getSelectedNode();
var id = selectedNode[0].id;
treeView.unselectNode($("#" + id));
This un-selects the node. Then we need to display the top of the treeview since there isn't any selected node. Tried using treeView.refresh() and $(treeViewId).ejTreeView("refresh");, they don't work.
How can we achieve this?
Best Regards,
Madawa