在我看来
,我对选择的每种类型的值都使用了一个屏蔽文本框。例如数字(15 位数字(或双数字 (000/000(。
**Here is the code js:**
// Type bi-numeric
if (_$ddlTypeValeurs.val() == "3") {
$("input[name = 'Test.Min']").kendoMaskedTextBox(
{
mask: "000/000",
clearPromptChar: true
});
}
else {
$("input[name = 'Test.Min']").kendoMaskedTextBox(
{
mask: "00000000000",
clearPromptChar: true
});
If I choose the bi-numeric type, the Maskedtextebox zone is well formatted at 123/456 or 12/12...
But when I have to raise a value in my base (eg 90/12), the Maskedtextebox displays a value: 901/2 in the place 90/12 :(
**How I can solve this problem ?**
Thanks,
您必须使用 9 作为数字或空格:https://docs.telerik.com/kendo-ui/api/javascript/ui/maskedtextbox/configuration/mask
您的面罩应如下所示:
{
mask: "009/009",
clearPromptChar: true
}
9 在最后,如果你不希望它是强制性的。