RadMaskedEditBox value minus mask

2 posts, 0 answers
  1. Curtis
    Curtis avatar
    64 posts
    Member since:
    Oct 2014

    Posted 20 Nov 2017 Link to this post

    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!!!




  2. Dimitar
    Dimitar avatar
    2392 posts

    Posted 21 Nov 2017 Link to this post

    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.

    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