I have a simple angular-kendo ComboBox on a page without an initially selected value. It should show the placeholder text in that case, but instead it\'s showing ? un
This is somewhat related to this issue: https://github.com/angular/angular.js/issues/1019
The solution is simple: use an instead of a element:
app.controller('MyCtrl', function($scope) {
$scope.projectData = [
{name: 'Bob', value: 1},
{name: 'Tom', value: 2}
];
$scope.projectOptions = {
placeholder: "'Select...'",
dataTextField: 'name',
dataValueField: 'value',
dataSource: {
data: $scope.projectData
}
}
});
(demo)