【问题标题】:My Telerik NumericTextBox is accepting all values. How can i make it to enter only numeric values我的 Telerik NumericTextBox 接受所有值。我怎样才能让它只输入数值
【发布时间】:2013-08-04 10:36:28
【问题描述】:

我的 Telerik NumericTextBox 接受所有值。 我怎样才能让它只输入数值

【问题讨论】:

  • 您的控件的确切名称是什么?据我所知,他们没有一个名为 NumericTextBox 的控件。您指的是 RadMaskedNumericInput 吗? RadMaskedNumericInput 默认只接受数字。您也可以根据需要使用 RadNumericUpDown。

标签: telerik telerik-grid


【解决方案1】:

RadNumericTextBox 中,可以更改三个 Type 选项

Currency
Number
Percent

下面的代码很适合我,

<telerik:RadNumericTextBox ID="ntxtMyNumbers" Type="Number" runat="server"   
LabelWidth="100px" NumberFormat-DecimalDigits="0" Width="100%" />

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2021-05-27
    • 1970-01-01
    • 2014-04-14
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多