View Full Version : Tree store proxy url appends 'root' while using REST Proxy

23 Jul 2014, 9:15 AM

I have a tree grid, with columns defined.
I am not specifying any root node.
In tree store, its rest proxy and url is define as 'rest/myrul'.

But whenever I load the tree store, it appends 'root' in the url as 'rest/myurl/root'.

I read from docs it appends root node id to the url.

How can I get rid of this?
Kindly help.

29 Jul 2014, 8:16 PM

Try setting appendId to false in the REST proxy config:

11 Aug 2014, 1:23 AM

Thanks for the reply.
I need 'appendId' property to be true for rest of records, as the child records are loaded from that.

I found that 'defaultRootId' property to '', seemed to worked. it dint append 'root' to the url

8 Jun 2016, 6:05 AM
Same problem here. We can't set appendId to false as we have to send the ID for the update and the deletion operations. But we would like to remove the ID in the url for the GET operation.

How could we do that properly please?

Edit: BTW, the workaround consisting in setting defaultRootId to '' doesn't work in ExtJS 5.1 : a generic root id is defined (based on the class name of the model this time).