Sencha Premium Member
TreePanel - Redraw a Node's location on an update of the tree
Good day. I am having an issue with redrawing a tree where a selected node has been moved to a new location.
I currently use a JsonStore to make my treepanel. I chose this versus a TreeLoader because on an update of the tree, the TreeLoader produces a 'flicker'. I also have a TaskManager that fires off a request every 30 seconds.
The scenario is that we have two users using the application. One user clicks on an node that is a child/leaf in the tree for its details. The other user, makes modifications to the same node and causes it to move to another location within the tree. In the first user's view, when the task manager fires a request at the set interval, when the tree reloads, the tree cannot update and render the new location of the selected node. I have a function that assists in finding the selected node but I am unable to redraw the tree and highlight the nodes new location.
So, in short, my question is how can one go about redrawing the tree and displaying the selected node's new location?
Thank you in advance.
Tags for this Thread