Gelmiş geçmiş en büyük porno sitemiz olan 2pe de her zaman en kaliteli pornoları sunmayı hedefledik. Diğer video sitemiz olan vuam da ise hd porno ağırlıklı çalışmalara başladık.

Hybrid View

  1. #1
    Sencha Premium Member
    Join Date
    Nov 2008
    Posts
    27
    Vote Rating
    0
    mastachef is on a distinguished road

      0  

    Default TreePanel - Redraw a Node's location on an update of the tree

    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.

  2. #2
    Sencha Premium Member
    Join Date
    Nov 2008
    Posts
    27
    Vote Rating
    0
    mastachef is on a distinguished road

      0  

    Default the node's path

    the node's path


    Thank you. This seems to work...

    Code:
    if(node)
    {
       var selected = function();  // I have a function that searched for the node the user selected and returns it
       if(!Ext.isEmpty(selected))
       {
           theTree.selectPath(selected.getPath());
        }
    }