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

Filter on key press

1 Answer 102 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Inbal
Top achievements
Rank 1
Inbal asked on 20 Jan 2009, 01:21 PM
Hello,

We are using a telerik CustomDropDownList with the ability to type into the control.
We want to add a filer for unwanted characteres and we see that when trying to catch the key from the press on the keaboard in javascript (using property OnClientKeyPressing), it is not the same ascii code as in a text box for example.
Do the ddl translates differently the ascii codes?

Please help.

Thanks,
Inbal

1 Answer, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 17 Feb 2009, 07:05 AM
Hi Inbal,

The OnClientKeyPressing client-side event occurs when a combobox receives the focus and the user presses a key. It is possible to prevent user from typing particular characters in the RadComboBox having CustomText enabled. Check-out the links for more details.
Prevent user from typing particular characters
OnClientKeyPressing

Thanks,
Princy.
Tags
ComboBox
Asked by
Inbal
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Share this question
or