All Telerik .NET tools and Kendo UI JavaScript components in one package. Now enhanced with:
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.
Html.Kendo().MaskedTextBoxFor(a => a.Postnummer)
.Rules(rules => { rules.Add(
'~'
,
"/[1-9]/"
); })
.Mask(
"~0000"
))