【发布时间】:2016-03-29 13:41:25
【问题描述】:
我尝试从 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();
}
});
dojo 上的链接。 请帮忙。
已编辑: 我需要两个复杂的日期过滤器。在第一个过滤器中,我只需要“在或等于之后”,然后是“AND”,在第二个过滤器中,我只需要“在或等于之前”。我尝试通过从第一个下拉列表中删除“之前或等于”并从第二个下拉列表中删除“之后或等于”来做到这一点。
【问题讨论】:
标签: javascript kendo-ui telerik kendo-grid