Skip to main content

getWidget()

returns the dhtmlxComboBox widget attached to a Combo control

getWidget(): Combobox;

Returns:

An object of the dhtmlxCombo widget.

Example

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();  // -> ComboBoxcombo.focus(); // sets focus in the input