我正在使用Kendo UI Grid插件。我如何將Grid Table佈局更改爲Div佈局?將表格格式更改爲Div
而且也是我能夠創建新/編輯現有的項目等等......
請檢查下面的基準圖像更多的澄清......
任何幫助嗎?
<!DOCTYPE html>
<html>
<head>
<base href="http://demos.telerik.com/kendo-ui/grid/api">
<style>html { font-size: 14px; font-family: Arial, Helvetica, sans-serif; }</style>
<title></title>
<link rel="stylesheet" href="//kendo.cdn.telerik.com/2015.3.1111/styles/kendo.common-material.min.css" />
<link rel="stylesheet" href="//kendo.cdn.telerik.com/2015.3.1111/styles/kendo.material.min.css" />
<script src="//kendo.cdn.telerik.com/2015.3.1111/js/jquery.min.js"></script>
<script src="//kendo.cdn.telerik.com/2015.3.1111/js/kendo.all.min.js"></script>
</head>
<body>
<div id="grid"></div>
<script>
jQuery(document).ready(function(){
$("#grid").kendoGrid({
columns: [
{ field: "Name" },
{ field: "Age" },
{ command: "edit" }
],
dataSource: {
data: [
{ id: 1, Name: "Reddy Prasad", Age: 30 },
{ id: 2, Name: "Gaurav Kapadia", Age: 33 }
],
schema: {
model: { id: "id" }
}
},
editable: {
mode: "popup",
window: {
title :"This is the title"
}
},
toolbar: [{ name: 'create', text: 'Add' }]
});
});
</script>
</body>
</html>
請參見[56, 「問題‘’包括在他們的頭銜?」 標籤(http://meta.stackexchange.com/questions/19190/should-questions-include-tags在他們的標題),共識是「不,他們不應該」! –