Search icon CANCEL
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Kendo UI Cookbook

You're reading from   Kendo UI Cookbook Over 50 recipes to help you rapidly build rich and dynamic user interfaces for web and mobile platforms.

Arrow left icon
Product type Paperback
Published in Jun 2014
Publisher
ISBN-13 9781783980000
Length 250 pages
Edition 1st Edition
Languages
Arrow right icon
Author (1):
Arrow left icon
Sagar Ganatra Sagar Ganatra
Author Profile Icon Sagar Ganatra
Sagar Ganatra
Arrow right icon
View More author details
Toc

Table of Contents (18) Chapters Close

Kendo UI Cookbook
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
1. The Kendo UI Application Framework FREE CHAPTER 2. The Kendo UI Grid 3. Kendo UI TreeView 4. Kendo UI Editor 5. Kendo UI PanelBar 6. Kendo UI File Uploader 7. Kendo UI Window 8. Kendo UI Mobile Framework 9. Kendo UI Mobile Widgets 10. Kendo UI DataViz 11. Kendo UI DataViz – Advance Charting Index

Adding touch events to your mobile application


The Kendo UI Mobile framework provides various APIs to handle touch-based events. The applications that you build should not only allow the user to perform regular select events on the touch interface, but they should also handle various touch gestures such as double tap, swipe, and drag-and-drop. In this recipe, we will take a look at the various touch events that can be added.

How to do it…

For the purpose of this example, let's consider the same layout used in the previous recipe and add a view to the page. The content of this view would be a touch widget that specifies an area in the view enabled for touch events:

<div 
  data-role="view"
  data-layout="defaultLayout">
  <div
    id="touchSurface"
    data-role="touch"
    data-enable-swipe="1"
    data-touchstart="touchstart"
    data-swipe="swipe"
    data-tap="tap"
    data-doubletap="doubletap"
    data-hold="hold"
    style="height: 200px;">

    Touch Surface

  </div&gt...
lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at €18.99/month. Cancel anytime