This is a migrated thread and some comments may be shown as answers.

Column chooser

1 Answer 851 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Cooler
Top achievements
Rank 1
Veteran
Cooler asked on 04 Nov 2020, 06:17 PM
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

Sort by
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 boolean property. 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/.

Tags
Grid
Asked by
Cooler
Top achievements
Rank 1
Veteran
Answers by
Martin Bechev
Telerik team
Share this question
or