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

    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.
  2. Georgi Krustev
    Admin
    Georgi Krustev avatar
    3707 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.

    Regards,
    Georgi Krustev
    Telerik
     
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
     
  3. Kendo UI is VS 2017 Ready
Back to Top