Skip to content

Grid's Toolbar Columns Menu breaks after setOptions() #8332

@kendo-bot

Description

@kendo-bot

Bug report

Grid's Toolbar Columns Menu breaks after setOptions()

Reproduction of the problem

  1. Go to and run this Dojo that combines the Toolbar Columns Menu demo and the Persist State demo: https://dojo.telerik.com/hVgwgCdr

  2. Click "Save State" so you have some state data to restore later.

  3. Click the Toolbar Columns Menu, uncheck "Contact Title", and click "Apply" to hide the column. The column gets hidden without a problem.

  4. Click "Load State" to restore the previous state data. The column is displayed again and things are fine.

  5. Click the Toolbar Columns Menu, uncheck "Company Name" and "Country", and click "Apply" to hide these columns.

  6. Observe only one of these two columns was hidden and the Toolbar Columns Menu remains visible.
    Open the Developer Tools, check the Console tab, and observe the error logged: "Uncaught TypeError: Cannot read properties of null (reading 'columns')"
    It appears the columns menu's "this.owner" gets set to null at some point in the process of calling setOptions() and never gets set back to a reference of the grid.

Ticket ID: 1695840

Environment

Kendo UI version: 2025.2.702
Browser: [all ]

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions