Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Save more on your purchases now! discount-offer-chevron-icon
Savings automatically calculated. No voucher code required.
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
Building Mobile Applications Using Kendo UI Mobile and ASP.NET Web API

You're reading from   Building Mobile Applications Using Kendo UI Mobile and ASP.NET Web API Confident of your web application skills but not yet au fait with mobile development? Well this book helps you use the Kendo UI for a painless introduction. Practical tasks and clear instructions make learning a breeze.

Arrow left icon
Product type Paperback
Published in Sep 2013
Publisher Packt
ISBN-13 9781782160922
Length 256 pages
Edition 1st Edition
Languages
Arrow right icon
Toc

Table of Contents (9) Chapters Close

Preface 1. Building a Mobile Application Using HTML5 FREE CHAPTER 2. Building Your First Mobile Application 3. Service Layer with ASP.NET Web API 4. Integration Using Framework Elements 5. Exploring Mobile Widgets 6. ActionSheet, ModalView, and More Widgets 7. Movie Tickets Application – Complete Integration Index

Book Tickets screen


The final screen in our Movie Tickets app's ticketing workflow is the Book Tickets screen, where users can select and purchase tickets for both adults and children. Both ticket types will have add and subtract buttons, in the form of icons with a plus (+) and minus (-) symbol, bound by Kendo MVVM bindings, which will add and subtract the number of tickets for each type, display the total amount for each section as well as update the grand total.

Purchase is completed by clicking on the Purchase button which will send the ticket details to the service.

JavaScript module

Let's create a file called book-tickets.js in the js folder and add a JS module named MovieTickets.bookTickets, as shown in the following code, in the file:

MovieTickets.bookTickets = (function () {

    var viewModel = kendo.observable({

        //method to increment no of child tickets
        incrementChildTicket: function () {

            this.set("noChildTickets", parseInt(
                        this...
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 $19.99/month. Cancel anytime