Hi Hamid,
We have created a JSplayground to achieve your requirement. Please refer to the below JSplayground link and the code example. We have not refreshed our documentation online. We will refresh it with our volume 3 service pack 1 release, which is scheduled to be released by the end of October, 2015.
JSPlayground link: http://jsplayground.syncfusion.com/jdguesgq
Code example:
<script type="text/javascript">
$("#diagram").ejDiagram({
//enable the context menu in the diagram
enableContextMenu: true,
contextMenu: {
// define the custom context menu items.
items: [
{
// name of the context menu item
name: "zoom",
// Text to be displayed
text: "Zoom",
},
],
// hide the default context menu items.
showCustomMenuItemsOnly: true
},
contextMenuBeforeOpen: function (args) {
//do your custom action here.
},
contextMenuClick: function (args) {
//do your custom action here.
}
}
});
</script>
Regards,
Shyam G