Can't configure CurrencyInput like MaskedTextBox

4 posts, 0 answers
  1. Randy
    Randy avatar
    50 posts
    Member since:
    Aug 2010

    Posted 23 Jun 2011 Link to this post

    I am using RadMaskedTextBox and it works perfectly with the exception that sometimes when the field becomes active, the user cannot type anything in the field.  So I am trying to configure RadMaskedCurrencyInput the exact same way and I am having a bunch of problems.

    What I really am looking for is a basic textbox with currency formatting.  This is what I was using:

    <telerik:RadMaskedTextBox Value="{Binding TermPremium, Mode=TwoWay}"
    HorizontalAlignment="Right" MaskType="Numeric" Mask="c" MinWidth="80"/>

    So this is my attempt:
    <telerik:RadMaskedCurrencyInput Value="{Binding TermPremium, Mode=TwoWay}"
    HorizontalAlignment="Right" MinWidth="80" IsClearButtonVisible="False"
    UpdateValueEvent="LostFocus" FormatString="c2" SelectionOnFocus="SelectAll" TextMode="PlainText"
    InputBehavior="Insert" AutoFillZeros="False" Placeholder=" " AutoFillNumberGroupSeparators="False"
    AllowSkipPlaceholders="False" IsCurrencySymbolVisible="False"/>

    This seems to work well when you first focus on this field and there is no data in the field.  However if there is already data and it gets focus, it seems to work differently.  For example, lets say I want to enter $123.45.  That works fine the first time, but the next time you go to the field and type the same thing, it starts you at the beginning of the field and as soon as you hit the decimal point, it adds a space and becomes an invalid number. 

    I have tried different settings for the SelectionOnFocus, but I cannot get it to do what I want.  If I have data in that field and I select it, I want all of the data selected and as I type, I want the existing data replaced.  I don't want to have to worry about what position the cursor is in and if I hit the decimal point, it should treat it as such regardless of my position.

    Am I using the wrong control for what I want?  I seems like such a simple requirement.
  2. Alex Fidanov
    Admin
    Alex Fidanov avatar
    636 posts

    Posted 23 Jun 2011 Link to this post

    Hello Randy,

    What build are you using to test this? I believe we had such an issue but we resolved it. I am testing this with the latest internal build and this works correctly. I apologize for the inconvenience.

    Greetings,
    Alex Fidanov
    the Telerik team
    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 Public Issue Tracking system and vote to affect the priority of the items
  3. DevCraft banner
  4. Randy
    Randy avatar
    50 posts
    Member since:
    Aug 2010

    Posted 23 Jun 2011 Link to this post

    I am using the latest internal build.
  5. Tina Stancheva
    Admin
    Tina Stancheva avatar
    3298 posts

    Posted 28 Jun 2011 Link to this post

    Hello Randy,

    Thank you for getting back to us. I prepared a sample project to test the issue using the RadControls_for_Silverlight_4_2011_1_0620 internal build. However, I wasn't able to reproduce the issue on our side.

    Can you please have a look at the project and let me know if it works on your side or if I am missing something? Thank you in advance.

    Greetings,
    Tina Stancheva
    the Telerik team
    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 Public Issue Tracking system and vote to affect the priority of the items
Back to Top