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

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

    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