runfaj
5 Apr 2012, 4:31 PM
Hi,
I've got a tree panel that has a structure like so:
root (hidden)
building
zone
zone 1
zone 2
zone #...
sweeper
area 1
area 2
area #...
building
same stuff
building
same stuff
Each time an expand button is pressed, it loads dynamically. The first level (building) expands fine providing the zone and sweeper. But when I try to expand the second level (zone or sweeper), I get the following error:
"record.isNode is undefined"
decorate: function(record) {
if (!record.isNode) { -- line 78205 ext-all-dev.js
Here's the json that is returned to the treestore for the third level:
{"success":true,"total":2,"payload":[{"id":"zone_1","item_id":1,"text":"zone 1","leaf":true,"expandable":false},{"id":"zone_1","item_id":2,"text":"zone 2","leaf":true,"expandable":false}]}
And here is the previous json that did load correctly under the first level:
{"success":true,"total":2,"payload":[{"id":"area_type_1","item_id":1,"building_id":57,"text":"Zone","leaf":false,"expandable":true},{"id":"area_type_2","item_id":2,"building_id":57,"text":"Sweeper","leaf":false,"expandable":true}]}
The extended model is pretty standard, just fields and an ajax proxy. The extended store is also standard with just the model and root defined.
Can someone point me on what to attempt to fix this? I can provide other code as needed.
I've got a tree panel that has a structure like so:
root (hidden)
building
zone
zone 1
zone 2
zone #...
sweeper
area 1
area 2
area #...
building
same stuff
building
same stuff
Each time an expand button is pressed, it loads dynamically. The first level (building) expands fine providing the zone and sweeper. But when I try to expand the second level (zone or sweeper), I get the following error:
"record.isNode is undefined"
decorate: function(record) {
if (!record.isNode) { -- line 78205 ext-all-dev.js
Here's the json that is returned to the treestore for the third level:
{"success":true,"total":2,"payload":[{"id":"zone_1","item_id":1,"text":"zone 1","leaf":true,"expandable":false},{"id":"zone_1","item_id":2,"text":"zone 2","leaf":true,"expandable":false}]}
And here is the previous json that did load correctly under the first level:
{"success":true,"total":2,"payload":[{"id":"area_type_1","item_id":1,"building_id":57,"text":"Zone","leaf":false,"expandable":true},{"id":"area_type_2","item_id":2,"building_id":57,"text":"Sweeper","leaf":false,"expandable":true}]}
The extended model is pretty standard, just fields and an ajax proxy. The extended store is also standard with just the model and root defined.
Can someone point me on what to attempt to fix this? I can provide other code as needed.