This is a migrated thread and some comments may be shown as answers.

Setting decimal places and accessing in code behind

1 Answer 31 Views
Input
This is a migrated thread and some comments may be shown as answers.
Merlin
Top achievements
Rank 1
Merlin asked on 26 Feb 2013, 10:54 AM
Hi,
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,
Merlin.

1 Answer, 1 is accepted

Sort by
0
Accepted
Princy
Top achievements
Rank 1
answered on 26 Feb 2013, 11:07 AM
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.

C#:
double _value1 = Convert.ToDouble(RadNumbericTextBox1.Text);

Thanks,
Princy.
Tags
Input
Asked by
Merlin
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 1
Share this question
or