1
내 kendoUI 그리드에 대한 날짜 시간 정렬에 문제를 겪고을 정렬되지, my grid snapshot로 참조 날짜가 올바르게 정렬됩니다 "(가장 최근의 시간에서 날짜로 분류)하지만 시간하지, 어디 Jul/08/2016 15:04:22 "상단에 있어야합니다 (내 스냅 샷에 표시).시간이 제대로 KendoUI 그리드
내 코드 :
self.gridDataSource = new kendo.data.DataSource({
sort: { field: "start_time", dir: "asc" },
schema: {
model: {
fields: {
start_time: { type: "date" },
}
}
}
});
self.myGrid = {
selectable: true,
resizable: true,
sortable: true, // todo: fix sorting issue
dataSource: self.gridDataSource,
filterable: true,
columns: {
field: "start_time",
title: "Start Time",
width: "180px",
filterable: false,
template: "#= kendo.toString(kendo.parseDate(start_time), 'MMM/dd/yyyy HH:mm:ss') #",
attributes: { style: "text-align: center; " },
format: "{0:MM/dd/yyyy}"
}
}
: 그것은 문제가 해결되지 않는 "{0 : MM/DD/YYYY의 HH : mm SS}"' –
, 나는 I가 있다고 생각 그것을위한 정렬 알고리즘을 만든다. – gijonc