Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / Silverlight > NumericUpDown > Restrict the maxlenght number

Not answered Restrict the maxlenght number

Feed from this thread
  • David Cardona avatar

    Posted on Apr 13, 2011 (permalink)

    Hello.

    I see that this control has the property "Maximum" but I need specify a MaxLenght number value, for example a max lenght of three digits only must to allow entry a number with  ###  format.

    May you help me?

    Reply

  • Dani Dani admin's avatar

    Posted on Apr 15, 2011 (permalink)

    Hello David,

    Please, check our online help article of RadNumericUpDown on Formatting. You can use NumberFormatInfo.NumberDecimalDigits to control the display value of RadNumericUpDown.

    Best wishes,
    Dani
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items

    Reply

  • David Cardona avatar

    Posted on Apr 15, 2011 (permalink)

    Hello Dani,

    The NumberDecimalDigits  only allow specify the Decimal format, I need to limit the integer part of a number.

    Thank you

    Reply

  • Dani Dani admin's avatar

    Posted on Apr 20, 2011 (permalink)

    Hi David,

    It is not possible to limit the input of RadNumericUpDown at the time it is being input. You can use the Minimum and Maximum properties to limit the RadNumericUpDown value when the user has finished editing. And you can wire up some DataValidation logic as shown in this online example.

    To accomplish the input length validation, I would suggest that you try using the RadMaskedInputTextBox, instead.

    I hope this helps.

    Regards,
    Dani
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items

    Reply

Back to Top

Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / Silverlight > NumericUpDown > Restrict the maxlenght number
Related resources for "Restrict the maxlenght number"

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