New to Kendo UI for Angular? Start a free 30-day trial

Persisting the Column Order in the Grid

Environment

ProductProgress® Kendo UI for Angular Grid

Description

How can I persist the order of the Grid columns?

Solution

Generate the Grid columns in the markup with the Angular *ngFor directive which iterates an array. This approach allows to reset the initial order of the columns when refreshing the browser, after the columns have been reordered, or at any other event.

Example
View Source
Edit In Stackblitz  
Change Theme:

For a more complex example on persisting the complete Grid state, refer to the article on persisting the state of the Grid.

In this article

Not finding the help you need?