kendo ui basics. what we will do? what is kendo ui? check browser support licensing download and...

28
Kendo Ui BASICS

Upload: godfrey-stevenson

Post on 21-Jan-2016

225 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Kendo Ui BASICS. What we will do?  What is Kendo UI?  Check browser support  Licensing  Download and Install  Add it to web application

Kendo UiBASICS

Page 2: Kendo Ui BASICS. What we will do?  What is Kendo UI?  Check browser support  Licensing  Download and Install  Add it to web application

What we will do?

What is Kendo UI?

Check browser support

Licensing

Download and Install

Add it to web application

Page 3: Kendo Ui BASICS. What we will do?  What is Kendo UI?  Check browser support  Licensing  Download and Install  Add it to web application

What is Kendo UI?

JavaScript framework for building modern interactive web applications

Collection of scripts file and resources( styles, images, etc.)

Leverages JavaScript

HTML 5

CSS3

jQuery

Page 4: Kendo Ui BASICS. What we will do?  What is Kendo UI?  Check browser support  Licensing  Download and Install  Add it to web application

What Kendo UI provide?

Rich UI Widgets HTML5 based controls based on jQuery Core

3 categories of UI widgets

Web

DataViz

Mobile

Client – side DataSource Abstraction for working will all types of data on the client side

MVVM Framework Provides declarative binding and two-way synchronization in web application

Templating

Animation and Drag & Drop

Validation Framework

Page 5: Kendo Ui BASICS. What we will do?  What is Kendo UI?  Check browser support  Licensing  Download and Install  Add it to web application

Why?

Kendo UI provides all the tooling we need in one package

Built from ground up to deliver performance

Professional support are available

Page 6: Kendo Ui BASICS. What we will do?  What is Kendo UI?  Check browser support  Licensing  Download and Install  Add it to web application

Browser Support

IE 7.0+

Firefox 10.0 +

Chrome All versions

Opera 10.0 +

Safari 4.0+

Page 7: Kendo Ui BASICS. What we will do?  What is Kendo UI?  Check browser support  Licensing  Download and Install  Add it to web application

Platform support

XP / Vista / 7 server 03, 08 r1, r2 (32, 64 bit editions)

OS X+

Android 2.0+

IOS 3.0+

Blackberry 6.0+

webOS 2.2+

Page 8: Kendo Ui BASICS. What we will do?  What is Kendo UI?  Check browser support  Licensing  Download and Install  Add it to web application

Licensing

Trial 30 days

GPL v3.0 for Open source License

Commercials

We Kendo UI with our website but we have to agree GPLV3

Kendo UI Web is available with open source license. Mobile/DataViz and server wrappers are available with paid license.

Page 9: Kendo Ui BASICS. What we will do?  What is Kendo UI?  Check browser support  Licensing  Download and Install  Add it to web application

Downloading and Install

Download : http://www.kendoui.com

Its pure JavaScript tool set, so unzip it

Now we are ready to go.

Page 10: Kendo Ui BASICS. What we will do?  What is Kendo UI?  Check browser support  Licensing  Download and Install  Add it to web application

Explore the Examples

Download the 30 days trails from http://www.kendoui.com

Unzip it.

All the examples are listed on the example folder inside it

Page 11: Kendo Ui BASICS. What we will do?  What is Kendo UI?  Check browser support  Licensing  Download and Install  Add it to web application

Adding kendo UI to web page

Copy “js”

Copy “styles”

Register the scripts and CSS

Page 12: Kendo Ui BASICS. What we will do?  What is Kendo UI?  Check browser support  Licensing  Download and Install  Add it to web application

Registering

for MVVM, validation, and other Framework pieces

Include Kendo.common.min.css

Kendo.default.min.css

Jquery.min.js

Kendo.web.min.js

Page 13: Kendo Ui BASICS. What we will do?  What is Kendo UI?  Check browser support  Licensing  Download and Install  Add it to web application

Registering

to use data visualization

Include Kendo.dataviz.min.css

Jquery.min.js

Kendo.dataviz.min.js

Page 14: Kendo Ui BASICS. What we will do?  What is Kendo UI?  Check browser support  Licensing  Download and Install  Add it to web application

Registering

To use mobile version

Include Kendo.mobile.all.min.css

Jquery.min.js

Kendo.mobile.min.js

And if you need all then you need to register all above mention files.

Page 15: Kendo Ui BASICS. What we will do?  What is Kendo UI?  Check browser support  Licensing  Download and Install  Add it to web application

An example of using kendo UI

/examples

Page 16: Kendo Ui BASICS. What we will do?  What is Kendo UI?  Check browser support  Licensing  Download and Install  Add it to web application

Web widgets.

What?

Basic usage.

Configuration

Event Binding

Styling

Complex UI widget : Grid

