我尝试从Kendo网格过滤器的下拉列表中删除一个项目。但它仍然呈现。我怎样才能达到这样的行为?从Kendo网格过滤器中删除选项
$("#grid").kendoGrid({
columns: [
{ field: "someDate", type: "date" }
],
dataSource: [
{ someDate: "2016-3-29"},
{ someDate: "2016-3-30"}
],
filterable: {
extra: true,
operators: {
date: {
gte: "Is after or equal to",
lte: "Is before or equal to"
}
}
},
filterMenuInit: function(e) {
e.container.find("select:eq(0)>option")[1].remove();
e.container.find("select:eq(1)>option")[1].remove();
e.container.find("select:eq(2)>option")[0].remove();
}
});
Link on dojo。 请帮忙。
编辑: 我需要两个复杂的日期过滤器。在第一个过滤器中,我只需要“等于或等于”,然后是“AND”,而在第二个过滤器中,我只需要“等于或等于”。我尝试通过从第一个下拉列表中删除“Is before或equal to”,并从第二个下拉列表中删除“Is after or equal to”。
它不会帮助我。我需要两个复杂的日期过滤器。在第一个过滤器中,我只需要“等于或等于”,然后是“AND”,而在第二个过滤器中,我只需要“等于或等于”。我不能这样做。 – Neshta
为了更加清晰,我添加了一些细节。 – Neshta