/// /// import {Component, View, bootstrap, FORM_DIRECTIVES, ControlGroup, Control } from 'angular2/angular2'; import {KendoValueAccessor} from 'kendo/angular2'; @Component({ selector: 'my-app' }) @View({ template: `

{{ formState() }}

Change Color

Change Amount

Or just

`, directives: [FORM_DIRECTIVES, KendoValueAccessor] }) class MyAppComponent { cap: { color: Number } = { color: 1 }; colors = [ { text: "Black", value: 1 }, { text: "Orange", value: 2 }, { text: "Grey", value: 3 } ]; dropDownListOptions: { dataSource: Array }; capForm: ControlGroup; constructor() { this.dropDownListOptions = { dataSource: this.colors } this.capForm = new ControlGroup({ color: new Control(2), amount: new Control(3) }); } formState() { return JSON.stringify(this.capForm.value); } preSet() { this.capForm.controls.color.updateValue(3); this.capForm.controls.amount.updateValue(10); } } bootstrap(MyAppComponent);