PDA

View Full Version : Tree store load problem



vladimar
4 Mar 2012, 11:39 AM
Hello!

I have a next question:
how I can load a json tree store in ExtDesigner.
Actually, when I load it I have near it name in "Data Stores" this text "records loaded", when it's normally should be "<number of records> recordes loaded".
The .json file content is:


[{
id: "1",
content: 'A leaf Node',
leaf: true
},{
id: "2",
content: 'A folder Node',
children: [{
id: "3",
content: 'A child Node',
leaf: true
}]
}]

aconran
5 Mar 2012, 5:52 AM
Did you configure your proxy/reader properly? Did you bind the tree store to a TreePanel?

vladimar
5 Mar 2012, 8:08 AM
Thanks for your attention.
The solution has already founded.
So, I should create a sturcture for my store, i.e. add fields to data store, and only after that it loads a data correct, but unlike array store I see "records loaded" without number of this records. Seems to be bug.