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
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.
Alex Fidanov
the Telerik team
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 >>
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
>
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.
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.
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.
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.
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.