Skip to main content


returns the dhtmlxComboBox widget attached to a Combo control

getWidget(): Combobox;


An object of the dhtmlxCombo widget.


var combo = form.getItem("combo").getWidget();  
// -> dhtmlxComboBox

It is possible to use methods of dhtmlxComboBox via the getWidget() method of a Combo control.

For example, you can set focus in the Combo input without opening a popup with options. To do this, you need to get the widget attached to the Combo control and then use the focus() method of this widget.

var combo = form.getItem("combo_id").getWidget();  // -> ComboBox
combo.focus(); // sets focus in the input