nonameplum/DynamicGrid — pull request #1 by Hadsch (2014-02-05 15:13:23+00:00)
Title: Define fields and columns in JSON response

Ext.ux.DynamicReader understands now following json string

Code:
{
fields: [
{"name":"Data", "type":"Date"},
{"name":"Test", "type":"Boolean"},
],
columns: [
{"name":"Data", "xtype":"datecolumn", "format":"Y" },
{"name":"Test", "xtype":"checkcolumn" }
],
data: [
{"Data":"2012-09-08 10:48:24","Name":"Adam","Result":"4.01","Test":"true"},
{"Data":"2012-09-08 10:48:34","Name":"Carol","Result":"5.26"},
{"Data":"2012-09-08 10:48:52","Name":'Jim',"Result":"6.66"},
{"Data":"2012-09-08 10:49:02","Name":'Jeniffer',"Result":"6.47"},
{"Data":"2012-09-08 10:49:12","Name":'Joanna',"Result":"6.62"},
{"Data":"2012-09-08 10:49:22","Name":'David',"Result":"5.98"},
{"Data":"2012-09-08 10:49:32","Name":'Lukas',"Result":"5.29"},
{"Data":"2012-09-08 10:49:42","Name":'Piter',"Result":"4.12"}
]
}
You can specify for each column a field configuration (see Ext.data.Model fields) and a columns configuration for the grid.

It is still compatible with the original json response.

P.S.: I just made changes to DynamicReader.js. I don't know where the other changes are coming from.