Telerik JavaScript Framework Telerik Software Academy Hybrid Mobile Applications.

Slides:



Advertisements
Similar presentations
Windows Basic and Dynamic Disk Borislav Varadinov Telerik Software Academy academy.telerik.com System Administrator Marian Marinov CEO of 1H Ltd.
Advertisements

HTML Forms, GET, POST Methods Tran Anh Tuan Edit from Telerik Academy
Make swiftly iOS development Telerik Academy Telerik Academy Plus.
Amazon S 3, App Engine Blobstore, Google Cloud Storage, Azure Blobs Svetlin Nakov Telerik Software Academy academy.telerik.com.
RPN and Shunting-yard algorithm Ivaylo Kenov Telerik Software Academy academy.telerik.com Technical Assistant
Telerik School Academy ASP.NET MVC.
Shortest paths in edge-weighted digraph Krasin Georgiev Technical University of Sofia g.krasin at gmail com Assistant Professor.
Telerik Software Academy Telerik School Academy.
Asynchronous Programming with C# and WinRT
Unleash the Power of JavaScript Tooling Telerik Software Academy End-to-end JavaScript Applications.
Touch and Gestures with Xamarin Forms
Telerik School Academy ASP.NET MVC.
Character sequences, C-strings and the C++ String class, Working with Strings Learning & Development Team Telerik Software Academy.
Hybrid or Native?! Doncho Minkov Telerik Software Academy Senior Technical Trainer
Done already for your convenience! Telerik School Academy Unity 2D Game Development.
Processing Sequences of Elements Telerik School Academy C# Fundamentals – Part 1.
With Mocha and Karma Telerik Academy Telerik Software Academy.
Welcome to the JSON-stores world Telerik Software Academy Databases.
NoSQL Concepts, Redis, MongoDB, CouchDB
The Business Plan and the Business Model Margarita Antonova Volunteer Telerik Academy academy.telerik.com Business System Analyst Telerik Corporation.
What are ADTs, STL Intro, vector, list, queue, stack Learning & Development Team Telerik Software Academy.
Making JavaScript code by template! Learning & Development Team Telerik Software Academy.
Svetlin Nakov Telerik Software Academy academy.telerik.com Manager Technical Training Who, What, Why?
Access to known folders, using pickers, writing to and reading from files, caching files for future access George Georgiev Telerik Software Academy academy.telerik.com.
Accessing SQL Server and MySQL – Live Demo Svetlin Nakov Telerik Software Academy academy.telerik.com Manager Technical Training
Processing Matrices and Multidimensional Tables Svetlin Nakov Telerik Software Academy academy.telerik.com Technical Trainer
Learning & Development Telerik Software Academy.
Reading and Writing Text Files Svetlin Nakov Telerik Software Academy academy.telerik.com Technical Trainer
Telerik Software Academy ASP.NET Web Forms.
Classical OOP in JavaScript Classes and stuff Telerik Software Academy
Optimization problems, Greedy Algorithms, Optimal Substructure and Greedy choice Learning & Development Team Telerik Software.
Using Selenium for Mobile Web Testing Powered by KendoUI Telerik QA Academy Atanas Georgiev Senior QA Engineer KendoUI Team.
NoSQL Concepts, Redis, MongoDB, CouchDB Svetlin Nakov Telerik Software Academy academy.telerik.com Manager Technical Training
New features: classes, generators, iterators, etc. Telerik Academy Plus JavaScript.Next.
Throwing and Catching Exceptions Tran Anh Tuan Edit from Telerik Software Academy
Past, Present and Future Nikolay Kostov Telerik Software Academy academy.telerik.com Team Lead, Senior Developer and Trainer
Loops, Conditional Statements, Functions Tran Anh Tuan Edit from Telerik Academy
Private/Public fields, Module, Revealing Module Learning & Development Team Telerik Software Academy.
Building Data-Driven ASP.NET Web Forms Apps Telerik Software Academy ASP.NET Web Forms.
Nikolay Kostov Telerik Software Academy Senior Software Developer and Trainer
Telerik Software Academy End-to-end JavaScript Applications.
What is a Database, MySQL Specifics Trần Anh Tuấn Edit from Telerik Software Academy
Planning and Tracking Software Quality Yordan Dimitrov Telerik Corporation Team Leader, Team Pulse, Team Leader, Team Pulse, Telerik Corporation,
What you need to know Ivaylo Kenov Telerik Corporation Telerik Academy Student.
Data binding concepts, Bindings in WinJS George Georgiev Telerik Software Academy academy.telerik.com Technical Trainer itgeorge.net.
Pavel Kolev Telerik Software Academy Senior.Net Developer and Trainer
Objects, Properties, Primitive and Reference Types Learning & Development Team Telerik Software Academy.
What it is, and does it work Learning & Development Telerik School Academy.
When and How to Refactor? Refactoring Patterns Alexander Vakrilov Telerik Corporation Senior Developer and Team Leader.
Free Training and Job for Software Engineers Svetlin Nakov, PhD Manager Technical Training Telerik Corp. Telerik Software Academy.
Access to known folders, using pickers, writing to and reading from files, caching files for future access George Georgiev Telerik Software Academy academy.telerik.com.
Doing the Canvas the "easy way"! Learning & Development Telerik Software Academy.
Creating and Running Your First C# Program Svetlin Nakov Telerik Software Academy academy.telerik.com Manager Technical Training
Data Types, Primitive Types in C++, Variables – Declaration, Initialization, Scope Telerik Software Academy academy.telerik.com Learning and Development.
The past, the present, the future Learning & Development Team Telerik Software Academy.
Learn to Design Error Steady Code Svetlin Nakov Telerik Software Academy academy.telerik.com Technical Trainer
Connecting, Queries, Best Practices Tran Anh Tuan Edit from Telerik Software Academy
Processing Sequences of Elements Telerik Software Academy C# Fundamentals – Part 2.
Telerik Software Academy Databases.
Things start to get serious Telerik Software Academy JavaScript OOP.
Learning & Development Mobile apps for iPhone & iPad.
Processing Matrices and Multidimensional Tables Telerik Software Academy C# Fundamentals – Part 2.
Nikolay Kostov Telerik Software Academy academy.telerik.com Team Lead, Senior Developer and Trainer
ASP.NET Web API Telerik Software Academy
Functions and Function Expressions Closures, Function Scope, Nested Functions Telerik Software Academy
Implementing Control Logic in C# Svetlin Nakov Telerik Software Academy academy.telerik.com Manager Technical trainer
Inheritance, Abstraction, Encapsulation, Polymorphism Telerik Software Academy Mobile apps for iPhone & iPad.
Mocking tools for easier unit testing Telerik Software Academy High Quality Code.
What why and how? Telerik School Academy Unity 2D Game Development.
Windows Security Model Borislav Varadinov Telerik Software Academy academy.telerik.com System Administrator
Presentation transcript:

