Threaded View

  1. #1
    Sencha User
    Join Date
    May 2010
    Location
    Las Vegas, NV
    Posts
    134
    Answers
    7
    Vote Rating
    2
    billtricarico is on a distinguished road

      0  

    Default Answered: Expanding Tree Nodes Using a REST Proxy

    Answered: Expanding Tree Nodes Using a REST Proxy


    Hello,

    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:
    Code:
    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.

Thread Participants: 1