RadNumeric Textbox with TextMode as password

2 posts, 0 answers
  1. Rakesh
    Rakesh avatar
    2 posts
    Member since:
    Jul 2013

    Posted 17 Jul 2013 Link to this post

    Hi  All,
     I am creating 3 Radnumeric Textbox dynamically and i have to set the property TextMode as password , How can i implement this in RadNumeric Textbox without using any jscript.
    If I use RadMaskedText box i dont have maxlength and cannot restrict the input value to integer.
    If I use RadTextbox i cannot restrict the input value to integer and while setting the text box data in page load  the (bullet format is not visible) textbox will be empty . Please suggest me any approcah in the above scenario. I am not allowed to use Jscript or Jquery for keypress or keyup

  2. Konstantin Dikov
    Konstantin Dikov avatar
    1744 posts

    Posted 22 Jul 2013 Link to this post

    Hello Rakesh,

    Thank you for contacting us.

    RadNumericTextBox does not have property TextMode and you will need to use RadTextBox instead in order to achieve what you want. With TextMode property of the RadTextBox set to "password" you can use RegularExpressionValidator to ensure that only numbers are entered in the text box.

    Please try the following and see if it fits your needs:
    <telerik:RadTextBox ID="RadTextBox1" TextMode="Password" InputType="Number" runat="server">
        ID="emailValidator" runat="server" Display="Dynamic" ErrorMessage="Must contain only digits" ValidationExpression="\d+" ControlToValidate="RadTextBox1">

    If you have any further questions, please feel free to get back to us.


    Konstantin Dikov
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to the blog feed now.
  3. DevCraft R3 2016 release webinar banner
Back to Top