Combobox keeps focus

2 posts, 0 answers
  1. Mike
    Mike avatar
    1 posts
    Member since:
    Jul 2015

    Posted 15 Sep 2015 Link to this post

    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?
  2. Konstantin Dikov
    Konstantin Dikov avatar
    2126 posts

    Posted 17 Sep 2015 Link to this post

    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
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Back to Top