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

RadNumericTextBox

1 Answer 48 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Mike
Top achievements
Rank 1
Mike asked on 27 Jun 2012, 03:14 PM
I'm not sure its possible but I'd like to be able to enter multiple numbers into a numeric textbox.
I'd like to be able to enter a string of numbers such as: 12345, 12365, 14356.
Each number must be a whole number with no decimals. Is this possible or should I use a textbox and validate each value individually after splitting the string?

Thanks

1 Answer, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 1
answered on 28 Jun 2012, 05:02 AM
Hi Mike,

One suggestion is, that you can use RegularExpressionValidator .Here is the sample code which I tried based on your scenario which works as expected.

ASPX:
<telerik:RadTextBox ID="RadTextBox1" EmptyMessage="123, 123" runat="server" >
</telerik:RadTextBox>
<asp:RegularExpressionValidator ID="regNumber" ControlToValidate="RadTextBox1" runat="server" ErrorMessage="not valid " ValidationExpression="(([0-9]+(0-9)*, )*)+([0-9]+(0-9)*)" >
</asp:RegularExpressionValidator>

Hope this helps.

Thanks,
Shinu.
Tags
General Discussions
Asked by
Mike
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 1
Share this question
or