Validation of masked textbox

2 posts, 0 answers
  1. Jonathan Simmons
    Jonathan Simmons avatar
    110 posts
    Member since:
    Jun 2005

    Posted 24 Feb 2010 Link to this post

    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
  2. Martin
    Admin
    Martin avatar
    833 posts

    Posted 01 Mar 2010 Link to this post

    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.
Back to Top