3
我想在劍道網格中填充動態圖像。 我正在獲取json數據。在劍道網格中顯示動態圖像
而且我下面的代碼
var grid = $("#timeSegmentGrid").kendoGrid({
//var icon='';
dataSource: {
transport: {
read: function (options) {
getTimeSegmentList("", onSuccess, null);
function onSuccess(responseData) {
if (responseData.segments != null)
options.success(responseData.segments);
else
options.success([]);
}
}
},
pageSize: 5
},
pageable: {
input: true,
numeric: false,
pageSizes: false,
refresh: true
},
toolbar: kendo.template($("#template").html()),
columns: [
{ field: "display_name", title: "&{'Name'}" },
{ field: "display_order", title: "&{'Display Order'}" },
{ field: "icon",
title: "Icon"
}
]
}).data("kendoGrid");
「圖標」 包含圖像路徑。現在,我可以打印路徑,但我真的不知道如何根據該路徑顯示圖像。任何幫助,高度讚賞。