Book Image

Mastering KnockoutJS

By : Timothy Moran
Book Image

Mastering KnockoutJS

By: Timothy Moran

Overview of this book

Table of Contents (16 chapters)
Mastering KnockoutJS
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Knockout Kendo


Kendo UI (http://www.telerik.com/kendo-ui) is a popular HTML5 widgets library of Telerik that offers a large selection of professional-looking controls. Knockout Kendo is a library of bindings, which allows Knockout viewmodels to use Kendo controls. Knockout Kendo has over 30 bindings, each with a variety of options, which is far too many to cover here. While Knockout Kendo is free, Kendo UI itself is not free and requires you to purchase a license in order to use it.

Most of the bindings are simple wrappers around the Kendo widgets, offering an API with a few surprises. For example, here is the autocomplete binding, which takes an array of options and an observable that binds the selection:

<input data-bind="kendoAutoComplete: { data: autocompleteOptions, value: autocompleteValue }" /><br>

DateTimePicker, which creates two independent selection controls for the date and time, binds against a single observable Date object:

<input data-bind="kendoDateTimePicker...