View Full Version : Fill selectfield from store

6 May 2012, 8:52 AM
Update last post! =)

Hello dear dudes =)

I have the following problem.

I wanna fill my selectfield from a store, theoretical its easy:

xtype: 'selectfield',
label: 'Category',
store: 'game',
displayField: 'category',
valueField: 'id'

The store is filled with some data, nothing great and it works, for example in the list. And I wanna filter this list. And doing it with the same store in a select field is okay, I guess?

Bit all I get is an error. ;/


[WARN][Anonymous] [Ext.Loader] Synchronously loading 'Ext.field.Select'; consider adding 'Ext.field.Select' explicitly as a require of the corresponding class

Uncaught TypeError: Cannot call method 'on' of undefined

Any ideas?

9 May 2012, 7:05 AM
Where is the on error happening? Within the store/selectfield or are you trying to put it on?