Results 1 to 3 of 3

Thread: Expanding Tree Nodes Using a REST Proxy

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Sencha User
    Join Date
    May 2010
    Las Vegas, NV
    Vote Rating

    Default Answered: 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:
    Uncaught TypeError: Cannot read property 'internalId' of undefined.
    Can anyone help me to understand how to use REST with a tree?

  2. I think the best thing to do is stay away from REST until it works as expected.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts