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

RadMaskedEditBox value minus mask

1 Answer 200 Views
MaskedEditBox
This is a migrated thread and some comments may be shown as answers.
Curtis
Top achievements
Rank 1
Iron
Iron
Veteran
Curtis asked on 21 Nov 2017, 04:36 AM

It's really not that complicated to manually remove "mask" characters from a string but I was curious if this control already has this ability built in?

Here's an example:

assume ctrl = RadMaskedEditBox

ctrl.Mask = "00000-9999"

ctrl.Text = "_____-____"

ctrl.MaskType = Standard

 

If the user gets to this input box and types in "12345" and I check ctrl.Value I get this: "12345-____" when what I really want is "12345"

If I'm missing something, please advise otherwise, i'll just grunt my way through it :)

Thanks everyone!!!

-Curtis

 

 

1 Answer, 1 is accepted

Sort by
0
Dimitar
Telerik team
answered on 21 Nov 2017, 08:43 AM
Hello Curtis,

The TextMaskFormat property controls this. In addition please use the Value property to retrieve the value.

Should you have any other questions do not hesitate to ask.

Regards,
Dimitar
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
MaskedEditBox
Asked by
Curtis
Top achievements
Rank 1
Iron
Iron
Veteran
Answers by
Dimitar
Telerik team
Share this question
or