Prevent auto select on focus/click

4 posts, 0 answers
  1. Albin
    Albin avatar
    2 posts
    Member since:
    May 2013

    Posted 18 Nov 2014 Link to this post

    Hi,

    How do I prevent a date time picker's input box to NOT automatically select all the text on click? Essentially turning it into a default textbox?
  2. Kiril Nikolov
    Admin
    Kiril Nikolov avatar
    2566 posts

    Posted 20 Nov 2014 Link to this post

    Hi Albin,

    I am not really sure I understand what exactly the problem is. Can you please check the following screencast and let me know what I missed?

    http://www.screencast.com/t/PF0ymoNilKJC

    Regards,
    Kiril Nikolov
    Telerik
     
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
     
  3. Kendo UI is VS 2017 Ready
  4. Albin
    Albin avatar
    2 posts
    Member since:
    May 2013

    Posted 21 Nov 2014 in reply to Kiril Nikolov Link to this post

    Hi Kiril,

    I forgot to mention that we used a masked input combine with the date time picker, sorry. It seems like the auto select on click behaviour is on the masked text box. http://demos.telerik.com/kendo-ui/maskedtextbox/index.

    Is there a way we can disable this behaviour?
  5. Kiril Nikolov
    Admin
    Kiril Nikolov avatar
    2566 posts

    Posted 25 Nov 2014 Link to this post

    Hello Albin,

    I am afraid that this cannot be prevented without making changes in the Kendo UI code. Currently there is no option that you can set in order to prevent this from happening and it is actually the desired behavior of the widget.

    If you think that such option should be introduced, please submit a UserVoice request, so it will be reviewed for a future release.

    Regards,
    Kiril Nikolov
    Telerik
     
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
     
Back to Top
Kendo UI is VS 2017 Ready