mirror of
https://github.com/hanzoai/jube-fork.git
synced 2026-11-02 14:29:36 +00:00
92 lines
2.9 KiB
HTML
Executable File
92 lines
2.9 KiB
HTML
Executable File
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<title>Keyboard navigation</title>
|
|
<meta charset="utf-8">
|
|
<link href="../content/shared/styles/examples-offline.css" rel="stylesheet">
|
|
<link href="../../styles/kendo.common.min.css" rel="stylesheet">
|
|
<link href="../../styles/kendo.rtl.min.css" rel="stylesheet">
|
|
<link href="../../styles/kendo.default.min.css" rel="stylesheet">
|
|
<link href="../../styles/kendo.default.mobile.min.css" rel="stylesheet">
|
|
<script src="../../js/jquery.min.js"></script>
|
|
<script src="../../js/jszip.min.js"></script>
|
|
<script src="../../js/kendo.all.min.js"></script>
|
|
<script src="../content/shared/js/console.js"></script>
|
|
<script>
|
|
|
|
</script>
|
|
|
|
|
|
</head>
|
|
<body>
|
|
|
|
<a class="offline-button" href="../index.html">Back</a>
|
|
|
|
<script src="../content/shared/js/people.js"></script>
|
|
|
|
<div id="example">
|
|
|
|
<div id="grid"></div>
|
|
|
|
<script>
|
|
$(document).ready(function() {
|
|
$("#grid").kendoGrid({
|
|
dataSource: {
|
|
data: createRandomData(50),
|
|
group: [{ field: "FirstName" }],
|
|
pageSize: 10,
|
|
schema: {
|
|
model: {
|
|
id: "Id",
|
|
fields: {
|
|
FirstName: { type: "string" },
|
|
LastName: { type: "string" },
|
|
City: { type: "string" },
|
|
Age: { type: "number" },
|
|
BirthDate: { type: "date" }
|
|
}
|
|
}
|
|
}
|
|
},
|
|
selectable: "multiple row",
|
|
navigatable: true,
|
|
filterable: true,
|
|
sortable: true,
|
|
pageable: true,
|
|
reorderable: true,
|
|
groupable: true,
|
|
columns: [ {
|
|
field: "FirstName",
|
|
width: 120,
|
|
title: "First Name"
|
|
} , {
|
|
field: "LastName",
|
|
width: 120,
|
|
title: "Last Name"
|
|
} , {
|
|
width: 120,
|
|
field: "City"
|
|
} , {
|
|
field: "BirthDate",
|
|
title: "Birth Date",
|
|
template: '#= kendo.toString(BirthDate,"dd MMMM yyyy") #'
|
|
} , {
|
|
width: 80,
|
|
field: "Age"
|
|
}
|
|
]
|
|
});
|
|
|
|
$(document.body).keydown(function(e) {
|
|
if (e.altKey && e.keyCode == 87) {
|
|
$("#grid").data("kendoGrid").table.focus();
|
|
}
|
|
});
|
|
});
|
|
</script>
|
|
</div>
|
|
|
|
|
|
</body>
|
|
</html>
|