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

[Solved] How to catch the keypress event

1 Answer 115 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
al
Top achievements
Rank 1
al asked on 29 Nov 2010, 12:28 AM
Hello,

Has anyone tried to catch the keypress event on the items of combo box?

Cheers.

1 Answer, 1 is accepted

Sort by
0
al
Top achievements
Rank 1
answered on 03 Dec 2010, 04:52 AM
I needed a hover event when items in the drop down list when selected with keypress(when the drop down list is opened). It made more sense to me that the change event had to be triggered because the value of the drop down list changes when you navigate with the keys.
So i ended up changing that piece of code in the script : telerik.list.js
if (!dropDown.isOpened())
                        trigger.change();
if (!dropDown.isOpened())
                        trigger.change();
 
to
 
                        trigger.change();
 
you could even put a a delay so that it does not trigger each time
 
keydowntimer = setTimeout(function () { trigger.change() }, 1000);

if (!dropDown.isOpened())
                        trigger.change();

Tags
ComboBox
Asked by
al
Top achievements
Rank 1
Answers by
al
Top achievements
Rank 1
Share this question
or