We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 2bdd8d3 + dce12af commit 6033a7eCopy full SHA for 6033a7e
samples/grids/grid/custom-context-menu/src/index.tsx
@@ -34,7 +34,7 @@ export default function App() {
34
function rightClick(grid: IgrGridBaseDirective, event: IgrGridContextMenuEventArgs) {
35
const eventArgs = event.detail;
36
eventArgs.event.preventDefault();
37
- const node = eventArgs.cell.id;
+ const node = eventArgs.cell.cellID;
38
const isCellWithinRange = grid.getSelectedRanges().some((range: any) => {
39
if (node.columnID >= range.columnStart &&
40
node.columnID <= range.columnEnd &&
@@ -61,7 +61,7 @@ export default function App() {
61
}
62
63
function copySelectedRowData() {
64
- const selectedData = gridRef.current.getRowData(clickedCell.id.rowID);
+ const selectedData = gridRef.current.getRowData(clickedCell.cellID.rowID);
65
copyData(selectedData);
66
closeContextMenu();
67
0 commit comments