I am currently using DevExtreme version 23 with Angular 16, and I would like to know how I can make a button inside the datagrid open a DXMenu upon clicking.
I have already tried implementing this feature, but I am facing some difficulties in achieving the desired functionality. Ideally, upon clicking the button, the DXMenu should appear with a list of options relevant to the selected row/item within the datagrid.
Could someone please provide guidance or a code snippet on how to accomplish this?
Thank you in advance for your assistance!
<dxi-column type="buttons" width="183px">
<dxi-button
text="SU"
hint="Setup Page"
></dxi-button>
<dx-context-menu
[dataSource]="menuItems"
[width]="120"
[itemClick]="onMenuItemClick">
</dx-context-menu>
</dxi-column>
For my understanding
dxContextMenuis for right click use. I suggest you to use adxDropDownButtoninside a columncellTemplate.Example: