How I can modify that example http://www.extjs.com/deploy/dev/examples/tree/reorder.html
for RESTful support?
When we click on some node, it sends POST as “node=src/dd”, but it doesn’t work for RESTful.
It should be for example as “node/src_dd”, and GET will be nice.
I found that ExtJS support RESTful for Store.
http://www.extjs.com/deploy/ext-3.0-rc2/examples/restful/restful.html
Thanks,
You’ll have to create your own custom
TreeLoaderclass to construct the node names RESTfully in the url instead of passing ‘node’ as a param. As you can see from this example code, specifying your ownTreeLoaderallows you to easily specify the HTTP request method.Dig into the
TreeLoaderclass and extend it to provide your own url scheme.EDIT: after looking at the
TreeLoadersource, it looks like you should overriderequestDatato properly set theurlbased on thenode, and you’ll probably want to changegetParamsto either return nothing or any special query string params you have. Should not be too much work. When you’re done, share back yourRESTfulTreeLoaderwith the community!