【问题标题】:Kendo Template using kendoNumericTextBox使用 kendoNumericTextBox 的剑道模板
【发布时间】:2019-11-05 08:50:18
【问题描述】:

我正在使用剑道模板弹出窗口进行网格编辑,我想使用kendoNumericTextBox 进行输入验证,知道该怎么做吗? DEMO DOJO

$('#percentage').kendoNumericTextBox({
    spinners: false,
    restrictDecimals: true,
    round: false
});

【问题讨论】:

  • 这就是你想要的吗? dojo.telerik.com/IYUYIBaC/10
  • @DavidShorthose 我添加data-format="#" 并给我错误。知道为什么吗?我不想要任何十进制值。
  • 所以剑道模板世界中的#是一个特殊字符,需要使用\` so for your example you would need to do data-format="\\#"`进行转义

标签: kendo-ui kendo-template


【解决方案1】:

格式:“c0”是正确的格式

$("#percentage").kendoNumericTextBox({
   format: "c0"
});

Documentation

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2016-06-06
    • 2013-01-28
    • 1970-01-01
    • 2015-02-26
    • 1970-01-01
    • 1970-01-01
    • 2014-08-07
    相关资源
    最近更新 更多