PDA

View Full Version : transform an existing <select> and add it to an Ext.form?



raphinou
12 May 2007, 2:48 AM
Hi,

passing the transform config to a ComboBox constructor, you can transform your html select in an Ext looking combobox. This works fine, but how can I add the resulting combobox to an Ext.form instance? The constructor, from what I've experienced, doesn't return anything when you pass the transform config parameter so I don't get a reference to the generated combobox.

Thanks

Raph

tryanDLS
12 May 2007, 12:13 PM
The constructor always returns an object. Look at the combos example.

raphinou
13 May 2007, 1:36 AM
You're right, I don't know what I've done yesterday to get this wrong idea....

Anyway, I could reuse an existing select list and put it in my Ext form by passing the opiton lazyRender: true.

Raph