View Full Version : Create a new Ext.data.Store type

28 Jun 2010, 6:45 PM
Hi all

I got this fragment of code to default JSON root when post back for one Store, but I got many stores created in my application, and need the same code. How should I write to override the Ext.data.Store to create a new reusable Store type that include this code?

MonthlyReportStore.writer.meta = Ext.applyIf(
{ root: 'd' }, MonthlyReportStore.reader.meta);