Aug 18, 2014, 6:51 AM
[CLOSED] Combo box items add
Hi,
Items are not able to add in combo box store client side.
Items are not able to add in combo box store client side.
<ext:ComboBox ID="cboTaskType" runat="server" Width="200" Editable="false">
</ext:ComboBox>
var taskStore = Ext.getCmp('cboTaskType').getStore();
taskStore.removeAll();
taskStore.add(new Ext.data.Record({ text: "test1", value: 1 }));
taskStore.add(new Ext.data.Record({ text: "test2", value: 3 }));
Ext.getCmp('cboTaskType').setValue('1');
Above code sample works in ext 1.x version
Last edited by Daniil; Aug 20, 2014 at 11:46 AM.
Reason: [CLOSED]