How to get the options array that is specified when we are creating combo view

I have a combo view which has some options specified in it. How can I get the options array set on this by a simple api call.

I am actually using $$(‘combo_id’).getList() but it is not showing any output…!

Please help me in fixing this.

Please use

$$("combo").getList().config.data

Hi Listopad

I am thinking to modify my options too in my combo using these commands

$$(“combo1”).getList().clearAll();
$$(“combo1”).getList().parse( new_options );

Here I am trying yo modify the options but it is not happening. Could you please help me with data format of new_options and correct command to do that.

Cheers
Ravikiran Bhonagiri

I don’t see any problem here, your code is correct:

http://webix.com/snippet/ff0e0944

Without any specific template, the combo expects the data items with id and value:

[ { id:1, value:"A" }, { id:2, value:"B" } ]

or just

[ "A", "B" ]