Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted on Feb 12, 2009 01:15
open dhtmlx forum
How to make focus in dhtmlx combo . the focus() method is not working in dhtmlxcombo ...

How to make focus in dhtmlx combo . the focus() method is not working in dhtmlxcombo
Answer posted by Alex (support) on Feb 12, 2009 02:11

There is no built-in functionality to set focus in combo.

The combo contains two containers: a container with html input and a container with  options. 

The combo input can be got by DOMelem_input internal property. So, you can try to set focus to it.

var input = dhxCombo. DOMelem_input;

Answer posted by Nick Armitage on Feb 12, 2009 03:02
That's exactly what I do:
   <mycontrol>.DOMelem_input.focus() and it works fine.

I did think it should be part of the combo API as it's quite often you want to do this.