我有一个KendoGrid类似下面,当我运行应用程序时,我没有得到date列的预期格式.
$("#empGrid").kendoGrid({
dataSource: {
data: empModel.Value,
pageSize: 10
},
columns: [
{
field: "Name",
width: 90,
title: "Name"
},
{
field: "DOJ",
width: 90,
title: "DOJ",
type: "date",
format:"{0:MM-dd-yyyy}"
}
]
});
Run Code Online (Sandbox Code Playgroud)
当我运行它时,我2013-07-02T00:00:00Z在DOJ专栏中得到了" ".为什么不格式化?任何的想法?