View Full Version : Expected JSON API response for RESTful proxy on TreeStore?

4 Oct 2011, 1:02 PM
What is required in the JSON returned from a RESTful API to populate an Ext JS TreeStore correctly?

Whenever I call store.load() on the store attached to an Ext.tree.Panel after the initial load, the tree gets confused. Some nodes get marked as dirty, because Ext is changing the depth, index, and parentId fields that it's computing for them. (There is no depth, index, or parentId field my API response; are they required?)

I could be mis-configuring my TreeStore or its reader or proxy, but I suspect I'm not formatting my API response correctly.