Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to display Decimal value in <telerik:radnumerictextbox> control?

I am using telerik:radnumerictextbox control for giving decimal input, I need to give input in decimal like 10, but radnumerictextbox displays value by default 10.00, how to set the property to get decimal value.

This is the code i am using in client side.

<telerik:radnumerictextbox 
        ID="txtDirectTime" 
        ShowSpinButtons="True" 
        InterceptArrowKeys="True" 
        Step="5" MinValue="0" runat="server">  

Thanks in advance.

like image 776
Lakshmitha Avatar asked Feb 19 '23 10:02

Lakshmitha


2 Answers

Try this

<telerik:RadNumericTextBox runat="server"
                           ID="YourTextBox"
                           NumberFormat-DecimalDigits="2" />

For more on RadNumericTextBox visit here.

like image 167
yogi Avatar answered Mar 09 '23 00:03

yogi


NumberFormat-GroupSeparator="" works perfectly fine.

like image 24
user2811174 Avatar answered Mar 08 '23 23:03

user2811174