Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / Silverlight > MaskedTextBox > Unlimited precision decimal

Not answered Unlimited precision decimal

Feed from this thread
  • Justin Lee Intermediate avatar

    Posted on Oct 7, 2011 (permalink)

    I'm using a RadMaskedTextBox to allow the user to view and edit a number.  I don't want to limit the precision of the number they enter, so they could enter 10.23452345234.  Is there a way to allow this using the RadMaskedTextBox?  If not, I could probably get by with allowing only 6 decimal places (n6).  However, n6 will display 10.1 as 10.100000, which I don't want.  I would want the same result as ToString("0.######").

    I've also tried using the RadNumericUpDown but couldn't get the result I wanted either.

    Thanks,
    Justin

    Reply

  • Petar Mladenov Petar Mladenov admin's avatar

    Posted on Oct 12, 2011 (permalink)

    Hi Justin Lee,

     Currently, this cannot be achieved int the RadMaskedTextBox or RadMaskedNumericInput. We have previously logged a feature request related and you can vote for it here.
    In the NumericInput , you can set PlaceHolder=" " and Mask="n2.6" and then, when you select the text in the control, you will be able to put 10,1 and no more zeros will occur on the right. Unfortunately, initially (when the control loads) the zeros will occur.
    Please let us know if you need more info on this.

    Kind regards,
    Petar Mladenov
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

    Reply

Back to Top

Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / Silverlight > MaskedTextBox > Unlimited precision decimal
Related resources for "Unlimited precision decimal"

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