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

Masked textbox formatting for a readonly grid column

1 Answer 263 Views
MaskedTextBox
This is a migrated thread and some comments may be shown as answers.
Felipe
Top achievements
Rank 1
Felipe asked on 22 Aug 2014, 12:07 AM
Hi, 

There is already a post explaining how to use the new  masked textbox control for inline editing, however our needs are a little bit different.

Is there a way to use the masked textbox for formatting a phone number in a readonly grid? Kendo custom formats don't support phone formatting.

For the example below, (which also supports reordering the grid rows), we'd like to have the same appearance as in the attached image.
http://jsbin.com/teqidida/7/edit 


Please note one constrain, I'd like to avoid using a Template function for defining the format, as suggested in http://www.telerik.com/forums/kendo-tostring-not-working-as-expected

Thanks, I'll appreciate if you can point me to the right direction.

-Felipe.

1 Answer, 1 is accepted

Sort by
0
Georgi Krustev
Telerik team
answered on 25 Aug 2014, 11:40 AM
Hello Felipe,

Currently, the only way to accomplish your goal is to use a column template and format the value manually.
Please note that kendo.toString does not support masking. Also Kendo UI MaskedTextBox is a widget which requires an input element to function correctly.
As a side note, you can share your requirement in our Feedback portal. Thus we will be able to gather community feedback about it.

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
Felipe
Top achievements
Rank 1
Answers by
Georgi Krustev
Telerik team
Share this question
or