PDA

View Full Version : extjs 4 tree store RESTful



ShrutiRuparel
3 Oct 2011, 7:58 AM
i m working with Extjs 4 Tree with Rails 3 as backend & was wondering is there any REST support as for TreeStore as we have it for data store? I tried a lot of googling but could nt find any full fledged tutorial.. :(
I want to dynamically add nodes to tree & tree store should be synchronized so that next time tree loads newly created node also exists..

wcravens
11 Nov 2011, 2:06 PM
I agree.... in my RESTful implementation resource/0 returns a root node with children[] set to a list of id's for 'top level nodes'.

Further nodes may then in turn have children:[x,y,z] and I'd like the store/proxy to load resource/1, resource/2, resource/3 when relevant e.g. on parent.expand.