Dec 14, 2009, 6:24 PM
[CLOSED] adding listitems dynamically in a combobox
Hi,
I am attempting to add list items dynamically to a combobox located within a gridpanel column. I am attempting to do so using the listener event AfterRender. However it always results in an error eg
Kind Regards
Lee
I am attempting to add list items dynamically to a combobox located within a gridpanel column. I am attempting to do so using the listener event AfterRender. However it always results in an error eg
<Editor>
<ext:ComboBox ID="_options" runat="server" EmptyText="Options" TriggerAction="All">
<Listeners>
<AfterRender Fn="addItem" />
</Listeners>
</ext:ComboBox>
</Editor>
var addItem = function(combo, record, index) {
combo.insertRecord(1, { Text: 'Text1', Value: '1' });
}
Any help in fixing this would be greatly appreciatedKind Regards
Lee