Masked textbox formatting for a readonly grid column

2 posts, 0 answers
  1. Felipe
    Felipe avatar
    3 posts
    Member since:
    Oct 2012

    Posted 21 Aug 2014 Link to this post


    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. 

    Please note one constrain, I'd like to avoid using a Template function for defining the format, as suggested in

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

  2. Georgi Krustev
    Georgi Krustev avatar
    3747 posts

    Posted 25 Aug 2014 Link to this post

    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.

    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