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

<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 appreciated

Kind Regards

Lee