This is a migrated thread and some comments may be shown as answers.

Can't configure CurrencyInput like MaskedTextBox

3 Answers 88 Views
MaskedInput (Numeric, DateTime, Text, Currency)
This is a migrated thread and some comments may be shown as answers.
Randy
Top achievements
Rank 1
Randy asked on 23 Jun 2011, 07:08 AM
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.

3 Answers, 1 is accepted

Sort by
0
Alex Fidanov
Telerik team
answered on 23 Jun 2011, 08:14 AM
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
0
Randy
Top achievements
Rank 1
answered on 23 Jun 2011, 06:18 PM
I am using the latest internal build.
0
Tina Stancheva
Telerik team
answered on 28 Jun 2011, 05:42 PM
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
Tags
MaskedInput (Numeric, DateTime, Text, Currency)
Asked by
Randy
Top achievements
Rank 1
Answers by
Alex Fidanov
Telerik team
Randy
Top achievements
Rank 1
Tina Stancheva
Telerik team
Share this question
or