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

Prevent Selection on Open

1 Answer 31 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Keith
Top achievements
Rank 1
Keith asked on 10 Feb 2014, 02:33 AM
I've actually extended the ComboBox and added some of my own fuunctionality tpo it. It's workign very well so far, but for one little slight annoyance.

I want to prevent the ComboBox from automatically making a selection when the text in the editable area matches exactly the stated value of the item. This has to do with CSS reasons mostly. Also, I've overwritten the arrow scrolling, so that when you press the down arrow it will focus the next element (adds k-state-focused), but it does not actually select the value until you either hit enter, or click on it. I've tried removing the "k-state-selected" class from the element, but that causes errors when I actually go to select an item with the mouse, in that it causes the "e.item" to not be defined and so I'm unable to perform any "select" actions based on the selected value.

Any suggestions?

1 Answer, 1 is accepted

Sort by
0
Kiril Nikolov
Telerik team
answered on 11 Feb 2014, 03:33 PM
Hello Keith,

I am afraid that we cannot provide you with a solution that breaks the core functionality of the widget, and the reason for this is that we cannot guarantee that this will work as expected and will be supported in future versions. 

Regards,
Kiril Nikolov
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
Keith
Top achievements
Rank 1
Answers by
Kiril Nikolov
Telerik team
Share this question
or