Edit this page

Use ContextMenu on Grid Cell

Environment

Product Progress Kendo UI Grid

 

Description

I want to add a drill-down options functionality to a Grid cell and have it work in the following way:

  1. Right-click a Grid cell.
  2. View a ContextMenu with the available drillable options.
  3. Once you click an action from the menu, I want to retrieve the sender cell parameters—for example, row id, column id, value, and others—depending on the action that is needed.

I achieve a similar functionality by using a tooltip which fires on a left-click and allows me to retrieve the sender-cell data through the selected method of the Grid. However, I want to improve this solution.

How can I append a Kendo UI ContextMenu to each cell or part of the cells in a Kendo UI Grid?

Solution

  1. Initialize the ContextMenu over the Grid rows.
  2. On the select event of the ContextMenu, retrieve the row information by using the dataItem method of the Grid.

For more information, refer to:

For the full implementation of the approach, refer to this Dojo example.

Is this article helpful? Yes / No
Thank you for your feedback!

Give article feedback

Tell us how we can improve this article

close
Dummy