I am messing around with Kendo UI React as I have a lot of dynamic component creation and being able to house them in react classes and instantiate instances as they are needed seems quite nice.
However, in JQuery, I would do something like: <select id="multi-select" data-role="multiselect" data-bind="value: my-multiselect"></select>
Then when the template that multiselect was in would be bound to an observable, any changes were reflected in that observable.
However, I am not sure how this is done with the React widgets, since their syntax is slightly different. I so far have a multiselect that is rendered like this:
render() {
return (
<div>
<window.KendoDropdownsReactWrapper.MultiSelect
id="user-filter"
change={this.onChange}
select={this.onSelect}
dataSource={this.dataSource}
placeholder={this.placeholder}
value={this.values}
dataTextField={this.dataTextField}
dataValueField={this.dataValueField}
template={this.template}
tagTemplate={this.tagTemplate}
filter={this.filter}
autoClose={this.autoClose} />
</div>
);
}
How would I set up binding so that this multiselect is bound to a value in an observable?