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

Wrong behaviour with mask #9,5

3 Answers 35 Views
MaskedInput (Numeric, DateTime, Text, Currency)
This is a migrated thread and some comments may be shown as answers.
Dirk
Top achievements
Rank 1
Iron
Dirk asked on 29 Sep 2011, 10:01 AM
If I use the RadMaskedNumericInput control with the mask #9,5 this means, that you have 9 numbers before the comma and 5 numbers behind the comma.
If you type into the control any number behind the comma, the cursor moves into the next position.
But if the position is the 5 th postion behind the comma, the 5 th number behind the comma is always overwritten.
Example:
12,1
12,12
12,123
12,1234
12,12345
12,12346
12,12347
A better behaviour would be that no number is written if the 5th position behind the comma is reached.

Do you know any workaround, so that nor number is written, if the 5th position behind the comma is reached.

Regards
Dirk

3 Answers, 1 is accepted

Sort by
0
Tina Stancheva
Telerik team
answered on 04 Oct 2011, 11:52 AM
Hi Dirk,

Unfortunately the MaskedNumericInput control doesn't support your scenario at the moment. This is why I logged a feature request based on your feedback. You can vote for it in our PITS.

I also updated your Telerik account as a small sign of appreciation for sharing your thoughts on the control's behavior with us.

Let us know if you have any additional comments on the matter or if we can further assist you.

Regards,
Tina Stancheva
the Telerik team

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

0
Dirk
Top achievements
Rank 1
Iron
answered on 28 Oct 2011, 11:35 AM
Hi Tina,
I have found another strange behaviour, if you try to delete a number in the control.
Example:
1234,5678
I mark the cursor in my example with '|'.
a.)
123|4,5678  (press 'del')
123|,5678 (correct)

b.)
1234,56|78  (press 'del')
1234,560|8  (not correct, expected:1234,56|8)

Regards
Dirk
0
Tina Stancheva
Telerik team
answered on 02 Nov 2011, 10:03 AM
Hi Dirk,

This behavior is by design. Basically the positions before the decimal symbol are filled/removed with an InputBehavior of type Insert. The numbers after the decimal symbol, on the other hand, are filled/removed with the Replace InputBehavior.

However, we logged your request as a feature request in our PITS as well. You can vote for it here. I added 500 points to your Telerik account and I would like to thank you again for sharing with us your valuable feedback on the RadMaskedNumericInput control's behavior.

Regards,
Tina Stancheva
the Telerik team

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

Tags
MaskedInput (Numeric, DateTime, Text, Currency)
Asked by
Dirk
Top achievements
Rank 1
Iron
Answers by
Tina Stancheva
Telerik team
Dirk
Top achievements
Rank 1
Iron
Share this question
or