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

Set only digits in the data-mask attribute — widget doesn't work.

1 Answer 72 Views
MaskedTextBox
This is a migrated thread and some comments may be shown as answers.
kirillkostko
Top achievements
Rank 1
kirillkostko asked on 29 Aug 2014, 07:03 PM
Hello!
If set only digits in the data-mask attribute (for example data-mask="00000"), widget doesnt work. You can check it by link — http://dojo.telerik.com/uFEb/2
How it can be fixed? Thank you!

Best regards,
Kirill.

1 Answer, 1 is accepted

Sort by
0
Georgi Krustev
Telerik team
answered on 01 Sep 2014, 09:35 AM
Hello ,

The data-mask value will be considered as a Number and hence it will not be set correctly to the mask option which works only with strings. What I would suggest you is to use 'mask' MVVM binder that will set the mask value of the widget dynamically. Here is a Dojo demo which uses exactly the same approach.

Regards,
Georgi Krustev
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
Tags
MaskedTextBox
Asked by
kirillkostko
Top achievements
Rank 1
Answers by
Georgi Krustev
Telerik team
Share this question
or