Where is the NumberControl property

3 posts, 1 answers
  1. Darren
    Darren  avatar
    57 posts
    Member since:
    May 2009

    Posted 20 May 2009 Link to this post

    Hi,

    I am using the RadNumericUpDown control and would like to use integers.  I saw the post about the NumberControl property but I can't find this property.  What am I doing wrong?

    Thanks,
    Darren
  2. Answer
    Valeri Hristov
    Admin
    Valeri Hristov avatar
    2252 posts

    Posted 21 May 2009 Link to this post

    Hi Darren ,

    Could you please send me a link to the blog post about the NumberControl property? I was not able to find it.

    To display integers in RadNumericUpDown you need to set both NumberFormatInfo and SmallChange properties:
    System.Globalization.NumberFormatInfo format = new System.Globalization.NumberFormatInfo();
    format.NumberDecimalDigits = 0;
    RadNumericUpDown1.NumberFormatInfo = format;
    RadNumericUpDown1.SmallChange = 1;

    Note that due to limitations of the Silverlight XAML parser you cannot set the NumberFormatInfo property from XAML.

    Best wishes,
    Valeri Hristov
    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.
  3. DevCraft banner
  4. Darren
    Darren  avatar
    57 posts
    Member since:
    May 2009

    Posted 21 May 2009 Link to this post

    Ah!  Now I understand.  That worked!  Thanks again!
Back to Top