function BindGrid(dData) {
$("#grid").kendoGrid({
dataSource:
{
data: dData,
schema: {
data: "Data",
total: "Total"
},
serverPaging: false,
serverFiltering: false,
serverSorting: false
},
filterable: {
ui: function (element) {
element.kendoDatePicker({
format: "MMM dd, yyyy",
parseFormats: ["dd-MMMM-yyyy"]
});
}
},
sortable: true,
pageable: {
pageSize: 100,
pageSizes: [100, 200, 300, 400],
//messages: {
// itemsPerPage: "Products",
// display: "{0}-{1} from {2} Products",
// empty: "No data",
// allPages: "Show All"
//}
},
sortable: {
allowUnsort: false
},
columns: [
{ field: "Person", title: "@Html.LanguageLabel("Product.Person")", width: "180px" },
{ field: "DownloadedDate", title: "@Html.LanguageLabel("Product.DownloadedDate")", type: "date", width: "100px", template: "#= kendo.toString(kendo.parseDate(DownloadedDate), 'MMM dd, yyyy') #" },
{ field: "DownloadedTime", title: "@Html.LanguageLabel("Product.DownloadedTime")", width: "100px" },
{ field: "Company", title: "@Html.LanguageLabel("Product.Company")", width: "180px" },
{ field: "StateName", title: "@Html.LanguageLabel("State")", width: "150px" },
{ field: "PhoneNumber", title: "@Html.LanguageLabel("Product.PhoneNumber")", width: "120px" },
{ field: "EmailId", title: "@Html.LanguageLabel("Product.Email")", width: "250px" },
],
});
}
答案 0 :(得分:0)
Kendo Grid存在一个已知问题,其中日期过滤不会忽略时间戳(即小时/分钟/秒),而仅与月/日/年不匹配。