expandcollaps

dhtmlXComboFromSelect object API

dhtmlXCombo object API

addOption()
add new option
Topic(s): Add/delete;
File required:dhtmlxcombo.js
  • value - (variable) - different input for different kinds of options - please refer to examples
  • clearAll()
    clear all options from combobox
    Topic(s): Add/delete;
    File required:dhtmlxcombo.js
    closeAll()
    close opened combobox list
    Topic(s): Selection control;
    File required:dhtmlxcombo.js
    deleteOption(value)
    delete option by value
    Topic(s): Add/delete;
    File required:dhtmlxcombo.js
  • value - (string) value of option in question
  • destructor()
    destroy object and any related HTML elements
    Topic(s): Initialization;
    File required:dhtmlxcombo.js
    disable(mode)
    disable combobox
    Topic(s): Selection control;
    File required:dhtmlxcombo.js
  • mode - (boolean) disable combobox
  • enableFilteringMode(mode,url,cache)
    switch between combobox and auto-filter modes
    Topic(s): Initialization;
    File required:dhtmlxcombo.js
  • mode - (boolean) enable filtering mode
  • url - (string) url for filtering from XML, optional
  • cache - (boolean) XML cashing, optional
  • getActualValue()
    get value which will be sent with form
    Topic(s): Add/delete;
    File required:dhtmlxcombo.js
    getComboText()
    get current text in combobox
    Topic(s): Add/delete;
    File required:dhtmlxcombo.js
    getIndexByValue(val)
    return index of item by value
    Topic(s): Add/delete;
    File required:dhtmlxcombo.js
  • value - (string) value of option in question
  • getOption(value)
    get Option by value
    Topic(s): Add/delete;
    File required:dhtmlxcombo.js
  • value - (string) value of option in question
  • getOptionByIndex(ind)
    get Option by index
    Topic(s): Add/delete;
    File required:dhtmlxcombo.js
  • ind - (int) index of option in question
  • getSelectedIndex()
    get index of selected option
    Topic(s): Add/delete;
    File required:dhtmlxcombo.js
    getSelectedText()
    get text of selected option
    Topic(s): Add/delete;
    File required:dhtmlxcombo.js
    getSelectedValue()
    get value of selected item
    Topic(s): Add/delete;
    File required:dhtmlxcombo.js
    hide(mode)
    hide combobox
    Topic(s): Selection control;
    File required:dhtmlxcombo.js
  • mode - (boolean) hide combobox
  • loadXML(url)
    load list of options from XML
    Topic(s): Initialization;
    File required:dhtmlxcombo.js
  • url - (string) xml url
  • readonly(mode)
    switch to readonly mode
    Topic(s): Selection control;
    File required:dhtmlxcombo.js
  • mode - (boolean) readonly mode
  • render(mode)
    enable/disable immideatly rendering after changes in combobox
    Topic(s): Selection control;
    File required:dhtmlxcombo.js
  • mode - (boolean) enable/disable
  • selectOption(ind,filter)
    select option
    Topic(s): Selection control;
    File required:dhtmlxcombo.js
  • ind - (int) index of option in question
  • filter - (boolean) enable autocomplit range, optional
  • setComboText(text)
    set text in covmbobox
    Topic(s): Add/delete;
    File required:dhtmlxcombo.js
  • text - (string) new text label
  • setName(name)
    set name used while form submit
    Topic(s): Add/delete;
    File required:dhtmlxcombo.js
  • name - (string) new combobox name
  • show(mode)
    show combox ( reversion to hide command )
    Topic(s): Selection control;
    File required:dhtmlxcombo.js
  • mode - (boolean) enable/disable
  • unSelectOption()
    deselect option
    Topic(s): Selection control;
    File required:dhtmlxcombo.js
    updateOption(oldvalue, value, text, css)
    update option in combobox
    Topic(s): Add/delete;
    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