Wrong behaviour with mask #9,5

4 posts, 0 answers
  1. Dirk
    Dirk avatar
    43 posts
    Member since:
    May 2011

    Posted 29 Sep 2011 Link to this post

    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
  2. Tina Stancheva
    Admin
    Tina Stancheva avatar
    3298 posts

    Posted 04 Oct 2011 Link to this post

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

  3. DevCraft banner
  4. Dirk
    Dirk avatar
    43 posts
    Member since:
    May 2011

    Posted 28 Oct 2011 Link to this post

    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
  5. Tina Stancheva
    Admin
    Tina Stancheva avatar
    3298 posts

    Posted 02 Nov 2011 Link to this post

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

Back to Top