[英]Why is there no hide/show column event for the Kendo Grid for Angular
I have a Kendo Grid for Angular in my Angular application.我的 Angular 应用程序中有一个用于 Angular 的 Kendo Grid。 We've enabled the columnMenu feature that allows you to hide/show columns from a popup:我们启用了 columnMenu 功能,该功能允许您从弹出窗口中隐藏/显示列:
I'm surprised to find that the ColumnMenu documentation lists no events that fire when a column is hidden/shown:我很惊讶地发现 ColumnMenu 文档没有列出隐藏/显示列时触发的事件:
https://www.telerik.com/kendo-angular-ui/components/grid/columns/menu/ https://www.telerik.com/kendo-angular-ui/components/grid/columns/menu/
So I'm wondering if there is a way to hook a handler to the showing or hiding of columns in response to hitting the "apply" button on the column menu (or just a handler for the column menu apply button itself).所以我想知道是否有办法将处理程序挂钩到列的显示或隐藏以响应点击列菜单上的“应用”按钮(或只是列菜单应用按钮本身的处理程序)。
Hi I was also surprised.你好,我也很惊讶。
Here is a quick workaround :这是一个快速的解决方法:
`(columnVisibilityChange)="onVisibilityChange()"`
You can add this on your HTML grid definition and catch it.您可以将其添加到 HTML 网格定义中并捕获它。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.