MaskedTextBox ClearPromptChar(true) NOT WORKS in Grid

2 posts, 0 answers
  1. Chris
    Chris avatar
    119 posts
    Member since:
    Oct 2015

    Posted 27 May 2018 Link to this post

    HI

    I have found that MaskedTextBox ClearPromptChar(true) NOT WORKS in Grid/EditorTemplates*.

    Is there have any solution ?

    *see attachment.

    *Telerik DevCraft R2 2017 SP1.

    Best regards

    Chris

     

     

  2. Viktor Tachev
    Admin
    Viktor Tachev avatar
    2491 posts

    Posted 29 May 2018 Link to this post

    Hi Chris,

    In order to remove the prompt characters I would suggest handing the Grid save event. In the handler you can check the modified field and remove any prompt characters that are left.


    The approach from the example is applicable also for the MVC wrappers. The only difference would be how the event handler is attached:

    .Events(e=>e.Save("onSave"))

    Give the approach a try and let me know how it works for you.

    Regards,
    Viktor Tachev
    Progress Telerik
    Try our brand new, jQuery-free Angular components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Back to Top