O'Reilly logo

Learning Kendo UI Web Development by John Adams

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Declarative widgets through Data-Role MVVM attributes

Kendo's MVVM also allows declarative initialization of widgets through the data-role attribute. Declarative initialization is a different method of creating Kendo widgets by using the data-role attribute instead of setting up the widget through JavaScript. This is not as flexible as the JavaScript method, but it does allow for a lot of functionality with almost no code at all. Here is a section of code taken from the Kendo UI Web website that shows some basic set up as an introduction. The full details for these widgets can be found there.

<table> <tr> <th>Widget</th> </tr> <tr> <td> <h4>AutoComplete</h4> <input data-role="autocomplete" data-text-field="name" data-bind="source: colors, value: ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required