View Full Version : How to load stored json data into Property Grid

27 Jul 2012, 3:54 AM
Does anyone know how to load json data into the Property Grid?
I'm using SA2.

I've read a code of Property Grid Example on this site.
I don't know how to load data from json file instead of "souce" written in the same code file as below.

http://docs.sencha.com/ext-js/4-0/#!/example/grid/property.html (http://docs.sencha.com/ext-js/4-0/#%21/example/grid/property.html)

source: {
"(name)": "Properties Grid",
"grouping": false,
"autoFitColumns": true,
"productionQuality": false,
"created": Ext.Date.parse('10/15/2006', 'm/d/Y'),
"tested": false,
"version": 0.01,
"borderWidth": 1

18 Aug 2012, 5:15 AM
I'm still facing this problem.
I hope someone help me.

25 Aug 2012, 11:17 AM
There is the property grid store. But I have no idea how to bind this store to a prop grid in SA...

27 Aug 2012, 6:12 PM
Thank you, srxx123.

There is no the property grid store in Sencha Architect 2.0.
(I cannot find it in SA2.0.)

Does anyone know whether it is in SA2.1?

27 Aug 2012, 8:27 PM
PropertyGrid's have a source configuration.

You can grab a Json object via an Ajax request and then invoke setSource on the property grid.

27 Aug 2012, 8:44 PM
Thank you for the advice, Aaron.

Could you show me the detail way step by step?
I'm a beginner of SA2.

27 Aug 2012, 11:12 PM
url: 'foo',
success: function(response, opts) {
var src = Ext.decode(response.responseText);

29 Aug 2012, 8:21 PM
Thank you, Aaron.

I will try your code later.
It looks good.

18 Feb 2013, 2:29 AM
Thank you, aconran.

I'm so sorry to be late to say "Thank you!!!".

It worked perfectly!