RadMaskedNumericInput mask

12 posts, 0 answers
  1. Ken
    Ken avatar
    104 posts
    Member since:
    Aug 2010

    Posted 12 Apr 2011 Link to this post

    Hi,

    I'm having trouble getting a RadMaskedNumericInput to work with the mask "##:##". It just doesn't update the binding with this mask. A mask of just "##" or even "##:" works fine. But "##:##" not.

    What am I doing wrong?

    Thanks

    LE: nevermind, I should be using RadMaskedTextInput :)
  2. Petar Mladenov
    Admin
    Petar Mladenov avatar
    2891 posts

    Posted 12 Apr 2011 Link to this post

    Hello Adrian,

    This is expected behavior of the RadMaskedNumericInput. Could you elaborate more on your scenario, why do you need this mask ? You can also try this with RadMaskedTextInput and let us know if this satisfies you.

    All the best,
    Petar Mladenov
    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. Ken
    Ken avatar
    104 posts
    Member since:
    Aug 2010

    Posted 12 Apr 2011 Link to this post

    Hi Petar,

    I need a control which displays a duration, like "hh:mm". Maybe you can advise which one I should use. I tried all different ones, but none matches this simple use-case perfectly. The closest one is the RadMaskedTextBox with mask of type DateTime, but the problem is its display is really weird, like sometimes it shows "0:00" or "00:0" which is confusing for the users, plus on Mac it doesn't work properly.

    Thanks
  5. Petar Mladenov
    Admin
    Petar Mladenov avatar
    2891 posts

    Posted 14 Apr 2011 Link to this post

    Hello Adrian,

    Could you please elaborate more on the wrong behavior of the RadMaskedTextBox on Mac? On the other hand, you can test our new MaskedInput suite of controls and especially the RadMaskedDateTimeInput here.

    Regards,
    Petar Mladenov
    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
  6. Ken
    Ken avatar
    104 posts
    Member since:
    Aug 2010

    Posted 14 Apr 2011 Link to this post

    Hi Petar,

    It's not easy to explain: on the mac sometimes the cursor would jump from the left part of the ":" to the right part so the user couldn't really key in some digits. I also tried the new masked input controls, but I couldn't figure out how to use them for this simple scenario I outlined in my previous post, i guess because I needed just a time input, not a DATEtime input. I don't remember the details but as far as I can remember I found no easy way of having it display just a time formatted like "hh:mm" both when entering text and when displaying it. Maybe you have a solution?

    Cheers,
    Adrian
  7. Petar Mladenov
    Admin
    Petar Mladenov avatar
    2891 posts

    Posted 14 Apr 2011 Link to this post

    Hi Adrian,

    Please excuse me for providing you a wrong link. Here I prepared a video, please let me know if it helps you.

    All the best,
    Petar Mladenov
    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
  8. Ken
    Ken avatar
    104 posts
    Member since:
    Aug 2010

    Posted 14 Apr 2011 Link to this post

    Hi Petar,

    Thanks a lot for your support. I just took a look at the RadMaskedDateTimeInput and I think the reason I ditched it was because its Value property is of type DateTime? instead of TimeSpan? which I need. I could convert between them but that would make the code in my VM a bit weird...I mean, the VM shouldn't be affected by the view right? I guess I could've done the conversion in a value converter, but that'd also feel a bit weird.

    In the end I just used a regular textbox as I had to also support entering of time in the form of ".5" which means half-an-hour :)

    Thanks again,
    Adrian
  9. federico
    federico avatar
    4 posts
    Member since:
    Mar 2015

    Posted 26 Mar 2015 Link to this post

    Good day how do I disappear or appear separators points
    For example: 12.0
    120.0
    1200.0
    1000200.0
    (AutoFillNumberGroupSeparators = false but automatically displayed)
    as I do?
  10. federico
    federico avatar
    4 posts
    Member since:
    Mar 2015

    Posted 26 Mar 2015 in reply to federico Link to this post

    Good day how do I disappear or appear separators points
    For example: 12.0
    120.0
    1,200.0
    1,000,200.0
    (AutoFillNumberGroupSeparators = false but automatically displayed)
    as I do?
  11. Petar Mladenov
    Admin
    Petar Mladenov avatar
    2891 posts

    Posted 27 Mar 2015 Link to this post

    Hi Federico,

    If you need the group separators appearing when you type number bigger than 999 in Numeric Input, you can use Mask="" (this feature is called "no-mask", please read more here) and FormatString = n2 or n3, n4..
    Please let us know if this exactly what you needed.


    Regards,
    Petar Mladenov
    Telerik
     

    See What's Next in App Development. Register for TelerikNEXT.

     
  12. federico
    federico avatar
    4 posts
    Member since:
    Mar 2015

    Posted 27 Mar 2015 in reply to Petar Mladenov Link to this post

    Thank you very much for answering my question but it is not. When writer, a group of separators should appear automatically Example: 1,000.00
    1,000,000.00 1,000,000,000.00

    <telerik: RadMaskedNumericInput Mask = "" FormatString = "n2" />
    You can not write
  13. Petar Mladenov
    Admin
    Petar Mladenov avatar
    2891 posts

    Posted 30 Mar 2015 Link to this post

    Hi Federico,

    I made a captured video of how I test the RadMaskedNumericInput with FormatString = "n2" and Mask="".
    Could you please check it out and let us know if you need the same behavior ? If not, is it possible for you to list the exact steps you need to perform and the desired result ? Thank you in advance for your cooperation.

    Regards,
    Petar Mladenov
    Telerik
     

    See What's Next in App Development. Register for TelerikNEXT.

     
Back to Top
DevCraft banner