Page 17: Kendo Ui BASICS. What we will do?  What is Kendo UI?  Check browser support  Licensing  Download and Install  Add it to web application

What are web widgets?

They are collection of HTML5 Controls

Based on jQuery Core

For web, touch-enabled desktop development

Built for performance.

Kendo UI is based on jQuery core but Kendo UI is not extension of JQuery.

Page 18: Kendo Ui BASICS. What we will do?  What is Kendo UI?  Check browser support  Licensing  Download and Install  Add it to web application

Available web widgets

autoComplete

Calendar

ComboBox

DatePicker

DateTimePicker

DropDownList

Editor

Grid

ListView

Menu

NumericTextBox

PanelBar

Splitter

TabStrip

TimePicker

TreeView

Upload

Window

Page 19: Kendo Ui BASICS. What we will do?  What is Kendo UI?  Check browser support  Licensing  Download and Install  Add it to web application

Examples

Extensive examples http://demos.kendoui.com/web

/examples of the trail zip folder

Page 20: Kendo Ui BASICS. What we will do?  What is Kendo UI?  Check browser support  Licensing  Download and Install  Add it to web application

Usage

1. write mark up <input id=“dateOfBirth” />

Initialize <script type=“text/javascript”>

$(document).ready(function(){

$(“#dateOfBirth”).kendoDatePicker();

});

</script>

Page 21: Kendo Ui BASICS. What we will do?  What is Kendo UI?  Check browser support  Licensing  Download and Install  Add it to web application

Declarative Initialization

1. Markup <input id=“dateOfBirth” data-role=“datepicker” />

2.Initialize <script type=“text/javascript”>

$(document).ready(function(){

Kendo.init($(“#dateOfBirth”));

});

</script>

//jQuery selector select the controller

Page 22: Kendo Ui BASICS. What we will do?  What is Kendo UI?  Check browser support  Licensing  Download and Install  Add it to web application

Confriguation

JSON-formatted settings

$(“#dateofBirth”).KendoDatePicker( {format: “yyyy/MM/dd”}

);

Data attributes

<input id=“dateOfBirth” data-role=“datepicker” data-format=“yyyy/MM/dd” />

Page 23: Kendo Ui BASICS. What we will do?  What is Kendo UI?  Check browser support  Licensing  Download and Install  Add it to web application

DataSource Configuration

<input id=“colorPicker” />

<input id=“shapePicker” data-role=“combobox” Data-source=‘[“Circle”,”Oval”,”rectangle”,”Square”]’ />

<script type=“text/javascript” > $(document).ready(function(){

$(“#colorPicker”).kendoComboBox({

dataSource: [“Blue”,”Green”,”Red”,”Yellow”]

});

Kendo.init($(“#shapePicker”));

});

</script>

Page 24: Kendo Ui BASICS. What we will do?  What is Kendo UI?  Check browser support  Licensing  Download and Install  Add it to web application

Event Binding <input id="colorPicker" />

<input id="shapePicker" data-role="combobox" data-source='["Circle","Rectangle"]' data-change="onShapeChange" />

<input id="sizePicker" data-role="combobox" data-change='["Small","Large"]' />

<script type="text/javascript" >

function onColorChange(e) { alert('Color Change!'); }

function onSHapeChange(e) { alert('Shape Change'); }

function onSizeChange(e) { alert('Size Change'); }

$(document).ready(function (){

$("#colorPicker").kendoComboBox({

dataSource: ["Blue", "Green", "Red", "Yellow"],

change: onColorChange

});

kendo.init($("#shapePicker"));

kendo.init($("#sizePicker"));

var sizePicker = $("#shapePicker");

sizePicker.bind("change", onSizeChange).data("kendoComboBox");

});

</script>

Page 25: Kendo Ui BASICS. What we will do?  What is Kendo UI?  Check browser support  Licensing  Download and Install  Add it to web application

Styling

Kendo.common.css Its about positioning and sizes and require widgets to work properly.

Kendo.[skin].css Colors and backgrounds

Skin specific – out of the box there are 5 skin available

Note: use common.css always before skin.css

Page 26: Kendo Ui BASICS. What we will do?  What is Kendo UI?  Check browser support  Licensing  Download and Install  Add it to web application

Primitives

Page 27: Kendo Ui BASICS. What we will do?  What is Kendo UI?  Check browser support  Licensing  Download and Install  Add it to web application

ThemeBuilder

Tool for modifying kendo UI themes

Just a browser booklet

Real-time styling of your application

To check demo

http://themebuilder.kendoui.com

Page 28: Kendo Ui BASICS. What we will do?  What is Kendo UI?  Check browser support  Licensing  Download and Install  Add it to web application

Explore the documentation

http://docs.telerik.com/kendo-ui/introduction

Every details are listed here.