Hello,
I have a problem with treePanel visualization.
When I create treepanel for the first time ans initialize it with json data. it looks like this:
29833
That is not good.
But after I reload it (close the Ext.Window and reopen it) once more Tree shows OK
29834
Why it does not show right on a first load.
P.S. JSON - data is same in the first and the second "load"
P.P.S Using ExtJS 4.0

mitchellsimoens

6 Dec 2011, 1:58 PM

Do you return the checked config for the nodes? If the checked config isn't there, it shouldn't display the check.

1099511627776

6 Dec 2011, 11:02 PM

Do you return the checked config for the nodes? If the checked config isn't there, it shouldn't display the check.
No I do not use any "checkbox" commands in my config and in JSON data.
My tree creation code is:

But i'm sure that I've specified url in a proxy.
Besides that, when i reload it 4 times (everty time i reload, the treepanel keep deleting root children one by one) it reloads all tree children normally

1099511627776

8 Dec 2011, 11:12 AM

After hours of debugging I've found a workaround and i hope that developers can explain that.
The problem is:
The first child element is filled with all properties:

allowDrag
true

allowDrop
true

checked
null

cls
""

depth
1

expandable
true

expanded
true

href
null

hrefTarget
null

icon
null

iconCls
null

id
10001

index
0

isFirst
true

isLast
false

leaf
false

loaded
true

loading
false

parentId
"0"

qtip
null

qtitle
null

root
false

text
"Легковые автомобили"

But all other child elements have no have no properties:
"expandable","expanded" and property "checkbox" is defined with "undefined".
A workaround is to modify there properties in append event:
Listener in TreeStore: