Skip to main content

setValue()

selects option(s) in ComboBox

setValue(ids: Id | Id[] ): void;

Parameters:

ids: number | string | array - the ids of items from data collection that should be selected in Combo Box

Example

// selects one optioncombo.setValue(combo.data.getId(1)); // selects several options at oncecombo.setValue([combo.data.getId(1), combo.data.getId(3)]);

Related sample: Combobox. Set Value