Why can I only input 3 digits - RadMaskedCurrencyInput

3 posts, 1 answers
  1. Patrick
    Patrick avatar
    5 posts
    Member since:
    Oct 2012

    Posted 18 Aug 2015 Link to this post

     When I use this control or the numeric control I can only type 3 digits and 2 are positioned after the decimal, if I keep typing digits it just overwrites the last decimal place.  Initial value is zero, decimal property, version 2015.2.623.45.

    <telerik:RadMaskedCurrencyInput Width="100"
                                    Value="{Binding TotalAmount}"
                                    VerticalAlignment="Top" />

    public decimal TotalAmount
            return workDetail.Total;
            if (workDetail.Total != value)
                workDetail.Total = value;
  2. Answer
    Peshito avatar
    497 posts

    Posted 19 Aug 2015 Link to this post

    Hi Patrick,

    This behavior is caused by the InputBehavior property. If set to "Replace" it replaces the text from the first position which in the current  scenario is left from the separator ( . ) symbol and then replaces the value on separator's right side.

    I would recommend you to use the "Insert" InputBehavior. This way the values will be inserted where the cursor is.

    The "Replace" value is the preferred way in scenarios where the textbox space is limited.

    AutoFillZeros = True could also support the Replace mode because you will be able to replace the auto filled zeros when typing. You can see this in action using our online demo example here.

    Hope this helps.

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
  3. UI for WPF is Visual Studio 2017 Ready
  4. Patrick
    Patrick avatar
    5 posts
    Member since:
    Oct 2012

    Posted 19 Aug 2015 in reply to Peshito Link to this post

    Ok, thanks that fixed it.  
Back to Top