-
11 Oct 2010 2:56 AM #1
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
-
11 Oct 2010 3:01 AM #2Sencha - Community Support Team
- Join Date
- Mar 2007
- Location
- The Netherlands
- Posts
- 24,251
- Vote Rating
- 44
I would use:
Code:treepanel.getRootNode().reload();
-
1 Nov 2010 10:49 AM #3
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
-
1 Nov 2010 11:08 AM #4
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-
-
1 Nov 2010 11:32 AM #5Sencha - Community Support Team
- Join Date
- Mar 2007
- Location
- The Netherlands
- Posts
- 24,251
- Vote Rating
- 44
You specified the root node yourself, so you should know if it is a TreeNode or an AsyncTreeNode.
Similar Threads
-
So simple, but i simple dont get it. How to refresh tree?
By Kadifo in forum Ext 3.x: Help & DiscussionReplies: 2Last Post: 22 Jul 2010, 11:18 PM -
simple question about reloading
By vee.ant in forum Ext 2.x: Help & DiscussionReplies: 10Last Post: 9 Jul 2009, 4:11 AM -
*newbie* a simple tree question
By noso in forum Ext 2.x: Help & DiscussionReplies: 11Last Post: 3 Oct 2008, 6:47 AM -
A Simple question about tree
By WutongDeath in forum Ext 2.x: Help & DiscussionReplies: 9Last Post: 16 Jul 2008, 1:55 AM


Reply With Quote