Value data type

4 posts, 0 answers
  1. Hugo Aristizabal
    Hugo Aristizabal avatar
    22 posts
    Member since:
    Jan 2010

    Posted 20 Jan 2010 Link to this post

    Hi, is there a way to change the data type returrned by the NumericUpDown's value? I need it to be int, not double, because it's mapped to a database field which has an int type, and I'm getting a conversion error. Thanks.
  2. Konstantina
    Admin
    Konstantina avatar
    2332 posts

    Posted 22 Jan 2010 Link to this post

    Hello Hugo,

    Thank you for contacting us.

    You can set the data type of the NumericUpDown control to be integer by using the IsInteger property.
    <telerikInput:RadNumericUpDown x:Name="numeric" IsInteger="True"/>

    If you have further questions please feel free to contact us again.

    Greetings,
    Konstantina
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  3. UI for WPF is Visual Studio 2017 Ready
  4. Hugo Aristizabal
    Hugo Aristizabal avatar
    22 posts
    Member since:
    Jan 2010

    Posted 22 Jan 2010 Link to this post

    Thanks, I saw the property. With it set to true, will I get the value as an int, or will I stillget it as a decimal?

    Thanks again.
  5. Konstantina
    Admin
    Konstantina avatar
    2332 posts

    Posted 28 Jan 2010 Link to this post

    Hi Hugo,

    Straight to your  question.

    With property IsInteger="True" you will get the values of the NumericUpDown as an integer.

    If you have further questions please feel free to contact us again.

    All the best,
    Konstantina
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Back to Top