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

RadNumeric Textbox with TextMode as password

1 Answer 159 Views
Input
This is a migrated thread and some comments may be shown as answers.
Rakesh
Top achievements
Rank 1
Rakesh asked on 17 Jul 2013, 12:22 PM
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

Thanks,
Rakesh

1 Answer, 1 is accepted

Sort by
0
Konstantin Dikov
Telerik team
answered on 22 Jul 2013, 10:33 AM
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">
</telerik:RadTextBox>
<asp:RegularExpressionValidator
    ID="emailValidator" runat="server" Display="Dynamic" ErrorMessage="Must contain only digits" ValidationExpression="\d+" ControlToValidate="RadTextBox1">
</asp:RegularExpressionValidator>


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

Regards,

Konstantin Dikov
Telerik
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.
Tags
Input
Asked by
Rakesh
Top achievements
Rank 1
Answers by
Konstantin Dikov
Telerik team
Share this question
or