Hi,
I used syncfusion control a lot with Durandal, knockout and there was very easy to bind whole object to the control.
Example:
View:
<input data-bind="ejDropDownList: dropDownMultiple" />
Model:
self.dropDownMultiple = {
dataSource: ko.observableArray([
{ text: "Surname1", value: "value1" },
{ text: "Surname2", value: "value2" },
{ text: "Surname3", value: "value3" },
{ text: "Surname4", value: "value4" },
{ text: "Surname5", value: "value5" }
]),
fields: { text: "text", value: "value" },
enabled: self.isReadonly,
allowMultiSelection: true,
multiSelectMode: "visualMode",
}
Is there any chance to we do that with Angular 2 binding, or we need to bind every property separately ?
Regards,
Milos