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

Filtered Textbox

2 Answers 74 Views
Input
This is a migrated thread and some comments may be shown as answers.
Andy Ho
Top achievements
Rank 1
Andy Ho asked on 15 Jun 2010, 09:30 AM
Hi,

Is there any way to use the RadTextbox as a Filtered Textbox (like AJAXCONTROLTOOLKIT) where we can define the valid characters of input?

Thanks

Andy Ho

2 Answers, 1 is accepted

Sort by
0
Accepted
Princy
Top achievements
Rank 2
answered on 15 Jun 2010, 10:16 AM
Hello Andy,

You can achieve this funtionality by attaching the OnKeyPress event to RadTextBox. Check for the keycode in the event handler and cancel the event based on requirement.

An example is shown in the documentation. I hope this would useful for you.
OnKeyPress

Thanks,
Princy.
0
Andy Ho
Top achievements
Rank 1
answered on 17 Jun 2010, 01:59 AM

Princy,

First of all, thanks for your reply.

I understand that the onkeypress event will work. Just want to know if there is a property that we can set, such as :

ValidChars="ABCDE". I think it is a quite useful feature.

Andy Ho
Tags
Input
Asked by
Andy Ho
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Andy Ho
Top achievements
Rank 1
Share this question
or