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

Make ComboBox "sticky"

3 Answers 14 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Yngve
Top achievements
Rank 1
Yngve asked on 27 Jun 2017, 02:05 PM

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. 

3 Answers, 1 is accepted

Sort by
0
Accepted
Ivan Danchev
Telerik team
answered on 28 Jun 2017, 06:01 AM
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.
0
Yngve
Top achievements
Rank 1
answered on 28 Jun 2017, 08:00 AM

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();

0
Ivan Danchev
Telerik team
answered on 29 Jun 2017, 12:41 PM
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.
Tags
ComboBox
Asked by
Yngve
Top achievements
Rank 1
Answers by
Ivan Danchev
Telerik team
Yngve
Top achievements
Rank 1
Share this question
or