var store = new Ext.data.JsonStore({
id:\'jfields\',
totalProperty:\'totalcount\',
root:\'rows\',
url: \'data.php\',
fields:[{ name:\'jfields\' },
I have also figured out a simple solution to this:
listeners: {
load: function( xstore , record , option ) {
var u = new xstore.recordType({ jfields : 'monthly' });
xstore.insert(record.length, u);
}
}
Here what I have to add is this listeners as when the data loads it will create the record type and u can add fields as data as many as u want