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

Validation of masked textbox

1 Answer 117 Views
Input
This is a migrated thread and some comments may be shown as answers.
Jonathan
Top achievements
Rank 1
Jonathan asked on 24 Feb 2010, 08:53 PM
Hi, I have a masked texbox (supplying a job code) and input manager on a page. The masked textbox has the following mask 'QJLL<0..9><0..9><0..9><0..9>',  so I want the letters QJ followed by 2 uppercase letters and 4 numbers. How can I make sure that the user has actually entered something for the job code masked textbox? The input manager is successfully validating other textboxes on the page, but I cannot see how to get it to work for the masked textbox.

Although 'L' in the mask signifies a required character, nothing seems to fire when the user simply tabs to the next control on the page instead of supplying the job code.

I don't really want to resort to a custom asp.net validator as this is not consistent with the way the rest of the page works.

Any help would be appreciated.

Regards,
Jonathan

1 Answer, 1 is accepted

Sort by
0
Martin
Telerik team
answered on 01 Mar 2010, 03:38 PM
Hi Jonathan Simmons,

Please note the following quote from our documentation:

"The RadInputManager offers an easy and intuitive way to extend a standard asp.net text box, and without any extra custom code, introduce much functionality, normally related to a Telerik RadInput control"

Based on the above, I am afraid that RadInputManager can not be used to validate other RadInput controls. As a workaround you can use a RegularExpressionValidator as demonstrated in this online example:

Validation

I hope this helps,
Martin
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Tags
Input
Asked by
Jonathan
Top achievements
Rank 1
Answers by
Martin
Telerik team
Share this question
or