DHTMLX Docs & Samples Explorer

Index
dhtmlxcombo
API Methods

## dhtmlxCombo API Methods

### Initialization

enableFilteringMode switch between combobox and auto-filter modes

enableOptionAutoHeight enables or disables list auto height

enableOptionAutoPositioning enables or disables options auto positioning

enableOptionAutoWidth enables or disables options auto width

loadXML load list of options from XML

loadXMLString load list of options from XML string

setDefaultImage

setName set name used while form submit

setOptionHeight set height of combo list

setOptionWidth set width of combo list

setSize change control size

### Options manipulations

addOption add new option

deleteOption delete option by value

getChecked gets list of checked options values

getIndexByValue return index of item by value

getOption get Option by value

getOptionByIndex get Option by index

getOptionByLabel get Option by label

getSelectedIndex get index of selected option

getSelectedText get text of selected option

getSelectedValue get value of selected item

selectOption select option

setChecked sets option checked

unSelectOption deselect option

updateOption update option in combobox

### Combo manipulations

clearAll clear all options from combobox

closeAll close opened combobox list

destructor destroy object and any related HTML elements

disable disable combobox

getActualValue get value which will be sent with form

getComboText get current text in combobox

openSelect open list of options

readonly switch to readonly mode

render enable/disable immideatly rendering after changes in combobox

setComboText set text in covmbobox

setComboValue set text in covmbobox

show show combox ( reversion to hide command )

### Extentions