PDA

View Full Version : Drag and Drop create JSon object dynamically



nirajpsl
22 Jun 2010, 7:48 AM
Hi
From server side I am getting List<String> to the UI and I would like to manipulate this list and show the dynamic data in grid structure.
Could you please tell me how could I read dynamic data in Ext.onReady(function() to create below json objects for records.
sample code for static data:
var myData = {
records : [

{ name : "Data0", column1 : "0", column2 : "0" },
{ name : "Data1", column1 : "1", column2 : "1" },
]
};

Thanks,
Niraj