PDA

View Full Version : Ext.form.Select bug, "Uncaught TypeError: Cannot read property 'items' of undefined"



dbredesen
28 Oct 2011, 7:29 AM
Hello,
I have not been able to use Ext.form.Select (xtype 'selectfield') successfully. Whenever I add a selectfield to our UI, and subsequently click on it, I get the following error:


Uncaught TypeError: Cannot read property 'items' of undefined

Here is the code:


items: [ // items inside our Panel
new Ext.form.FormPanel({
items :
[
{
xtype: 'selectfield',
options:
[
{ text: 'hello', value: '1' },
{ text: 'world', value: '2' }
]
}
]
}),


I have tried many other combinations here (e.g. using xtype instead of instantiating the FormPanel directly, copying code directly from the Kitchen Sink examples, etc), but I get the same error every time.

This is holding up progress in our UI, and is very frustrating. Can anybody help?