RadNumericTextbox to allow only set of values

3 posts, 0 answers
  1. Stalin
    Stalin avatar
    15 posts
    Member since:
    Jun 2012

    Posted 17 Jun 2013 Link to this post

    Hi ,

    Am working on RadNumericTextBox to enable users to enter values allowed through the spin buttons only.

    Example: The control should have min value  as 10 and max value as 80 and increment by 10, so the control should allow only 10,20,30,40,50,60,70 and 80 as the allowed values and should show error message on violating this.

    How this functionality can be achieved ?

  2. Resopi
    Resopi avatar
    4 posts
    Member since:
    Jun 2013

    Posted 17 Jun 2013 Link to this post


    i don't knows if this is the bast way, but i made this... 

                .focusin(function () { this.readOnly = true; })<br>
                .focusout(function () { this.readOnly = false; });

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

    Posted 17 Jun 2013 Link to this post


    Try setting MinValue,MaxValue and IncrementSettings-Step as shown below.

    <telerik:RadNumericTextBox    IncrementSettings-Step="10" ShowSpinButtons="true"  MinValue="10"   MaxValue="80"   ID="RadNumericTextBox1"    runat="server"
     <NumberFormat GroupSeparator="" DecimalDigits="0" />

Back to Top