RadMaskedCurrencyInput without Placeholder chars/mask?

10 posts, 0 answers
  1. gk
    gk avatar
    24 posts
    Member since:
    Jul 2010

    Posted 02 Mar 2011 Link to this post

    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.



  2. Alex Fidanov
    Admin
    Alex Fidanov avatar
    636 posts

    Posted 03 Mar 2011 Link to this post

    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!
  3. DevCraft banner
  4. Alex
    Alex avatar
    1 posts
    Member since:
    Jun 2011

    Posted 26 Jan 2012 Link to this post

    Hi, what about this functionality now?


  5. Petar Mladenov
    Admin
    Petar Mladenov avatar
    2891 posts

    Posted 31 Jan 2012 Link to this post

    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 >>

  6. danparker276
    danparker276 avatar
    389 posts
    Member since:
    Aug 2010

    Posted 07 Sep 2012 Link to this post

    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>
  7. Petar Mladenov
    Admin
    Petar Mladenov avatar
    2891 posts

    Posted 12 Sep 2012 Link to this post

    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.

  8. danparker276
    danparker276 avatar
    389 posts
    Member since:
    Aug 2010

    Posted 12 Sep 2012 Link to this post

    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.
  9. Petar Mladenov
    Admin
    Petar Mladenov avatar
    2891 posts

    Posted 17 Sep 2012 Link to this post

    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.

  10. danparker276
    danparker276 avatar
    389 posts
    Member since:
    Aug 2010

    Posted 17 Sep 2012 Link to this post

    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.
  11. Petar Mladenov
    Admin
    Petar Mladenov avatar
    2891 posts

    Posted 20 Sep 2012 Link to this post

    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.

Back to Top
DevCraft banner