KendoUI表格grid支持复杂类型日期格式的转化
$("#grid").kendoGrid({
autoBind: false,
dataSource: {
type: "json",
pageSize: 20,
transport: {
read: "/api/app/"
}
},
width: "100%",
height: 350,
pageable: { pageSizes: true },
scrollable: true,
sortable: true,
selectable: true,
editable: false,
filterable: true,
columns: [
{ field: "PartNo", title: "零件图号", width: 200, locked: true },
{
field: "Orders.StartTime", title: "开始时间", width: 110,
template: '#= kendo.format("{0: yyyy-MM-dd}",kendo.parseDate(Orders.StartTime)) # '
}
]
});