New to KendoReactStart a free 30-day trial

Hide Columns Initially and Reflect Changes from Column Menu in KendoReact Data Grid

Updated on Oct 31, 2025

Environment

Product KendoReact Data Grid
Version Current

Description

When using the KendoReact Data Grid with hidden columns on initial render, the column menu settings fail to update the visibility of the columns in the grid. Updating the column visibility using the column menu does not affect the grid display.

Cause

The id property of the GridColumn is required for column state management and synchronization with the column menu. If the id property is missing, the grid cannot properly update the column visibility based on the column menu settings.

Solution

To ensure the grid reflects the column visibility changes from the column menu, add the id property to each GridColumn, matching the id defined in the columnState.

Steps:

  1. Define the id property for each GridColumn.
  2. Assign the id values from the columnState to the respective columns.

Example

Change Theme
Theme
Loading ...

Here, the id property is added to each GridColumn, ensuring proper synchronization between the grid and column menu.

See Also