RadNumericTextBox Change DecimalDigits ClientSide

2 posts, 0 answers
  1. Caleb Sandfort
    Caleb Sandfort avatar
    38 posts
    Member since:
    Mar 2008

    Posted 02 Feb 2010 Link to this post

    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
  2. Caleb Sandfort
    Caleb Sandfort avatar
    38 posts
    Member since:
    Mar 2008

    Posted 02 Feb 2010 Link to this post

    $find(clientId).UpdateDisplayValue() does the trick.
Back to Top