Hybrid View
-
30 Mar 2012 11:13 AM #1
Strange issue with treeview loading data
Strange issue with treeview loading data
My test project will properly load its data store and treeview inside Designer 2 Version 311 but the treeview does not load when deployed. I have auto load turned on and I have verfied the JSON file exists in the specified location. Any ideas?
Thank you in advance,
Kevin
-
30 Mar 2012 5:44 PM #2
Does the store populate?
Do you see a request being made in the development console?
If you look at the tree does it have 0 height or width?
This is probably a simple mistake, if you are able to archive up your project via File -> Archive Project and upload that here we'd gladly have a look at it for you.Aaron Conran
@aconran
Sencha Architect Development Team
-
31 Mar 2012 12:18 AM #3
root value is incorrect.
See more hereCode:reader: { type: 'json', root: 'root' <<< since you are using children which is default remove this config }
http://docs.sencha.com/ext-js/4-0/#!...data.TreeStoreBharat Nagwani
Sencha Designer Development Team
-
2 Apr 2012 4:18 AM #4
The reader will not allow me to remove the root. When I try the designer throws an error saying "The config value for root is mandatory." I am using the Designer 2 311 build.
The store does populate with data. I can click on the eye and see the data. The Tree panel in the designer shows the root level data. When you deploy I see nothing. The request appears to be being made. The tree is 300x300 pixels.
I have attached the project archive. Just remove the .txt.
Cordially
Kevin
-
2 Apr 2012 6:54 AM #5
I finally got the tree to load. I could not set the root property of the JsonReader to (none). The designer kept giving me an error that says it was mandatory. I deleted the JsonReader and added back an NEW JSON reader. The default for a new JsonReader root property is (none) so the tree will now load.
It seems like this is a bug in the designer. If (none) (aka null) is a correct value, the designer should allow you to set it to (none) without throwing an error. What do you think?
Kevin
-
2 Apr 2012 8:13 AM #6


Reply With Quote