View Full Version : Extjs4 loadData

28 Mar 2012, 7:19 AM
Hi i am using loadData method to the below JSON to GRID panel.But i am not able to render vehicleModelCriteria data and i am able to render vin.

Please help how to achive to read nested JSON data.

{"addList":["vehicleModelCriteria":{"engine":{"familyCode":"ENG","optionCode":"L20","optionDescription":"Engine: 8 Cyl, 4.8L, SFI, Flex Fuel","optionType":""},"vin":"3GCPCREA7CG107686"}]}\


28 Mar 2012, 8:16 AM
From the Store API on loadData (http://docs.sencha.com/ext-js/4-0/#!/api/Ext.data.Store-method-loadData),

Using this method is great if the data is in the correct format already (e.g. it doesn't need to be processed by a reader).

See API for more details.

29 Mar 2012, 4:31 AM
Hi carol,

the json format is correct only but the issue is i am not able to get the nested json data.