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

OnKeyPress Decimal format RadNumericTextBox

1 Answer 53 Views
Input
This is a migrated thread and some comments may be shown as answers.
Grant
Top achievements
Rank 1
Grant asked on 12 Aug 2014, 11:39 AM
Hi 

Is it possible to format the RadNumericTextBox onkeypress with two decimal places?

This text box requires users to enter amounts.

Grant

  

1 Answer, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 13 Aug 2014, 03:53 AM
Hi Grant,

Please try the below JavaScript code snippet to achieve your scenario.

JavaScript:
function decimalFormats(sender, args) {
    sender._numberFormat.DecimalDigits = 3;
}

Thanks,
Shinu.
Tags
Input
Asked by
Grant
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Share this question
or