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

MVVM bind property for changing the mask

2 Answers 109 Views
MaskedTextBox
This is a migrated thread and some comments may be shown as answers.
eduardo
Top achievements
Rank 1
eduardo asked on 17 Jul 2014, 07:39 PM
Is there any way to bind my ViewModel and change the mask according to my ViewModel Property?

2 Answers, 1 is accepted

Sort by
0
Accepted
Georgi Krustev
Telerik team
answered on 18 Jul 2014, 10:39 AM
Hello eduardo,

Currently, the MaskedTextBox widget does not have built-in MVVM mask binding, but you can easily add one and update the mask of the widget dynamically. Here is a simple Dojo demo, which shows how to accomplish this.

Regards,
Georgi Krustev
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
0
eduardo
Top achievements
Rank 1
answered on 18 Jul 2014, 12:58 PM
Thank you, it worked like a charm :)
Tags
MaskedTextBox
Asked by
eduardo
Top achievements
Rank 1
Answers by
Georgi Krustev
Telerik team
eduardo
Top achievements
Rank 1
Share this question
or