PDA

View Full Version : Store value giving "buffered" and "on" undefined errors



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?

jmCodinach
7 Sep 2012, 1:04 PM
I have the same problem with the same version: 4.1.1
For the moment I've solved declaring the store inside the grid panel definition.
I hope sone helps.

Thanks in advance.

jmc

jmCodinach
7 Sep 2012, 2:06 PM
I have the same problem with the same version: 4.1.1
For the moment I've solved declaring the store inside the grid panel definition.
I hope sone helps.

Thanks in advance.

jmc


SOLVED: The problem was that some classes missing. I was using ext-dev.js instead ext-all.js and I supose I need some class that I didn't loaded. So using ext-all.js all classes are load and the problem was solved for me.
I hope some one could find useful.