I am using Kendo masked text box widget to mask the input. The input should be of form
HR-D001-XXXX where "001" should actually be "001" and user shouldn't be able to write or edit that part of the field. The "XXXX" should be any four digits (that…
I've setup the following custom rule in a Kendo UI MaskedTextBox:
rules: {
"~": /[0-9#]/
}
I thought this would allow 0-9 or # in the field, but the mask text of ~ shows up and the masked box won't let me enter anything.
Where am I going…
I need to use kendoMaskedTextBox to allow user type 3-4 numbers and prevent to type more. And I don't want to get spaces in value.
When user enters 123, I need to get 123. I don't want to get 123_.
I need to get it as value, because I'm using…
After submitting the form to the controller, the MaskedTextBoxFor inputs lose their values if the view returns from controller while all the other values (textboxdor, dropdownlistfor) remain as they are submitted. So, how to make MaskedTextBoxFor…
I'm trying to create masked textbox, where you are able to type in maximum 24:00, but I can't make the regex dependent on each other. Now i'm able to type in ex. 25:00. If the first char is 2 I need only to be able to type in < 5. Can anyone…
I have a Kendo MaskedTextBox that is shown below.
@(Html.Kendo().MaskedTextBox()
.Name("kendoMaskedTextBox1")
.Rules(rules =>
{
rules.Add('0', "/[0]{1}[1]{1}/");
})
.Mask("00/00/0000")
)
My question is how can I add…
I need to build a mask where some charachters are fixed, like a number where the user have to specify last three digits.
How can I escape the "0" default mask behaviour?
the docs says to use backslash character, but I can't figure out how it should…
I want to globally assign a REGULAR EXPRESSION to a Kendo MaskedTextBox using JavaScript...but cannot get Kendo to 'recognize' the pattern(s).
Q: How do you use Regex in a Kendo MaskedTextBox?
...everything I have tried fails.
SAMPLE…