Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / WPF > MaskedTextBox > Formatting of Numeric Values in RadMaskedTextBox

Not answered Formatting of Numeric Values in RadMaskedTextBox

Feed from this thread
  • Nemanja avatar

    Posted on Apr 3, 2012 (permalink)

    Hi,

    We're having some trouble getting the right mask settings for our numeric input fields. I've had a look at all the documentation and i'm still not quite sure what the best way to achieve what we're trying to do is.

    We have input fields that accept integer values, but these values are quite often quite large and we need them to be formatted with spaces after every 3 numbers.

    Up to now we have used the n0 mask because it reproduces this behaviour, but we get really funny behaviour with this input in that when you focus onto the textbox and begin to type immediately, it seems to get confused and the input jumps all over the place and it becomes difficult to enter meaningful values.

    i know that the 'd' mask is actually the integer input mask, but with this mask we don't get the spaces in between large numbers.

    is there perhaps a string formatting property on the textbox that can help us format the way 'd' mask values are shown?

    right now we have a choice between two unsatisfactory alternatives:
    1. n0 mask - ### ### ### (good format but inconsistant input)
    or
    2. d mask - ######### (perfect input but incorrect formatting)

    Regards,
    Nemanja

    Reply

  • Tina Stancheva Tina Stancheva admin's avatar

    Posted on Apr 4, 2012 (permalink)

    Hello,

    Unfortunately the RadMaskedTextBox control has many known limitations that are caused by its implementation. And this makes them hard, if not impossible, to workaround.

    This is why it would be better to take advantage of the new MaskedInput suite of controls instead. It provides a specific MaskedNumericInput control that implements the required functionality out-of-the-box. You can find more information about its functionality and features in our online documentation and examine a basic demo solution here.

    Please try the new controls and let us know if you can use them in your application instead of the RadMaskedTextBox control.

    Regards,
    Tina Stancheva
    the Telerik team
    Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>

    Reply

  • Say Hello to Telerik's PivotGrid for ASP.NET AJAX, Silverlight, WPF and WinForms. Now packed with OLAP support.

Back to Top

Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / WPF > MaskedTextBox > Formatting of Numeric Values in RadMaskedTextBox
Related resources for "Formatting of Numeric Values in RadMaskedTextBox"

WPF MaskedTextBox Features  |  Documentation  |  Demos  |  Telerik TV  |  Self-Paced Trainer  ]