简体   繁体   中英

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. We've enabled the columnMenu feature that allows you to hide/show columns from a popup:

在此处输入图片说明

I'm surprised to find that the ColumnMenu documentation lists no events that fire when a column is hidden/shown:

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM