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

MaskedTextBox ClearPromptChar(true) NOT WORKS in Grid

1 Answer 72 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Chris
Top achievements
Rank 1
Veteran
Iron
Iron
Chris asked on 28 May 2018, 03:35 AM

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

 

 

1 Answer, 1 is accepted

Sort by
0
Viktor Tachev
Telerik team
answered on 29 May 2018, 11:54 AM
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.
Tags
Grid
Asked by
Chris
Top achievements
Rank 1
Veteran
Iron
Iron
Answers by
Viktor Tachev
Telerik team
Share this question
or