View Full Version : How do I create tree nodes based on my current json format

23 Nov 2010, 3:53 PM
I have been developing my web application using a backend first approach to this. Now that I am wanting to switch one part of the system to use RIA, I want to take my current call to my webservice, take the Json and format it into a tree. Unfortunately, everything I am reading seems I have to have a TreeLoader and modify my server code to return json specifically formatted for the TreeLoader.

I had an idea to use an Ext.Ajax.Request call, but looking at the API docs I do not see any Add methods for TreeNode objects.

What is the best way to create a tree with my current custom json?

23 Nov 2010, 4:41 PM
But the API docs show an appendChild() method for TreeNode. Isn't that what you want?

23 Nov 2010, 4:45 PM
I somehow missed that, thanks!