Expanding Tree Nodes Using a REST Proxy
I have a basic tree bound to a store with a REST proxy. This loads the tree as expected. I am purposely only returning one level of children so as not to load the entire tree. In each child node I have a 'url' property that represents a REST url to load that node's children.
I want to be able to click on that node and use it's 'url' property to load its children. But whenever I click the node, it instantly calls the store proxy url. I tried setting the url in the itemclick event handler but that doesn't work. Instead I get this error:
Can anyone help me to understand how to use REST with a tree?
Uncaught TypeError: Cannot read property 'internalId' of undefined.