如何在控件中显示十进制值?(How to display Decimal value in control?)

编程入门 行业动态 更新时间:2024-10-28 18:22:52
如何在控件中显示十进制值?(How to display Decimal value in control?)

我使用telerik:radnumerictextbox控件给出十进制输入,我需要输入十进制十进制输入,但radnumerictextbox默认显示值10.00,如何设置属性获取十进制值。

这是我在客户端使用的代码。

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

提前致谢。

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.

最满意答案

尝试这个

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

有关RadNumericTextBox更多信息,请访问此处 。

Try this

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

For more on RadNumericTextBox visit here.

更多推荐

radnumerictextbox,十进制,using,decimal,电脑培训,计算机培训,IT培训"/> <meta name

本文发布于:2023-07-19 02:40:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1171487.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:控件   如何在   十进制值   control   Decimal

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!