forked from kendo-labs/angular-kendo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
scrap.html
50 lines (40 loc) · 1.3 KB
/
scrap.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Scrappy</title>
<link href="http://cdn.kendostatic.com/2013.1.319/styles/kendo.common.min.css" rel="stylesheet">
<link href="http://cdn.kendostatic.com/2013.1.319/styles/kendo.default.min.css" rel="stylesheet">
</head>
<body>
<select class="dropdown"></select>
<select class="dropdown"></select>
<script src="http://code.jquery.com/jquery-1.9.1.min.js"></script>
<script src="http://cdn.kendostatic.com/2013.1.319/js/kendo.all.min.js"></script>
<script>
$(function() {
var options = {
dataSource: new kendo.data.DataSource({
data: [{ name: "Thing 1", id: 1 },
{ name: "Thing 2", id: 2 },
{ name: "Thing 3", id: 3 }]
}),
dataTextField: "name",
dataValueField: "id",
optionLabel: "Select A Thing"
};
$(".dropdown").kendoDropDownList({
dataSource: new kendo.data.DataSource({
data: [{ name: "Thing 1", id: 1 },
{ name: "Thing 2", id: 2 },
{ name: "Thing 3", id: 3 }]
}),
dataTextField: "name",
dataValueField: "id",
optionLabel: "Select A Thing"
});
$("#dropdown2").kendoDropDownList(options);
});
</script>
</body>
</html>