PDA

View Full Version : GroupingStore error in IE - Object doesn't support this property or method



kiranpatil
28 Nov 2009, 6:24 AM
Hi,

I am using GroupingStore as defined follows, which works fine with firefox however gives an error with IE 8 as Line: 30113 Error: Object doesn't support this property or method using ext-all-debug.js.

Line: 30113: this.reader.onMetaChange = this.onMetaChange.createDelegate(this);

Code goes here:



ds = new Ext.data.GroupingStore({
proxy: new Ext.data.HttpProxy({
url: 'index.php',
directory: '<? echo $defaultaccount ?>:INBOX',
method: 'GET',
params:{start:0, limit:50,sendWhat:this.sendWhat,
dir: this.directory, action:'getdircontents' }
}),
directory: '<? echo $defaultaccount ?>:INBOX',
sendWhat: 'emails',
rech: '',
rechWhat: 'SUBJECT',
sortInfo:{field: 'jour', direction: "DESC"},
groupBy:'jour',
groupField:'jour',
//groupOnSort:true,
reader: new Ext.data.JsonReader({
root: 'items',
totalProperty: 'totalCount'
},
Ext.data.Record.create([
{name: 'name'},
{name: 'idf'},
{name: 'attachement'},
{name: 'sender'},
{name: 'dist'},
{name: 'is_seen'},
{name: 'is_copy'},
{name: 'flagged'},
{name: 'size'},
{name: 'priority'},
{name: 'date'},
{name: 'jour'},
{name: 'status'},
{name: 'Type'}

])),
// turn on remote sorting
remoteGroup:true,
remoteSort: true
});
*/

ds.paramNames['dir'] = 'direction';
ds.paramNames['sort'] = 'order';
Ext.Ajax.timeout = 500000;
ds.on('beforeload', function(ds, options) {
options.params.dir = options.params.dir ? options.params.dir : ds.directory;
options.params.sendWhat = options.params.sendWhat ? options.params.sendWhat : ds.sendWhat;
options.params.limit = options.params.limit ? options.params.limit : 50;
options.params.start = options.params.start ? options.params.start : 0;
options.params.rech = options.params.rech ? options.params.rech : ds.rech;
options.params.rechWhat = options.params.rechWhat ? options.params.rechWhat : ds.rechWhat;
options.params.action = 'getemails';
}
);

ds.on('load',function(ds){
preview.clear();
updateColumns(ds.directory,grid.getView().showPreview);
}
);
Please help.

mw-flow
3 Feb 2010, 10:16 AM
http://www.extjs.com/forum/showthread.php?p=433599#post433599