I have a json file and I assume that I do not know anyting about the content. I do not know the model. However it is given in the json file the model, the data, and other information about the grid. How I’ll create the columns etc in this way?
Share
http://docs.sencha.com/ext-js/4-1/#!/api/Ext.data.reader.Json -> Response MetaData section
in the grid don’t forget to add this one
columns: [],then under the storelisteners: { 'metachange': function(store, meta) { myGrid.reconfigure(store, meta.columns); } }and the response json file should have metaData with fields and columns. Read Response MetaData section in the documentation for more info.