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

2 posts, 0 answers
  1. kirillkostko
    kirillkostko avatar
    1 posts
    Member since:
    Aug 2014

    Posted 29 Aug 2014 Link to this post

    If set only digits in the data-mask attribute (for example data-mask="00000"), widget doesnt work. You can check it by link —
    How it can be fixed? Thank you!

    Best regards,
  2. Georgi Krustev
    Georgi Krustev avatar
    3747 posts

    Posted 01 Sep 2014 Link to this post

    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.

    Georgi Krustev
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Back to Top