Hello! Is it possible to get the selected columns in the <kendo-grid-column-chooser> inside my ts file?
Can't find it in the documentation. https://www.telerik.com/kendo-angular-ui/components/grid/api/ColumnChooserComponent/
1 Answer, 1 is accepted
0
Accepted
Martin Bechev
Telerik team
answered on 06 Nov 2020, 10:42 AM
Hi,
To get all visible columns, you can use Angular Template Reference Variable to get the reference of the Grid in the ts code. Each column has isVisible booleanproperty. Iterating the Grid's columns, we can extract all column which are currently visible in the Grid.
Also, the developer can handle the columnVisibilityChange() event, which fires each time when the user changes the visibility of the columns. The event returns the columns whose visibility is changed.
Regards,
Martin
Progress Telerik
Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.