RadTextBox: how to control minimum number of characters.

2 posts, 0 answers
  1. Cali
    Cali avatar
    1 posts
    Member since:
    Jan 2015

    Posted 22 Jan 2015 Link to this post

    I am new and just started using telerik tools.  I have an application where I am using a radtextbox to input a phone number. I have used "maxLength" to control max number of characters.  Now, to just make sure the user enters the minimum number of characters, I am not sure what to do.  Was wondering if there was a minLength property within telerik or not. Thanks 
  2. Eyup
    Admin
    Eyup avatar
    3015 posts

    Posted 27 Jan 2015 Link to this post

    Hello Cali,

    You can use a custom validator to achieve this requirement:
    https://msdn.microsoft.com/en-us/library/system.web.ui.webcontrols.customvalidator%28v=vs.110%29.aspx

    Hope this helps.

    Regards,
    Eyup
    Telerik
     

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

     
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top