getting error "recordType is undefined"
Trying to use your plugin, below are the "before"/"after" versions of my store. When I convert to using your PagingArrayStore, I get the error "recordType is undefined" from line 23540 of ext-3.2.1/ext-all-debug.js.
Could it be because the "RecordType" parameter being pass to "new Ext.data.ArrayReader" is not "a Record constructor created from Ext.data.Record.create." but rather the other permissible parameter, "an Array of Field definition objects"?
Or maybe could it be because I initially define the data as []? I do this to begin with as the grid will be empty, but depending on an event, then the data gets populated through a call to loadData
By the way, the before code for the store is largely based on what was generated by Ext Designer, all I added are the mappings. Thanks in advance.
Before:
Code:
this.store = new Ext.data.Store({
autoDestroy : true,
reader : new Ext.data.ArrayReader({}, [{
name : 'locId', mapping: 'locId'
}, {
name : 'locName', mapping: 'locName'
}, {
name : 'locCity', mapping: 'locCity'
}, {
name : 'locState', mapping: 'locState'
}, {
name : 'hasAccess', mapping: 'hasAccess'
}]),
data : []
});
After:
Code:
this.store = new Ext.ux.data.PagingArrayStore({
autoDestroy : true,
reader : new Ext.data.ArrayReader({}, [{
name : 'locId', mapping: 'locId'
}, {
name : 'locName', mapping: 'locName'
}, {
name : 'locCity', mapping: 'locCity'
}, {
name : 'locState', mapping: 'locState'
}, {
name : 'hasAccess', mapping: 'hasAccess'
}]),
data : [],
lastOptions: {params: {start: 0, limit: 25}}
});