This is a migrated thread and some comments may be shown as answers.

MaskedTextbox allows alphabets

1 Answer 74 Views
MaskedTextBox
This is a migrated thread and some comments may be shown as answers.
YM
Top achievements
Rank 1
YM asked on 12 Jan 2018, 05:35 PM

MaskedTextbox allows alphabets even after setting maskType a below

@(Html.Kendo().MaskedTextBox().Name("PostalCode").Mask("000000").Value(Model.PostalCode).HtmlAttributes(new { @class = "form-control", @maxLength = "6" }))

1 Answer, 1 is accepted

Sort by
0
Georgi
Telerik team
answered on 16 Jan 2018, 08:56 AM
Hi Sameer,

I have tested the described behavior on my end using the provided configuration. However, the MaskedTextBox does not allow any alphabets. 

Please refer to the following screencast which demonstrates how does the MaskedTextBox behave on my end:


Attached you will find the sample I used to replicate the issue. Could you please examine it and let me know what I am missing?

I look forward to your reply.


Regards,
Georgi
Progress Telerik
Try our brand new, jQuery-free Angular components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Tags
MaskedTextBox
Asked by
YM
Top achievements
Rank 1
Answers by
Georgi
Telerik team
Share this question
or