• What is KendoReact
  • Getting Started
  • Server Components
  • Components
  • Sample Applications
  • Styling & Themes
  • Common Features
  • Project Setup
  • Knowledge Base
  • Changelog
  • Updates
  • Troubleshooting

Store Grid columns width and order in the localStorage

Environment

Product Version5.9.0
ProductProgress® KendoReact

Description

I want to store the order and the width of the Grid columns on resizing and reordering.

Solution

Handle the onColumnResize and onColumnReorder to get reference to the updated columns collection and store it in a localStorage variable. The columns definition of the Grid can then be loaded from that collection.

Following is an example demonstrating this approach:

Example
View Source
Change Theme:

In this article

Not finding the help you need?