expand collaps

## dhtmlXComboFromSelect object API

## dhtmlXCombo object API

### Initialization

destructor()
destroy object and any related HTML elements
File required:dhtmlxcombo.js
enableFilteringMode(mode,url,cache)
switch between combobox and auto-filter modes
File required:dhtmlxcombo.js
- mode - (boolean) enable filtering mode
- url - (string) url for filtering from XML, optional
- cache - (boolean) XML cashing, optional
loadXML(url)
load list of options from XML
File required:dhtmlxcombo.js
- url - (string) xml url

### Selection control

closeAll()
close opened combobox list
File required:dhtmlxcombo.js
disable(mode)
disable combobox
File required:dhtmlxcombo.js
- mode - (boolean) disable combobox
hide(mode)
hide combobox
File required:dhtmlxcombo.js
- mode - (boolean) hide combobox
readonly(mode)
switch to readonly mode
File required:dhtmlxcombo.js
- mode - (boolean) readonly mode
render(mode)
enable/disable immideatly rendering after changes in combobox
File required:dhtmlxcombo.js
- mode - (boolean) enable/disable
selectOption(ind,filter)
select option
File required:dhtmlxcombo.js
- ind - (int) index of option in question
- filter - (boolean) enable autocomplit range, optional
show(mode)
show combox ( reversion to hide command )
File required:dhtmlxcombo.js
- mode - (boolean) enable/disable
unSelectOption()
deselect option
File required:dhtmlxcombo.js

### Add/delete

addOption()
add new option
File required:dhtmlxcombo.js
- value - (variable) - different input for different kinds of options - please refer to examples
clearAll()
clear all options from combobox
File required:dhtmlxcombo.js
deleteOption(value)
delete option by value
File required:dhtmlxcombo.js
- value - (string) value of option in question
getActualValue()
get value which will be sent with form
File required:dhtmlxcombo.js
getComboText()
get current text in combobox
File required:dhtmlxcombo.js
getIndexByValue(val)
return index of item by value
File required:dhtmlxcombo.js
- value - (string) value of option in question
getOption(value)
get Option by value
File required:dhtmlxcombo.js
- value - (string) value of option in question
getOptionByIndex(ind)
get Option by index
File required:dhtmlxcombo.js
- ind - (int) index of option in question
getSelectedIndex()
get index of selected option
File required:dhtmlxcombo.js
getSelectedText()
get text of selected option
File required:dhtmlxcombo.js
getSelectedValue()
get value of selected item
File required:dhtmlxcombo.js
setComboText(text)
set text in covmbobox
File required:dhtmlxcombo.js
- text - (string) new text label
setName(name)
set name used while form submit
File required:dhtmlxcombo.js
- name - (string) new combobox name
updateOption(oldvalue, value, text, css)
update option in combobox
File required:dhtmlxcombo.js
- oldvalue - (string) index of option in question
- value - (string) new value
- text - (string) new label
- css - (string) new css style string

## dhtmlXRange object API