nagative numbers

2 posts, 0 answers
  1. Dandan
    Dandan avatar
    17 posts
    Member since:
    Mar 2009

    Posted 05 May 2009 Link to this post


    I want display int number in NumericUpDown control, without define minimum and maxmimum values. Can I?
    I defined NumericUpDown control without minimum and maxmimum values. I see "0" as its default value, but I cann't nevigate (up & down) to negative numbers or to numbers grather than "1".



    <telerikInput:RadNumericUpDown Height="20" Width="90" VerticalAlignment="Center" HorizontalAlignment="Stretch" Margin="0,0,0,0"



    ValueFormat="Numeric" Delay="250" SmallChange="1" IsEditable="True"/>


    In the code I wrote:

    NumericControl.NumberFormatInfo.NumberDecimalDigits = 0;



  2. Konstantin Petkov
    Konstantin Petkov avatar
    1911 posts

    Posted 05 May 2009 Link to this post

    Hi Dandan,

    Thank you for your question.

    If you don't specify minimum and maximum the component sets default values, thus the behavior you see. You can however set the total min and max values like this:

                RadNumericUpDown1.Minimum = double.MinValue; 
                RadNumericUpDown1.Maximum = double.MaxValue; 

    Hope this helps!

    Best wishes,
    Konstantin Petkov
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
  3. DevCraft R3 2016 release webinar banner
Back to Top