Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<!DOCTYPE html>
<html>
<head>
<link href="http://cdn.kendostatic.com/2013.3.1119/styles/kendo.common.min.css" rel="stylesheet" type="text/css" />
<link href="http://cdn.kendostatic.com/2013.3.1119/styles/kendo.rtl.min.css" rel="stylesheet" type="text/css" />
<link href="http://cdn.kendostatic.com/2013.3.1119/styles/kendo.default.min.css" rel="stylesheet" type="text/css" />  
<script src="http://code.jquery.com/jquery-1.9.1.min.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.2.2/angular.min.js"></script>
<script src="http://cdn.kendostatic.com/2013.3.1119/js/kendo.all.min.js"></script>
<script src="https://dl.dropboxusercontent.com/u/28705286/angular-kendo.js"></script>
<meta charset=utf-8 />
<title>JS Bin</title>
</head>
<body ng-app="myapp">
  <div ng-controller="mycontroller">
SelectedValues :{{ SelectedValues }} <br />
  
      <div  multiple="multiple" 
            kendo-multi-select
            data-placeholder="Select products..."
            k-data-value-field = "'ProductID'"
            k-data-text-field = "'ProductName'"
            k-data-source='dsA'
            ng-model="SelectedValues"
      >
      </div>
  </div>
</body>
</html>
 
var MyApp = angular.module('myapp', ['kendo.directives']);
function mycontroller($scope) {
$scope.dsA = new kendo.data.DataSource({
                type: "odata",
                autoBind: false,
                serverFiltering: true,
                serverPaging: true,
                pageSize: 5,
                data: [{ ProductID: 14, ProductName: "Tofu" }],
                transport: {
                    read: {
                        url: "http://demos.kendoui.com/service/Northwind.svc/Products"
                    }
                }
            });
    
$scope.SelectedValues = [14];//Trying to set selected to Tofu
 
}
mycontroller.$inject = ['$scope'];
Output

You can jump to the latest bin by adding /latest to your URL

Dismiss x
public
Bin info
anonymouspro
0viewers