Validating if information is entered

2 posts, 0 answers
  1. Xpress
    Xpress avatar
    6 posts
    Member since:
    Jan 2012

    Posted 24 Jan 2012 Link to this post

    I am using the RadMaskedTextInput to contain a last name, a first name, city and several other random strings.  I am trying to have the validation just test whether there is data in the field.  I found a help file for doing something similar on the MaskedTextBox, but nothing for the more generic TextInput.  Any help would be greatly appreciated.

    The Validation help contains an exception called ValidationException which I cannot find a reference to in my Visual Studios.  This looked like the proper way to go, but without access to that Exception I am stuck.
  2. Tina Stancheva
    Tina Stancheva avatar
    3298 posts

    Posted 27 Jan 2012 Link to this post


    In order to implement the data validation scenario you need to add a reference to the System.ComponentModel.DataAnnotations assembly. I attached a sample project to get you started. Let me know if it helps.

    Tina Stancheva
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

  3. DevCraft R3 2016 release webinar banner
Back to Top