RadMaskedNumericInput - SelectAll() not working when value = 0

4 posts, 1 answers
  1. Hans
    Hans avatar
    64 posts
    Member since:
    Nov 2017

    Posted 18 Jul 2019 Link to this post

    Hi,

    I'm using the RadMaskedNumericInput with Mask="#6.2".  SelectAll() is called when the control gets the focus.  This works fine as long as the value of the binded property is not zero.  In this case, only the decimals and decimal point get selected, but not the zero digit before the decimal point (see attachment), which is very annoying behavior for the end user.

    Regards,
    Hans

  2. Hans
    Hans avatar
    64 posts
    Member since:
    Nov 2017

    Posted 18 Jul 2019 Link to this post

    This time with attachment ;-)
  3. Answer
    Vladimir Stoyanov
    Admin
    Vladimir Stoyanov avatar
    657 posts

    Posted 23 Jul 2019 Link to this post

    Hello Hans,

    Thank you for the provided picture. 

    Can you try setting the SelectionOnFocus property of the control? You can set it to SelectAll in order to achieve what you are going for: 
    <telerik:RadMaskedNumericInput SelectionOnFocus="SelectAll" />

    This way you would not have to manually call the SelectAll method. Please, give this a try and let me know how it goes.

    Regards,
    Vladimir Stoyanov
    Progress Telerik
    Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
  4. Hans
    Hans avatar
    64 posts
    Member since:
    Nov 2017

    Posted 29 Jul 2019 in reply to Vladimir Stoyanov Link to this post

    Hi Vladimir,

    that's it !  Thanks !

    Regards,

    Hans

Back to Top