O'Reilly logo

Building Mobile Applications Using Kendo UI Mobile and ASP.NET Web API by Ragini Kumbhat Bhandari, Nishanth Nair

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

The Touch widget

Kendo UI Mobile's Touch widget helps us make selected elements of the DOM sensitive to a user's touch. It's a very powerful component as we don't need to use Mobile widgets wherever actions need to be implemented for touch events. Just add data-role = "touch" on the HTML element and we are ready to trap events such as swipe, tap, double tap, hold, and more:

<div id="touchableDiv" data-role="touch"> </div>

Or

$("#touchableDiv").kendoTouch();

Now let's see how the touch events can be trapped and what kind of data we can extract on a touch-enabled div element with an inner div element. Every touch event handler receives an event object, and in this example, we are going to explore some important properties that can be retrieved from ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required