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

[Solved] Possible to prevent keyboard selection of dropdownlist values?

1 Answer 523 Views
DropDownList
This is a migrated thread and some comments may be shown as answers.
John
Top achievements
Rank 1
John asked on 16 Sep 2014, 01:47 PM
Hi,

I would like to prevent the user from changing the selected value of a dropdown list unless the shift key is pressed along with the arrow. Although I can hook a function to the keydown event of the .k-dropdown.k-widget this function is only called after the value has already been changed by the keydown event.

Is there a way to prevent this behaviour or get kendo to call my function earlier?

Regards

1 Answer, 1 is accepted

Sort by
0
Georgi Krustev
Telerik team
answered on 17 Sep 2014, 08:59 AM
Hello John,

The change event cannot be prevented. What you can do is to cache the old value and if needed to revert the widget value to the old one using its value method.

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
DropDownList
Asked by
John
Top achievements
Rank 1
Answers by
Georgi Krustev
Telerik team
Share this question
or