0
我有一個簡單的數據源,我試圖加載到一個kendoui網格中,但它沒有顯示 - 我做錯了什麼?爲什麼我的本地數據集不能在kendoui網格中加載?
$(document).ready(function() {
var hisGrid = $("#hisGrid").kendoGrid({
dataSource: {
data: hisDS,
schema: {
model: {
id: "ID",
fields: {
HIS_DT: {
type: "string",
editable: false
},
HIS_VAL: {
type: "string",
editable: false
}
}
}
},
pageSize: 10
},
height: 500,
scrollable: true,
sortable: true,
selectable: true,
columns: [{
field: "HIS_DT",
title: "Date/Time",
width: 10
}, {
field: "HIS_VAL",
title: "History",
width: 5
}]
}).data("kendoGrid");
});
這裏的a jsfiddle的例子
將不勝感激新鮮一雙眼睛!
謝謝
謝謝OnaBai ... – user2225394