Use "k" as shorthand for thousands

2 posts, 0 answers
  1. Scott Waye
    Scott Waye avatar
    144 posts
    Member since:
    Nov 2009

    Posted 18 Nov 2016 Link to this post


    I'm using the RadMaskedCurrencyInput in a no mask scenario (Mask="") and I want to allow the users to type "1k" and get the value pushed back to the underlying viewmodel as 1000.  I've looked at the source code and the available overrides, and I can't see a suitable place to achieve this.  Any ideas?


  2. Peshito
    Peshito avatar
    505 posts

    Posted 23 Nov 2016 Link to this post

    Hi Scott ,

    The RadMaskedCurrencyInput is made to accept digits and this is why I would suggest you to use RadMaskedTextInput control. In order to push back the value you have entered multiplied by 1000 when "k" is typed, simply use a converter for the MaskedTextInput's Value property. Depending on the input if it ends with "k" return the value you would expect.

    Hope this helps.

    Telerik by Progress
    Do you need help with upgrading your AJAX, WPF or WinForms project? Check the Telerik API Analyzer and share your thoughts.
Back to Top