Setting decimal places and accessing in code behind

2 posts, 1 answers
  1. Merlin
    Merlin avatar
    15 posts
    Member since:
    Feb 2013

    Posted 26 Feb 2013 Link to this post

    I have a Radnumerictextbox and i want to enter values with 2 decimal places. Also how to access these values with decimal place in code behind?
    Thank you,
  2. Answer
    Princy avatar
    17421 posts
    Member since:
    Mar 2007

    Posted 26 Feb 2013 Link to this post

    Hello Merlin,

    Try setting the NumberFormat-DecimalDigits property of the RadNumericTextBox to accept a desired number of decimal places.

    To access the value in code behind, please have a look at the following code.

    double _value1 = Convert.ToDouble(RadNumbericTextBox1.Text);

  3. DevCraft R3 2016 release webinar banner
Back to Top