Hi!
I'm brand new to this framework and learning a lot so apologies if this is a silly question.
I have created a grid - it has a text column and a chip column that represents the status of the record. I implemented a context menu for the grid rows but it is not triggered on the chip column...just on the text column. How can I fix this?
Here is my code:
<Grid
className="custom-grid"
data={people.slice(page.skip, page.take + page.skip)}
skip={page.skip}
take={page.take}
total={people.length}
scrollable="none"
pageable={{
buttonCount: 3,
responsive: false,
pageSizeValue: pageSizeValue,
}}
onPageChange={pageChange}
onContextMenu={handleContextMenu}
>
<GridColumn field="PersonName" title="Full Name" />
<GridColumn
field="Status"
title="Status"
cell={(props) => (
<ChipCell
{...props}
text={props.dataItem['Status']}
className={props.dataItem['Color']}
/>
)}
width="12.5rem"
/>
</Grid>
<ContextMenu
className="custom-context-menu"
show={show}
offset={offset.current}
// onSelect={handleOnSelect}
onClose={handleCloseMenu}
>
<MenuItem text="Option 1" />
<MenuItem text="Option 2" />
</ContextMenu>
</div>