In Development
Last Updated: 30 Jul 2026 18:19 by Christian
Christian
Created on: 28 Jul 2026 20:12
Category: Grid
Type: Bug Report
0
Bug in the Grid component when used in combination with a ContextMenu

------------------- AI Summary -------------------

There appears to be a bug in the Grid component when used with a ContextMenu. To reproduce:

  1. Create a new Telerik ASP.NET Core MVC application using version 2026.2.520 and select the “Grid and Menu” template.
  2. In Index.cshtml, add .ContextMenu() to the Grid, then build and run.
  3. Right-click a row → the context menu appears (expected).
  4. Stop debugging,
  5. remove .Scrollable() from Index.cshtml, and run again.
  6. Right-click a row → the context menu does not appear (unexpected).

--------------- End of AI Summary ---------------

Attached Files:
2 comments
Christian
Posted on: 30 Jul 2026 18:19
Hello Vasko
Thank you very much for the fast solution. I implemented the workaround and it works great.

Have a nice day
Christian
ADMIN
Vasko
Posted on: 30 Jul 2026 09:30

Hello Christian,

Thank you for reporting this issue, I have tested it and confirmed that this is a bug with the Grid and context menu. As a workaround, you can overwrite the internal context menu options and enable it for non-scrollable grids:

$(document).ready(function() {
    let grid = $("#grid").getKendoGrid();

    grid.tbodyContextMenu.setOptions({
       filter: ".k-grid-content .k-table-td, .k-grid-content-locked .k-table-td, .k-grid-pinned-container .k-table-td, .k-table-tbody .k-table-td",
    })
})

You can take a closer look at this workaround in the following REPL.

As a token of gratitude, I have updated your Telerik Points and converted your ticket to a bug report.

    Regards,
    Vasko
    Progress Telerik

    Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.