gpt4 book ai didi

kendo-ui - Kendo UI过滤器菜单关闭事件?

转载 作者:行者123 更新时间:2023-12-04 18:41:11 27 4
gpt4 key购买 nike

Hello 使用类似于此示例的复选框实现了自定义过滤器菜单:

http://dojo.telerik.com/@SiliconSoul/oBoCu

我的问题是,如果用户选择/取消选择了一些复选框,但从不点击“过滤器”按钮。我基本上想将他们的选择重置为菜单关闭之前最初的选择,但不认为过滤器菜单有这样的事件。

如何绑定(bind)到菜单关闭?

最佳答案

看起来过滤器菜单是一个 kendoPopup,它有一个关闭事件。

$(#my-popup).data("kendoPopup").bind("close", function (e) {
console.log("filter menu closed");
});

由于我使用了 kendoGrid 的 filterMenuInit 事件,所以可以通过 Event.Container 访问过滤器菜单容器

http://docs.telerik.com/kendo-ui/api/javascript/ui/grid#events-filterMenuInit
event.container.data("kendoPopup").bind("close", function (e) {
console.log("filter menu closed");
});

关于kendo-ui - Kendo UI过滤器菜单关闭事件?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/26150706/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com