Make ComboBox "sticky"

4 posts, 1 answers
  1. Yngve
    Yngve avatar
    19 posts
    Member since:
    Feb 2017

    Posted 27 Jun Link to this post

    Hi,

     

    Is there an option to make the ComboBox not close until I've clicked elsewhere on the page? The scrolling function in the combobox kind of interferes with the scrolling on the actual page when scrolling with the mouse. 

  2. Answer
    Ivan Danchev
    Admin
    Ivan Danchev avatar
    1332 posts

    Posted 28 Jun Link to this post

    Hello Yngve,

    The ComboBox does not have such configuration option, but you can use a flag, detect the focusout event firing (scrolling does not blur the ComboBox), and prevent the close event if focusout hasn't fired. See this dojo for an example.

    Regards,
    Ivan Danchev
    Progress Telerik
    Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
  3. Yngve
    Yngve avatar
    19 posts
    Member since:
    Feb 2017

    Posted 28 Jun in reply to Ivan Danchev Link to this post

    Hi, thanks for the answer. Everything works fine except that I get the error 

    Cannot read property 'close' of undefined

     

    when I run 

    var combo = $("#xkendo-project-combobox").data("kendoComboBox").close();

  4. Ivan Danchev
    Admin
    Ivan Danchev avatar
    1332 posts

    Posted 29 Jun Link to this post

    Hello Yngve,

    This indicates that a proper reference to the ComboBox with id "xkendo-project-combobox" cannot be obtained. Could you demonstrate this in a dojo example?

    Regards,
    Ivan Danchev
    Progress Telerik
    Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Back to Top