PDA

View Full Version : store not defined as error



anaP
27 Apr 2012, 1:09 AM
Hi,
In Sencha touch 2 if I try to create List from Json using insert method it allows me to do so without giving the store with this warning
[WARN][Ext.dataview.List#applyStore] The specified Store cannot be found
I can set the store afterwards using setStore method.

But when I try to create Grid using ExtJS 4 in the same fashion. It gives error instead of warning as
Uncaught TypeError: Cannot read property 'store' of undefined.
why is it so?

chramer
27 Apr 2012, 2:45 AM
take a look at this (http://docs.sencha.com/ext-js/4-0/#!/api/Ext.panel.Table-method-reconfigure)!
and show us some code..