This is a migrated thread and some comments may be shown as answers.
Prevent key up and down event on combobox
0 Answers 16 Views
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Anthony
Top achievements
Rank 1
Anthony asked on 07 May 2012, 07:39 PM
Hi,

I am using the telerik combobox. I have written the following code to prevent all keyboard input into the combobox:

//Species-input is the combobox control
$("input[name='SpeciesId-input']").keydown(function (event) {
            event.preventDefault();
            return false;
        });


While this prevents all numeric, characters, special symbols, it still fires the keyup and keydown events (when I use the up and down arrows) and moves to the next/previous item in the combobox. I need to prevent these events from being fired as well. Could you please help me with this?

Thanks,
Anthony
Tags
ComboBox
Asked by
Anthony
Top achievements
Rank 1
Share this question
or