This is a migrated thread and some comments may be shown as answers.

Combobox keeps focus

1 Answer 84 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Mike
Top achievements
Rank 1
Mike asked on 15 Sep 2015, 02:33 PM
Let​'s say I am nesting an input field int​o the HeaderTemplate of a ​ComboBox. Visually it's fine, but the nested field cannot receive focus. It seems t​hat if the ComboBox is open, focus is locked to its input field. Is ​there any way around this?

1 Answer, 1 is accepted

Sort by
0
Konstantin Dikov
Telerik team
answered on 17 Sep 2015, 08:31 AM
Hello Mike,

Your observations are absolutely correct and it is not possible to focus an element placed in the headerTemplate. That template should contain only static HTML and it will not be possible to focus on the input element, without closing the popup. This limitation is due to the fact that when you blur the input element of the ComboBox, it will internally close the popup element (which is the expected behavior).

With the above in mind, please place the INPUT element from the headerTemplate outside the ComboBox widget. 


Best Regards,
Konstantin Dikov
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
Tags
ComboBox
Asked by
Mike
Top achievements
Rank 1
Answers by
Konstantin Dikov
Telerik team
Share this question
or