Approved
Last Updated: 29 Oct 2019 09:25 by ADMIN
Holger
Created on: 23 Nov 2018 07:41
Category: Kendo UI for Angular 2+
Type: Feature Request
11
Grid: save/restore columns state

Current behavior
The grid component already has the functionality to resize and reorder columns by the user, but is missing functionality for saving an restoring columns configuration, so that changes done by the user are lost after a page change.

There is the Persist the State article in the "How to section" in the documentation, but the described solution is only applicable when adding grid columns by using *ngFor. When defining columns in the markup, due to extensive usage of templates (kendoGridColumnMenuTemplate, kendoGridFilterMenuTemplate, kendoGridCellTemplate, ..), there is no reasonable solution available.

Expected behavior
Provide methods, similar to the jQuery grid, to save and restore columns configuration. This should at least include the column's order, width and sort.

 

PS: This is not a duplicate of the feature request Add persistent state for grid (and other components). The latter one has been marked as "Completed" but does not include the needed functionality.

3 comments
ADMIN
Dimiter Topalov
Posted on: 29 Oct 2019 09:25

Hi Augusto,

The discussed feature request for built-in Grid Save/Restore column configuration methods is still not a part of our immediate plans, as we are currently focusing our development efforts on more critical Grid features like the Column virtualization, and the long-waited new dedicated TreeList component.

We are still tracking all feature requests, and periodically re-evaluate the customer demand, and include some items from the Feedback portal in our roadmap.

However, as the documentation article on persisting the Grid state and columns config covers the scenario well, we can still recommend using this approach (alongside custom logic for conditional display of various templates until the feature request for built-in methods gains enough popularity and our management decides to include it in the roadmap.

Thank you for the understanding.

Regards,
Dimiter Topalov
Progress Telerik

Get quickly onboarded and successful with your Telerik and Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Augusto
Posted on: 22 Oct 2019 21:54

Hi @Dimiter,

Has been any progress on this?

Or maybe should I still follow the approach you suggested here about using *ngFor together with *ngIf to customize the templates?

Alternatively, you can use the *ngFor column generation (like in the examples), and provide custom logic (*ngIf or *ngSwitch) in the templates markup to determine which cell template should be used, based on some other column property (like for example the column title), i.e. list all possible templates and determine which one will be used via *ngIf/*ngSwitch based on the column title (that will be available for each item in the *ngFor loop).

Thanks.

ADMIN
Dimiter Topalov
Posted on: 30 Nov 2018 06:13
Hello Holger,

Thank you for sharing your request. It is approved and we will update this feedback item further once we have started the development of this feature.

Regards,
Dimiter Topalov
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.