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

ComboBox prevent typing

1 Answer 1423 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
GCS
Top achievements
Rank 1
GCS asked on 01 Jul 2014, 05:18 PM
I have been trying to figure out what properties need to be set to prevent users from typing in their own values in the combobox.  The best solution I came up with to this point was capturing the keypressed event and prevent the value from being placed in the combobox.  Is there a better solution?

The behavior I desire is to only allow the user to use the combobox to select a value.  I know that I can handle it through validation but I do not want to let the user type in the component at all.


Thanks
Dave

1 Answer, 1 is accepted

Sort by
0
Georgi Krustev
Telerik team
answered on 02 Jul 2014, 08:42 AM
Hello Dave,

The Kendo ComboBox widget is designed to allow custom values along with popup suggestion box. If you would like to prevent this built-in functionality you will need to accomplish the task using additional JavaScript code. Here is a simple demo, which shows how to achieve your goal.

Regards,
Georgi Krustev
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
GCS
Top achievements
Rank 1
Answers by
Georgi Krustev
Telerik team
Share this question
or