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

resize column on touch device

1 Answer 102 Views
Grid
This is a migrated thread and some comments may be shown as answers.
axel
Top achievements
Rank 1
axel asked on 28 Nov 2015, 10:43 AM

Hello,

column resize doesn't work on touch device (acer aspire) in google chrome.

In ms edge it works, though not very reliable.

http://dojo.telerik.com/awOqI

regards

Axel

 

1 Answer, 1 is accepted

Sort by
0
Atanas Georgiev
Telerik team
answered on 01 Dec 2015, 02:00 PM
Hello Alex,

Some portable Windows devices have both mouse and touch capabilities, but do not manifest this in an understandable way. We are not able to detect such scenarios properly or find out if the user is using a mouse or touch in a given case. As a result, the Kendo UI widgets may work with the mouse only.

It is possible to use browser detection and hack Kendo UI to make it think it is working on a touch device. I have shown how to do this below. However, two things must be pointed out:

1. This is not an officially supported approach and undesired side effects may occur.
2. An important question is how and when to trigger the hack, so that you don't break all your desktop users.


var isTouchEnabledDevice = true; // some conditional logic required here
 
if (isTouchEnabledDevice) {
  kendo.support.mobileOS = true;
  kendo.support.kineticScrollNeeded = true;
}
 
$("#grid").kendoGrid({
  /* ... */
});


As a final note, I should probably mention that we have no short-term plans to implement an out-of-the-box touch support on the above mentioned devices.


Regards,
Atanas Georgiev
Telerik
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Tags
Grid
Asked by
axel
Top achievements
Rank 1
Answers by
Atanas Georgiev
Telerik team
Share this question
or