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

nagative numbers

1 Answer 67 Views
NumericUpDown
This is a migrated thread and some comments may be shown as answers.
Dandan
Top achievements
Rank 1
Dandan asked on 05 May 2009, 08:19 AM
Hi,

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;


Thanks,

 

1 Answer, 1 is accepted

Sort by
0
Konstantin Petkov
Telerik team
answered on 05 May 2009, 10:33 AM
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.
Tags
NumericUpDown
Asked by
Dandan
Top achievements
Rank 1
Answers by
Konstantin Petkov
Telerik team
Share this question
or