在我看来,我为每种选择的值使用了maskedtextbox。例如数字(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,
答案 0 :(得分:0)
你必须使用9作为数字或空格: https://docs.telerik.com/kendo-ui/api/javascript/ui/maskedtextbox/configuration/mask
你的面具应该是这样的:
{
mask: "009/009",
clearPromptChar: true
}
如果您不希望强制要求,请在最后9点结束。