extjs 4 tree store RESTful
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开发者_JS百科 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..
Yes. This is handled by your chosen proxy. Simply set the Ext.data.TreeStore
's proxy to type: rest
.
Please see the following for reference:
http://docs.sencha.com/ext-js/4-0/#!/api/Ext.data.TreeStore-cfg-proxy
and
http://docs.sencha.com/ext-js/4-0/#!/api/Ext.data.proxy.Rest
精彩评论