jsheely
2 Aug 2012, 7:21 AM
Running 4.1.1
I have an application that separates out the stores and the views
Ext.define('NS.store.QueryEvents', { extend: 'Ext.data.Store', storeId: 'QueryEvents', model: 'NS.model.QueryEvents'}
Ext.create('Ext.grid.Panel', { title:'Events', store:'QueryEvents', layout: 'fit', padding:4, id:'eventsGrid'}
The problem is when I assign this store to an object (a Grid for example) in the view it will return a "Cannot read property 'buffered' of undefined.
And if I assign the same store to the PagingToolbar for the aforementioned grid I will get "Cannot call method 'on' of undefined.
So my question is what am I doing wrong here? Why can't I assign my store to an object in the view?
I have an application that separates out the stores and the views
Ext.define('NS.store.QueryEvents', { extend: 'Ext.data.Store', storeId: 'QueryEvents', model: 'NS.model.QueryEvents'}
Ext.create('Ext.grid.Panel', { title:'Events', store:'QueryEvents', layout: 'fit', padding:4, id:'eventsGrid'}
The problem is when I assign this store to an object (a Grid for example) in the view it will return a "Cannot read property 'buffered' of undefined.
And if I assign the same store to the PagingToolbar for the aforementioned grid I will get "Cannot call method 'on' of undefined.
So my question is what am I doing wrong here? Why can't I assign my store to an object in the view?