-
27 Jul 2012 3:54 AM #1
How to load stored json data into Property Grid
How to load stored json data into Property Grid
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.
But,.....
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
Code: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 #2
I'm still facing this problem.
I hope someone help me.
-
25 Aug 2012 11:17 AM #3
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 #4
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 #5
PropertyGrid's have a source configuration.
You can grab a Json object via an Ajax request and then invoke setSource on the property grid.Aaron Conran
@aconran
Sencha Architect Development Team
-
27 Aug 2012 8:44 PM #6
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 #7
Code:Ext.Ajax.request({ url: 'foo', success: function(response, opts) { var src = Ext.decode(response.responseText); myGrid.setSource(src); } });Aaron Conran
@aconran
Sencha Architect Development Team
-
29 Aug 2012 8:21 PM #8
Thank you, Aaron.
I will try your code later.
It looks good.
-
18 Feb 2013 2:29 AM #9
It worked!
It worked!
Thank you, aconran.
I'm so sorry to be late to say "Thank you!!!".
It worked perfectly!


Reply With Quote