Is there a form to put a 'label for' on a old version @(Html.Kendo().TextBox() 2015.1.429.545?
It has not the .label prop
Thanks
Sergio
Hi,
I discovered a problem with ClearPromptChar configuration. When I set ClearPromptChar to true, I expect that the mask signs should not be in the output. I.e. when I define mask 000-000 and insert 123-456 into the MaskedTextBoxFor the output should be 123456. I would like to avoid removing "-" manually.
Example available at: http://dojo.telerik.com/aTEROJIG/3
Should it work as I expected or I misunderstood?
Thanks,
Tomas.
Hello,
I am trying to add (css: border-color:red) to MaskedTextBox when field is required on submit function but I couldn't find this class. What is name of this class?
Also, I need to remove this class if the customer click on Save button that can skip validations.
Thank you for help.
Hello,
I need to validate user input for ipv4 adress. I am using maskedtextbox. How can i set mask property of maskedtextbox?
I write this code but it doesn't work. ?
<body>
<input id="maskedtextbox" />
<script>
$("#maskedtextbox").kendoMaskedTextBox({
mask: "~",
rules: {
"~":((25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)
}
});
</script>
</body>
I have a five digit postal code and want to exclude zero as first character and only allow numeric values.
Html.Kendo().MaskedTextBoxFor(a => a.Postnummer)
.Rules(rules => { rules.Add('0', "/[1-9]/"); })
.Mask("00000"))
not working, cant type in 0 at all.
We have what SHOULD be a simple SSN entry field:
@Html.Kendo().MaskedTextBoxFor(model => model.SSN).Mask("000-00-0000").UnmaskOnPost(true).HtmlAttributes(new { @class = "form-control", style = "width:125px" })
The problem we're having is that if we leave some digits not filled in (i.e. - "555-33-2"), no error is thrown. Aren't the 0s supposed to be required digits?
Also, we have a regex attribute on the field in the model, for validations when NOT using the edit form (seeds, etc.). We're planning to disable it by adding the Html attribute @data_val = "false". Will that prevent the maskedtextbox from doing its work?
Not sure that the MaskedTextBox is the right control to use
for this, but here goes:
I need to have an input for an email address that:
A) Is a hyperlink to start an email with displayed email
address as the "To:" address.
AND
B) Allow the user to edit the email address if they so
desire.
So, first, I need to have it appear as a link that can be
edited,
Second, I need to know what I would use for a mask (assuming
that this is the right control for this)
Can anyone point me in the right directions?
TIA,
Bob Mathis
Hello everyone,
Is it possible to remove the "k-textbox" class from MaskedTextBox? I have my own Bootstrap/Material Design input class.
<div class="form-group form-group-material-light-blue">
@(Html.Kendo().MaskedTextBox()
.Name("phone_number")
.Mask("(999) 000-000-000")
.HtmlAttributes(new {@class = "form-control floating-label mdc-text-grey-700"})
)
</div>
But still after the page renders "k-textbox" gets added automatically.
Please advice,
Alex