Mar 04, 2014, 1:46 AM
[CLOSED] JavaScript Error when adding Store to a Bin
I've hit an issue with adding a Store to the Bin collection of either a Window, Panel or Portal component. I've only been able to make it work if I add the Store to a Portlet Bin, but that is too low level as I need this store shared by various Portlets.
To reproduce the error, simply create a Window with a Portal in it and Portlets in this portal. When a store is added to the Window or Portal, the following error is produced.
Unhandled exception at line 73294, column 9 in http://localhost:53972/extjs/ext-all...xt.axd?v=28616
0x800a138f - JavaScript runtime error: Unable to get property 'items' of undefined or null reference
To reproduce the error, simply create a Window with a Portal in it and Portlets in this portal. When a store is added to the Window or Portal, the following error is produced.
Unhandled exception at line 73294, column 9 in http://localhost:53972/extjs/ext-all...xt.axd?v=28616
0x800a138f - JavaScript runtime error: Unable to get property 'items' of undefined or null reference
load: function(options) {
var me = this;
options = options || {};
if (typeof options == 'function') {
options = {
callback: options
};
}
options.groupers = options.groupers || me.groupers.items; <========= ERROR HAPPENS IN THIS LINE
options.page = options.page || me.currentPage;
options.start = (options.start !== undefined) ? options.start : (options.page - 1) * me.pageSize;
options.limit = options.limit || me.pageSize;
options.addRecords = options.addRecords || false;
if (me.buffered) {
options.limit = me.viewSize || me.defaultViewSize;
return me.loadToPrefetch(options);
}
return me.callParent([options]);
},
Last edited by Daniil; Mar 11, 2014 at 6:39 AM.
Reason: [CLOSED]