Persisting columns chosen with tree list

1 Answer 13 Views
TreeList
Peter
Top achievements
Rank 1
Peter asked on 10 Apr 2024, 07:29 AM

Hello everyone

I would like to persist the selection of columns in a kendo treelist, such that when a user reloads the page their selection of columns remains the same.

Is there a way of hooking into the events that take place when a selection is applied?

For example, in the picture attached, if the user were to select to display 'Description Two' and hit apply, then I would like for all three columns to be displayed on next reload. Likewise if a user were to hide both Description columns, then only the 'Name' column would be displayed on next reload. All three would still show up in the column chooser in this example, just that two of them would be turned off.

What might I do to achieve this in Angular15?

Best regards

1 Answer, 1 is accepted

Sort by
0
Martin Bechev
Telerik team
answered on 11 Apr 2024, 08:51 AM

Hi Peter,

The Kendo UI for Angular Grid doesn't provide built-in state persistence functionality.

When the columns are hidden/shown the columnVisibilityChange event is triggered. Based on the returned information the developer can decide to show or hide the columns by using ngIf directive.

If using the dynamic approach of generating the columns, edit the column array configuration manually and exclude the necessary columns.

I hope this helps.

Regards,
Martin
Progress Telerik

Stay tuned by visiting our public roadmap and feedback portal pages! Or perhaps, if you are new to our Kendo family, check out our getting started resources
Tags
TreeList
Asked by
Peter
Top achievements
Rank 1
Answers by
Martin Bechev
Telerik team
Share this question
or