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

RadMaskedCurrencyInput without Placeholder chars/mask?

9 Answers 224 Views
MaskedInput (Numeric, DateTime, Text, Currency)
This is a migrated thread and some comments may be shown as answers.
gk
Top achievements
Rank 1
gk asked on 02 Mar 2011, 06:01 PM
Is there a way to use the RadMaskedCurrencyInput without having the input mask to enter a currency value?
I find it awkward to use an input mask like "$___,___,___.__" to enter an amount.
Basically I'd like it to look and behave like a RadMaskedTextBox with Mask ="c" and MaskType="Numeric"; so in essence we end up with a "PlainText" data entry/input mode for plain text or currency but benefit of the new features of the RadMaskedInput controls.
Thanks in advance.

P.S. same question as it applies to other MaskedInput types like MaskedTextInput; it's handy to consolidate all the input controls and have them share the same features set like validation, Clear button etc.



9 Answers, 1 is accepted

Sort by
0
Alex Fidanov
Telerik team
answered on 03 Mar 2011, 09:48 AM
Hi gk,

The masking functionality of the masked input controls differs from the one of the RadMaskedTextBox. The masked text box uses the standard and custom formatting strings as its mask, while the input controls use two different sets of tokens. Formatting and masking features are separated as they have different purposes. We decided to take that path as it gives us much greater control over the input, validation, navigation, mask customization (such as custom tokens, etc.).

We have already considered implementing a dynamic mask that will adjust itself based on the value of the control.This is already on our to-do list for the masked input controls.

Kind regards,
Alex Fidanov
the Telerik team
Registration for Q1 2011 What’s New Webinar Week is now open. Mark your calendar for the week starting March 21st and book your seat for a walk through all the exciting stuff we ship with the new release!
0
Alex
Top achievements
Rank 1
answered on 26 Jan 2012, 02:05 PM
Hi, what about this functionality now?


0
Petar Mladenov
Telerik team
answered on 31 Jan 2012, 11:53 AM
Hi Alex ,

 This functionality is still not implemented but you can track its progress in this PITS item.

All the best,
Petar Mladenov
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

0
danparker276
Top achievements
Rank 2
answered on 07 Sep 2012, 05:42 PM
It says it's resolved, but what's the best thing to do?  I have a textinput, but TextMode=PlainText doesn't do anything.  
I just want to do uppercase text without any underscores, and the following is working.  I just want to know if this is the right way?

<Style x:Key="UpperCodes6Mask" TargetType="telerik:RadMaskedTextInput">
    <Setter Property="Margin" Value="3 0 0 0" />
    <Setter Property="Width" Value="60" />
    <Setter Property="Height" Value="25" />
    <Setter Property="Placeholder" Value=" " />
    <Setter Property="IsClearButtonVisible" Value="False" />
    <Setter Property="TextMode" Value="PlainText" />
    <Setter Property="IsLastPositionEditable" Value="False" />
    <Setter Property="Mask" Value=">a6" />
</Style>
0
Petar Mladenov
Telerik team
answered on 12 Sep 2012, 08:05 AM
Hello Dan,

 We had some fixes in this feature recently. Could you please check out the attached project which uses your Style and our latest internal build (0910) assemblies (you can download them from your account page at www.telerik.com)? Please let us know if this is the desired behavior of the RadMaskedTextInput and your settings.

Greetings,
Petar Mladenov
the Telerik team

Time to cast your vote for Telerik! Tell DevPro Connections and Windows IT Pro why Telerik is your choice. Telerik is nominated in a total of 25 categories.

0
danparker276
Top achievements
Rank 2
answered on 13 Sep 2012, 12:01 AM
Mine is working the same as the zip file.  The only thing is that it doesn't work like a Textbox, but it might be what you intended.
I want it to work exactly like:
   <TextBox MaxLength="6" Width="60" Height="25" />

But to uppercase anything.  I can just add a keyup event to change it so it will uppercase the characters, but it's a little easier to just use the style if I can.  The major difference, is that wherever I put the mouse and click, that's where there cursor will be.  Even if it's a placeholder.  Clicking on a textbox will put the cursor at the end of text I've typed.  I think a lot of people just want to put a mask on a textbox and ignore all those other options.

If this isn't possible, I have no problems adding the keyup event to all my xaml.cs files.
0
Petar Mladenov
Telerik team
answered on 17 Sep 2012, 11:33 AM
Hello Dan,

 Could you please elaborate more on your exact requirement because we are not very sure what it is? The uppercasing works correctly in the MaskedInput, please correct us if we are wrong (in the attached project it worked fine). On the other hand, clicking on a TextBox actually places the cursor exactly where you have clicked - this makes us a little confused, we agree that in the MaskedInput (from he attached project) when there is no text written, clicking in the MaskedInput does not work the same way. Is this the issue you are describing?

Kind regards,
Petar Mladenov
the Telerik team

Time to cast your vote for Telerik! Tell DevPro Connections and Windows IT Pro why Telerik is your choice. Telerik is nominated in a total of 25 categories.

0
danparker276
Top achievements
Rank 2
answered on 17 Sep 2012, 04:42 PM
Yeah, the uppercase conversion is fine.  Like you said the issue I am describing is "we agree that in the MaskedInput (from he attached project) when there is no text written, clicking in the MaskedInput does not work the same way. "

That's they way you designed it.  I'm asking if there is an option to make it behave like a textbox and have the cursor go to the last actual position with a value.  For a text input box, I would think most people would want it to work like that anyway.  If nothing can be done I'll just add an event for all my text input boxes like that.  I'll probably be doing this 100+ times so it would be nicer if I could do it on a style sheet.
0
Petar Mladenov
Telerik team
answered on 20 Sep 2012, 03:10 PM
Hello Dan,

 We agree this is a bug in the RadMasкedInput and it cannot be currently "workarounded" with Style/Properties. We logged this in our PITS and we also updated your telerik account points as a small compensation.

Kind regards,
Petar Mladenov
the Telerik team

Time to cast your vote for Telerik! Tell DevPro Connections and Windows IT Pro why Telerik is your choice. Telerik is nominated in a total of 25 categories.

Tags
MaskedInput (Numeric, DateTime, Text, Currency)
Asked by
gk
Top achievements
Rank 1
Answers by
Alex Fidanov
Telerik team
Alex
Top achievements
Rank 1
Petar Mladenov
Telerik team
danparker276
Top achievements
Rank 2
Share this question
or