Hi,
I'm trying to bind a MultiSelect with Angular JS using k-ng-model. It seems to work when I select elements, but not when displaying the control (nothing is pre-selected).
Code from Angular controller:
$scope.selectOptions = {
placeholder: "Select roles...",
dataTextField: "roleName",
autoBind: false,
dataSource: $scope.roles,
select: function(e) {
console.log("Event: "+e.item);
}
};
HTML:
<div data-kendo-multi-select
data-k-options="selectOptions"
data-k-ng-model="user.roles"
style="width: 300px">
I'm trying to bind a MultiSelect with Angular JS using k-ng-model. It seems to work when I select elements, but not when displaying the control (nothing is pre-selected).
Code from Angular controller:
$scope.selectOptions = {
placeholder: "Select roles...",
dataTextField: "roleName",
autoBind: false,
dataSource: $scope.roles,
select: function(e) {
console.log("Event: "+e.item);
}
};
HTML:
<div data-kendo-multi-select
data-k-options="selectOptions"
data-k-ng-model="user.roles"
style="width: 300px">