6 Answers, 1 is accepted
0

Princy
Top achievements
Rank 2
answered on 15 Mar 2012, 05:57 AM
Hi Tarun,
You need to set MaxLength property of the RadNumericTextBox.
ASPX:
Hope this helps.
Thanks,
Princy.
You need to set MaxLength property of the RadNumericTextBox.
ASPX:
<
telerik:RadNumericTextBox
ID
=
"RadNumericTextBox1"
runat
=
"server"
MaxLength
=
"10"
></
telerik:RadNumericTextBox
>
Thanks,
Princy.
0

Tarun
Top achievements
Rank 1
answered on 15 Mar 2012, 06:04 AM
Thanks for the prompt response Princy.
But its my mistake, i did not elaborate my scenario. Here's what i expect:
I specify the following properties for my RadNumericTextBox:
NumberFormat-DecimalDigits to some value (say 3),
NumberFormat-PositivePattern to some value (say " + n"), [please note the blank spaces before and after + symbol)
In this case, if i specify the max length, then the control will consider the positive pattern also and will truncate my numeric value.
I wish to specify the maximum number of numeric digits before decimal i.e on the editValue of the control (not the max length for the value of the control).
Thanks
Tarun Singla
But its my mistake, i did not elaborate my scenario. Here's what i expect:
I specify the following properties for my RadNumericTextBox:
NumberFormat-DecimalDigits to some value (say 3),
NumberFormat-PositivePattern to some value (say " + n"), [please note the blank spaces before and after + symbol)
In this case, if i specify the max length, then the control will consider the positive pattern also and will truncate my numeric value.
I wish to specify the maximum number of numeric digits before decimal i.e on the editValue of the control (not the max length for the value of the control).
Thanks
Tarun Singla
0
Hello Tarun Singla,
Try to use combination of these settings like MaxLength and DecimalDigits with the MinValue and MaxValue properties.
For example if you set MinValue="0" and MaxValue="9999". Then you will be able to enter only numbers with length from 1 to 4 digits.
All the best,
Vasil
the Telerik team
Try to use combination of these settings like MaxLength and DecimalDigits with the MinValue and MaxValue properties.
For example if you set MinValue="0" and MaxValue="9999". Then you will be able to enter only numbers with length from 1 to 4 digits.
All the best,
Vasil
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
0

Tarun
Top achievements
Rank 1
answered on 16 Mar 2012, 01:42 PM
Thanks Vasil. That would help me to some extent.
Regards
Tarun Singla
Regards
Tarun Singla
0

Amit
Top achievements
Rank 1
answered on 31 Aug 2012, 11:37 AM
hello,
i have the same problem but by using MinValue and MaxValue i can't prompt user . i need somthing which not allowed to enter above my set limit
i have the same problem but by using MinValue and MaxValue i can't prompt user . i need somthing which not allowed to enter above my set limit
0
Hello Amit,
You can use asp:RangeValidator to check it the value is in some Min/Max range.
Kind regards,
Vasil
the Telerik team
You can use asp:RangeValidator to check it the value is in some Min/Max range.
Kind regards,
Vasil
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.