Use ContextMenu on Grid Cell
|Product||Grid for Progress Kendo UI|
I want to add a drill-down options functionality to a Grid cell and have it work in the following way:
- Right-click a Grid cell.
- View a ContextMenu with the available drillable options.
- 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?
- Initialize the ContextMenu over the Grid rows.
- On the
selectevent of the ContextMenu, retrieve the row information by using the
dataItemmethod of the Grid.
For more information, refer to:
This Dojo example demonstrates the full implementation of the scenario.