Touch and hold on text

3 posts, 1 answers
  1. RES
    RES avatar
    77 posts
    Member since:
    Sep 2010

    Posted 17 Aug 2014 Link to this post

    I notice if I try to touch and hold on text in a Kendo mobile view the copy and paste features don't come up, at least on Android.  Is there a reason for this?

    Scott
  2. Answer
    Dimo
    Admin
    Dimo avatar
    8332 posts

    Posted 22 Aug 2014 Link to this post

    Hi Scott,

    Sorry about the delayed reply.

    The observed behavior is by design and can be observed on all devices and operating systems. The idea is that the mobile web application should behave like native device apps, which normally do not allow text selection.

    You can re-enable text selection by overriding the CSS rules, which disable it:

    .km-root,
    .km-pane,
    .km-pane-wrapper {
      /* other styles here */
      -ms-user-select: none;
      -webkit-user-select: none;
      /* other styles here */
    }

    .km-scrollview,
    .km-scroll-container {
      -moz-user-select: none;
      -webkit-user-select: none;
      -ms-user-select: none;
      user-select: none;
      -moz-user-select: -moz-none;
      /* other styles here */
    }


    For example, you can use:

    https://developer.mozilla.org/en-US/docs/Web/CSS/user-select

    .km-root,
    .km-pane,
    .km-pane-wrapper,
    .km-scrollview,
    .km-scroll-container {
      -ms-user-select: text;
      -webkit-user-select: text;
      -moz-user-select: text;
       user-select: text;
    }

    (add the above rule after the Kendo UI stylesheets)

    Regards,
    Dimo
    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. RES
    RES avatar
    77 posts
    Member since:
    Sep 2010

    Posted 25 Aug 2014 in reply to Dimo Link to this post

    Thank you, that does the trick.
Back to Top