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

Intergers in RadNumericUpDown

1 Answer 245 Views
NumericUpDown
This is a migrated thread and some comments may be shown as answers.
Andreas
Top achievements
Rank 1
Andreas asked on 22 Jun 2010, 01:41 PM
Hi,

is it possible to restrict the text which can be entered by the user to integer?

Currently I define my RadNumericUpDown as follows:

            this.numbericUpDown.ValueFormat = ValueFormat.Numeric;
            this.numbericUpDown.IsInteger = true;
            this.numbericUpDown.NumberFormatInfo.NumberDecimalDigits = 0;
            this.numbericUpDown.NumberFormatInfo.NumberGroupSeparator = "";
            this.numbericUpDown.Maximum = int.MaxValue;
            this.numbericUpDown.Minimum = 1;

This way the user can enter for example 54.30 which is only converted to 54 when the RadNumericUpDown looses the focus. Moreover if the user clicks again into the  RadNumericUpDown, 54.30 appears again. Cant I just omit that any double, too large or too small number can be entered??

Best regards,
Stefan

1 Answer, 1 is accepted

Sort by
0
Konstantina
Telerik team
answered on 24 Jun 2010, 04:46 PM
Hi Stefan,

Thank you for contacting us.

We have logged this issue in our bug tracking system. You can find it with PITS ID = 2533. There you can track its status and see when it is going to be fixed. Your Telerik points have been updated for your involvement.

If you have any other concerns about our controls please feel free to contact us again.

Greetings,
Konstantina
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
NumericUpDown
Asked by
Andreas
Top achievements
Rank 1
Answers by
Konstantina
Telerik team
Share this question
or