RadMaskCurrencyInput default value

3 posts, 0 answers
  1. Marc Roussel
    Marc Roussel avatar
    429 posts
    Member since:
    Dec 2009

    Posted 07 Feb 2014 Link to this post


    Attached shows what we got as default when using the RadMaskCurrencyInput.  My customer requests that when the user press Enter it reverts to this same state which is zero as 0.00 and the cursor placeed at the same place  but I've been unsuccessful to have the state back to default after the user have entered an amount and pressed enter.

    I tried

    ​rmciAmount.Value = 0;

    But this makes the control not having the 0 and the cursor is at the beginning.  So what do I have to do to have the default state of the control after the user entered a value and pressed enter.

    Thank you

  2. Marc Roussel
    Marc Roussel avatar
    429 posts
    Member since:
    Dec 2009

    Posted 07 Feb 2014 in reply to Marc Roussel Link to this post

    With the following code I get the default value all right but the cursor is placed before the dollar sign huh ?

    ​Dispatcher.BeginInvoke(() =>
         rmciAmount.Value = 0;
  3. DevCraft banner
  4. Petar Mladenov
    Petar Mladenov avatar
    2891 posts

    Posted 11 Feb 2014 Link to this post

    Hi Marc,

    Could you please try setting SelectionOnFocus property to Unchanged and let us know if this works in your scenario ? If not, you can also try setting the SelectionStart property manually in the Dispatcher body.

    Petar Mladenov

    Check out the new Telerik Platform - the only modular platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native apps. Register for the free online keynote and webinar to learn more about the Platform on Wednesday, February 12, 2014 at 11:00 a.m. ET (8:00 a.m. PT).

Back to Top