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

RadNumericTextBox Change DecimalDigits ClientSide

1 Answer 62 Views
Input
This is a migrated thread and some comments may be shown as answers.
Caleb Sandfort
Top achievements
Rank 1
Caleb Sandfort asked on 02 Feb 2010, 07:46 PM
Hi

I have a RadNumericTextBox and a dropdownlist with the options of 0 and 2.

In the onSelectionChanged javascript event of the dropdownlist I set the number of DecimalDigits on the RadNumericTextBox to the selected value.

$find(clientId).get_numberFormat().DecimalDigits = 2;

This works, but the display of the RadNumericTextBox is not updated.  So if I currently have 5.55 in the box and and switch the dropdownlist to 0, the box will still show 5.55.  If I then click in the box and click out, it will show 5.

Is there a way to make the display update when i change the DecimalDigits property, and not require that it gets focus?

Thank You

1 Answer, 1 is accepted

Sort by
0
Caleb Sandfort
Top achievements
Rank 1
answered on 02 Feb 2010, 07:59 PM
$find(clientId).UpdateDisplayValue() does the trick.
Tags
Input
Asked by
Caleb Sandfort
Top achievements
Rank 1
Answers by
Caleb Sandfort
Top achievements
Rank 1
Share this question
or