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.
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI