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

Touch and hold on text

2 Answers 75 Views
View
This is a migrated thread and some comments may be shown as answers.
RES
Top achievements
Rank 1
RES asked on 17 Aug 2014, 10:57 PM
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 Answers, 1 is accepted

Sort by
0
Accepted
Dimo
Telerik team
answered on 22 Aug 2014, 07:30 AM
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!
 
0
RES
Top achievements
Rank 1
answered on 25 Aug 2014, 05:15 AM
Thank you, that does the trick.
Tags
View
Asked by
RES
Top achievements
Rank 1
Answers by
Dimo
Telerik team
RES
Top achievements
Rank 1
Share this question
or