Display integer value

2 posts, 0 answers
  1. ayala
    ayala avatar
    7 posts
    Member since:
    Feb 2009

    Posted 25 Feb 2009 Link to this post


    I used your NumericUpDown control,
    It's great control!!!

    The display value now is a Double value, I want to display an integer value.

    How can I do it?  
  2. Hristo Borisov
    Hristo Borisov avatar
    298 posts

    Posted 25 Feb 2009 Link to this post

    Hi ayala,

    Depending on your ValueFormat property you can set the NumberFormatInfo.NumberDecimalDigits to 0. If your ValueFormat is set to percentage or currency you may set the NumberFormatInfo.PercentageDecimalDigits or NumberFormatInfo.CurrencyDecimalDigits to 0. I hope this will resolve your issue. Thank you for contacting us.

    Sincerely yours,
    Hristo Borisov
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
Back to Top