2 posts, 0 answers
  1. Mike
    Mike avatar
    31 posts
    Member since:
    Apr 2009

    Posted 27 Jun 2012 Link to this post

    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?

  2. Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 28 Jun 2012 Link to this post

    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.

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

    Hope this helps.

Back to Top