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

RadMaskedNumericInput mask

11 Answers 221 Views
MaskedInput (Numeric, DateTime, Text, Currency)
This is a migrated thread and some comments may be shown as answers.
Ken
Top achievements
Rank 1
Ken asked on 12 Apr 2011, 02:47 PM
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 :)

11 Answers, 1 is accepted

Sort by
0
Petar Mladenov
Telerik team
answered on 12 Apr 2011, 03:04 PM
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
0
Ken
Top achievements
Rank 1
answered on 12 Apr 2011, 03:53 PM
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
0
Petar Mladenov
Telerik team
answered on 14 Apr 2011, 01:06 PM
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
0
Ken
Top achievements
Rank 1
answered on 14 Apr 2011, 01:13 PM
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
0
Petar Mladenov
Telerik team
answered on 14 Apr 2011, 01:22 PM
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
0
Ken
Top achievements
Rank 1
answered on 14 Apr 2011, 01:54 PM
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
0
federico
Top achievements
Rank 1
answered on 26 Mar 2015, 08:40 PM
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?
0
federico
Top achievements
Rank 1
answered on 26 Mar 2015, 08:41 PM
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?
0
Petar Mladenov
Telerik team
answered on 27 Mar 2015, 11:56 AM
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.

 
0
federico
Top achievements
Rank 1
answered on 27 Mar 2015, 01:22 PM
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
0
Petar Mladenov
Telerik team
answered on 30 Mar 2015, 07:12 AM
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.

 
Tags
MaskedInput (Numeric, DateTime, Text, Currency)
Asked by
Ken
Top achievements
Rank 1
Answers by
Petar Mladenov
Telerik team
Ken
Top achievements
Rank 1
federico
Top achievements
Rank 1
Share this question
or