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

[Solved] How to remove decimal point from RadNumericInput?

3 Answers 305 Views
Input
This is a migrated thread and some comments may be shown as answers.
Hadar Kaufman
Top achievements
Rank 1
Hadar Kaufman asked on 17 Feb 2009, 05:20 PM
when I type 30 i get: 30.00. How can I leave it 30?

3 Answers, 1 is accepted

Sort by
0
Dimo
Telerik team
answered on 17 Feb 2009, 05:37 PM
Hello Hadar,

Please refer to this help article for all the information you need:

http://www.telerik.com/help/aspnet-ajax/input_radnumerictextboxformatting.html

Kind regards,
Dimo
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.
0
AJ
Top achievements
Rank 1
answered on 16 Jun 2009, 12:18 PM
A slightly different twist on this. Is there any way to prevent the user from entering the decimal point when he's typing the numer in? Sort of the way the numeric textbox prevents alpha chars from being entered.

thanks
0
Iana Tsolova
Telerik team
answered on 16 Jun 2009, 12:33 PM
Hello AJ,

You can handle the OnKeyPress client-side event of RadNumericTextBox and cancel the input if the pressed key is the undesired one.

I hope this helps.

Regards,
Iana
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
Input
Asked by
Hadar Kaufman
Top achievements
Rank 1
Answers by
Dimo
Telerik team
AJ
Top achievements
Rank 1
Iana Tsolova
Telerik team
Share this question
or