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

Only integer in Kendo numeric text box

2 Answers 3370 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Pritee
Top achievements
Rank 1
Pritee asked on 20 Jul 2018, 02:18 AM
How to restrict to have only interger in kendonumeric text box , do not allow user to enter decimal(.)

2 Answers, 1 is accepted

Sort by
0
Daniel
Telerik team
answered on 23 Jul 2018, 07:23 AM
Hello,

You can use the decimals option for this purpose.

Regards,
Daniel
Progress Telerik
Try our brand new, jQuery-free Angular components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
0
Aabhar
Top achievements
Rank 1
Iron
answered on 01 Dec 2022, 04:10 AM

Hi,

If you want to show only decimal in numeric-textbox then you can use an attribute called "format".
it works like:

format="n"      -> show up only decimals
format="n1"     -> show up number upto 1 decimal point
format="n2"     -> show up number upto 2 decimal point

and so on.

Tags
General Discussions
Asked by
Pritee
Top achievements
Rank 1
Answers by
Daniel
Telerik team
Aabhar
Top achievements
Rank 1
Iron
Share this question
or