Hello
The context menu in a Datagrid opens on right click desktop and long press on mobile/small screens. Is it possible to open the context menu in code on say the OnRecordClick event?
tHA
Hi Ditchford,
Greetings from Syncfusion support.
Based on your query, it appears that you want to open the context menu
programmatically using a button click. We would like to inform you that we
currently do not have any public methods to directly open the context menu
programmatically.
However, you can perform context menu operations individually using the following methods, depending on your specific requirements:
|
Items |
Description |
API References |
|
AutoFit |
Auto fit the current column. |
|
|
Edit |
Edit the current record. |
|
|
Delete |
Delete the current record. |
|
|
Save |
Save the edited record. |
|
|
Cancel |
Cancel the edited state. |
|
|
Copy |
Copy the selected records. |
|
|
PdfExport |
Export the DataGrid data as Pdf document. |
|
|
ExcelExport |
Export the DataGrid data as Excel document. |
|
|
CsvExport |
Export the DataGrid data as CSV document. |
|
|
Group |
Group the current column. |
|
|
Ungroup |
Ungroup the current column. |
|
|
SortAscending/ Descending |
Sort the current column in ascending/ descending order. |
|
|
First/NextPage |
Go to the first/next page. |
Please refer to the provided API links for more details on each context menu
item. If you have any further queries, please get back to us.
Regards,
Sarvesh
Hello
Thanks, I have achieved this with a separate component using your context menu control (SfContextMenu). I can call this on the click event.
Thanks anyway. Please close.
Thanks for an update,
From your query, we suspect that your issue has been resolved on you own.
If you have any further queries, please get back to us.