Hi,
I am using following code to bind my grid, i want to change default date filter to "is before or equal to" instead of "is equal to" and i want to hide all remaining filter options except "is before or equal to" and "is after or equal to"
$(gridid).kendoGrid({
dataSource: {
data: dSource,
schema: {
model: {
fields: {
Title: { type: "string" },
Location: { type: "string" },
Status: { type: "string" },
StartDate: { type: "date" },
Start: { type: "date" }
}
}
},
pageSize: 10
},
pageable: true,
sortable: {
mode: "single"
},
filterable: {
mode: "row",
operators: {
string: {
contains: "Contains"
}
}
},
height: 450,
columns: [
{
field: "Title", title: "Title",
filterable: {
cell: {
operator: "contains"
}
}
},
{
field: "StartDate", title: "Start", template: "#= kendo.toString(Start, 'h:mm tt dd/MM/yy') #", width: "150px",
//filterable: {
// cell: {
// //template: datePicker,
// operator: {
// gte: "After or equal to",
// lte: "Before or equal to",
// eq: "On"
// }
// }
//}
},
]
});