1. #1
    Touch Premium Member
    Join Date
    Sep 2010
    Location
    UK
    Posts
    53
    Vote Rating
    1
    Joe Kuan is on a distinguished road

      0  

    Default Help: Simple question on reloading a tree

    Help: Simple question on reloading a tree


    Hi all,

    I have a TreeGrid with a TreeLoader object and would like to reload the data from the web server. How do I do that?

    Something like this? treeloader.load(treepanel.getRootNode(), { }, this);

    Thanks
    Joe

  2. #2
    Sencha - Community Support Team Condor's Avatar
    Join Date
    Mar 2007
    Location
    The Netherlands
    Posts
    24,251
    Vote Rating
    73
    Condor is a splendid one to behold Condor is a splendid one to behold Condor is a splendid one to behold Condor is a splendid one to behold Condor is a splendid one to behold Condor is a splendid one to behold Condor is a splendid one to behold Condor is a splendid one to behold

      0  

    Default


    I would use:
    Code:
    treepanel.getRootNode().reload();

  3. #3
    Sencha Premium Member
    Join Date
    Mar 2008
    Location
    San Jose, CA
    Posts
    124
    Vote Rating
    0
    surfyogi is on a distinguished road

      0  

    Default Which API version for AsyncTreeNode reload()?

    Which API version for AsyncTreeNode reload()?


    As of which API version?
    Doesn't seem to work for me in v3.2.1..

    thx

  4. #4
    Sencha Premium Member
    Join Date
    Mar 2008
    Location
    San Jose, CA
    Posts
    124
    Vote Rating
    0
    surfyogi is on a distinguished road

      0  

    Default


    Please correct my disconnect if I'm inccorect:

    but the node returned by getRootNode doesn't appear to have a reload() method, leading me to believe it is an object type TreeNode, NOT AsyncTreeNode, and thus does not have a reload() method?

    So in this case, I'd just like a simple pattern that will force the tree to reload from the root node.. as everything I try seems to fail, as the original poster described also.

    thanks,
    Jeff-

  5. #5
    Sencha - Community Support Team Condor's Avatar
    Join Date
    Mar 2007
    Location
    The Netherlands
    Posts
    24,251
    Vote Rating
    73
    Condor is a splendid one to behold Condor is a splendid one to behold Condor is a splendid one to behold Condor is a splendid one to behold Condor is a splendid one to behold Condor is a splendid one to behold Condor is a splendid one to behold Condor is a splendid one to behold

      0  

    Default


    You specified the root node yourself, so you should know if it is a TreeNode or an AsyncTreeNode.

Similar Threads

  1. So simple, but i simple dont get it. How to refresh tree?
    By Kadifo in forum Ext 3.x: Help & Discussion
    Replies: 2
    Last Post: 22 Jul 2010, 11:18 PM
  2. simple question about reloading
    By vee.ant in forum Ext 2.x: Help & Discussion
    Replies: 10
    Last Post: 9 Jul 2009, 4:11 AM
  3. *newbie* a simple tree question
    By noso in forum Ext 2.x: Help & Discussion
    Replies: 11
    Last Post: 3 Oct 2008, 6:47 AM
  4. A Simple question about tree
    By WutongDeath in forum Ext 2.x: Help & Discussion
    Replies: 9
    Last Post: 16 Jul 2008, 1:55 AM

Thread Participants: 2

film izle

hd film izle

film sitesi

takipci kazanma sitesi

takipci kazanma sitesi

güzel olan herşey

takipci alma sitesi

komik eğlenceli videolar