Telerik JavaScript Framework Telerik Software Academy Hybrid Mobile Applications

1. DataSource 2. Templates 3. UI Mobile Widgets 4. Model - View - View Model (MVVM) 5. Icenium and Kendo Mobile 2

Data, data, data

 Abstraction over local or remote data  Play central role in Kendo UI applications  Retrieve data from local or remote end point  Provides CRUD operations and serialization  Provides filtering, grouping, page sizing  Synchronizing updates (batch and normal)  And many more

 Initialization with new kendo.data.DataSource  Takes an JSON object as parameter  The JSON object contains variable options  data option – array of same objects or string var cars = [ { make: 'Opel', model: 'Insignia', year: '2009'}, { make: 'Audi', model: 'A5', year: '2008'}, { make: 'BMW', model: 'M3', year: '2010'}, { make: 'Mercedes', model: 'CL', year: '2011'} ]; var carsDataSource = new kendo.data.DataSource({ data: cars data: cars});

 columns option – array of objects  field, width, title  aggregate option – array of objects  field, aggregate  "average", "count", "max", "min", "sum" … columns: [ { field: 'make', width: 50, title: 'Make' }, { field: 'model', width: 50, title: 'Model' } ], aggregate: [ { field: 'power', aggregate: 'sum' },] …

 filter option – array of objects  logic option: ‘and’, ‘or’  filters option: array of objects  field, operator, value  operators: "eq", "neq", "lt", "lte", "gt", "gte" … filter: { logic: 'and', logic: 'and', filters: [ filters: [ { field: 'make', operator: 'eq', value: 'Audi' }, { field: 'make', operator: 'eq', value: 'Audi' }, { field: 'year', operator: 'gt', value: 2006 } { field: 'year', operator: 'gt', value: 2006 } ]}…

 group option – array of objects  field, dir, aggregates  dir: ‘asc’ and ‘desc’ … group: { field: 'make', field: 'make', dir: 'desc', dir: 'desc', aggregates: [ aggregates: [ { field: 'power', aggregate: 'max' }, { field: 'power', aggregate: 'max' }, { field: 'make', aggregate: 'count' } { field: 'make', aggregate: 'count' } ]}…

 sort option – array of objects  field, dir  dir: ‘asc’ and ‘desc’ … sort: {[ { field: 'year', dir: 'desc' }, { field: 'year', dir: 'desc' }, { field: 'make', dir: 'asc' } { field: 'make', dir: 'asc' }]}…

 transport option – array of objects  create, read, update, destroy  url, dataType  parameterMap – function for parsing data … transport: { read: { read: { url: ' url: ' dataType: 'json' dataType: 'json'},…

 batch option – boolean  page option – number  pageSize option – number  serverPaging option – boolean  serverSorting option - boolean  events – change, error, sync … change: function (e) { …}…

 Methods  add – object or Kendo.data.model  aggregate – get or set configuration  aggregates – returns result  at – indexator  data – gets or sets the data array  fetch – reads the data, needs ready function  filter – gets or sets the configuration  group – gets or sets the configuration  indexOf – return the index of an object in data

 Methods  insert – inserts data at specified index  page – gets or sets the current page  pageSize – gets or sets the page size  read – reads the data  remove – removes item  sort – gets or sets the configuration  sync – syncs data with remote service  total – number of items in data  view – return corresponding data (with fetch)

Live Demo on try.kendoui.com try.kendoui.com

Mustache, Beard, Eyebrows

 Kendo UI templates – in script tags  Type of tag – “text/x-kendo-template”  Should have id attribute  Initialized with kendo.template($('#id').html())  Takes object parameter with data  Appended to other DOM (jQuery) elements // template // template var tmpl = kendo.template($('#some-id').html()); $('#some-tag').append(template({ /* data obj */ })); $('#some-tag').append(template({ /* data obj */ }));

 Syntax  Normal HTML syntax  # Between number sign you can write JS code  #: Takes a string from a parameter  #= Takes the value from a parameter #: make #, #: make #, #: model # #: model # </script> var carTemplate = kendo.template($('#car').html()); $('#some-tag').append(template({ id: i, make: car.make, model: car.model })); id: i, make: car.make, model: car.model }));

Live Demo on try.kendoui.com try.kendoui.com

Native feel on various devices

 Widgets  ActionSheet  Button  ButtonGroup  ListView  ModalView  NavBar  PopOver  Scroller  ScrollView  TabStrip

Live Demo on demos.kendoui.com demos.kendoui.com

Model – View – View Model

 Model  Represents data (database, objects, etc.)  View Model  Knows of the data  Transforms the data as the View needs it  May have logic and functionality  View  Knows of the View Model  Represents UI (buttons, inputs, etc.)

 Model – kendo.data.DataSource  View Model – kendo.observable(object)  Object – has properties for the View  May have functions for manipulating data  Layout - kendo.Layout(string)  String to render (HTML text)  Displays views

 View - kendo.View  string (template id)  string (template id) and View Model var layout = new kendo.Layout( ' ' + ' ' + ' ' + ' ' + ' ' + ' '); ' ' + ' '); var first = new kendo.View(‘tmpl'); var second = new kendo.View(‘tmpl-model', { model: carViewModel }); { model: carViewModel });layout.render($('#main-layout')); layout.showIn('#no-model', carListView); layout.showIn('#model', carDetailView);

 Data Binding  Add attribute “data-bind” to tags in template  Value of attribute is “{type} : {property}” </script>

 Events Data Binding  Add attribute “data-bind” to tags in template  Value of attribute is “events: {object of events}” B B var viewModel = kendo.observable({ onClick : function(e) { onClick : function(e) { console.log("Event: " + e.type); console.log("Event: " + e.type); } }); });

 Bind View Model To View  Done through kendo.bind(template, viewModel)  Template is jQuery object  View Model is kendo.observable kendo.bind($("#example"), viewModel);

 Model is automatically bound  Done through the bind method  You need to set only data attributes <script> var cat = { var cat = { color: "purple", legs: 4 color: "purple", legs: 4}</script> </div>

Live Demo on try.kendoui.com try.kendoui.com

It is only JavaScript!

форум програмиране, форум уеб дизайн курсове и уроци по програмиране, уеб дизайн – безплатно програмиране за деца – безплатни курсове и уроци безплатен SEO курс - оптимизация за търсачки уроци по уеб дизайн, HTML, CSS, JavaScript, Photoshop уроци по програмиране и уеб дизайн за ученици ASP.NET MVC курс – HTML, SQL, C#,.NET, ASP.NET MVC безплатен курс "Разработка на софтуер в cloud среда" BG Coder - онлайн състезателна система - online judge курсове и уроци по програмиране, книги – безплатно от Наков безплатен курс "Качествен програмен код" алго академия – състезателно програмиране, състезания ASP.NET курс - уеб програмиране, бази данни, C#,.NET, ASP.NET курсове и уроци по програмиране – Телерик академия курс мобилни приложения с iPhone, Android, WP7, PhoneGap free C# book, безплатна книга C#, книга Java, книга C# Николай Костов - блог за програмиране

1. Create a cross-platform hybrid mobile application using Kendo UI and Icenium for car rental service. Use SQLLite or Local file for data saving and retrieval. Use at least three Kendo UI Mobile widgets.  Available cars for rent  Car details and rent option  Rented cars with return date  Home/About/Contacts view