setValue()
selects option(s) in ComboBox
setValue(ids: (string | number) | (string | number)[]): void;
Parameters:
ids: (string | number) | (string | number)[]
- the ID(s) of items from data collection that should be selected in Combo Box
Example
// selects one option
combo.setValue(combo.data.getId(1));
// selects several options at once
combo.setValue([combo.data.getId(1), combo.data.getId(3)]);
Related sample: Combobox. Set value