Hi Stratos,
Requirement:” Need to Customize the ContextMenu for Nodes”.
We have support to achieve your requirement and Provided a sample to represent this. Please refer to sample link as below.
Sample details:
In sample, we have set the Diagram Menu as null. So the ContextMenu did not shown for Nodes and Connectors. We have customized the contextmenu for Nodes in the ItemSelectedEvent by disabling the InheritMenu Constraints for Nodes.
Constraints and ContextMenu Behavior:
Constraints are used to enable/disable certain behaviors of the SfDiagram, Node and Connector. The default value of Menu property for Node and Connector is null. So, the Default(SfDiagram) ContextMenu is shown for Nodes and Connectors. In order to Replace the ContextMenu for Nodes/Connectors, we have disable the InheritMenu Constraints and enable the Menu Constraints for Nodes/Connectors.
Note:
For more details about ContetMenu customization, please visit our online help documentation from the below link.
Documentation Link:
Additional Information:
In Volume 4 release, we have provided a DiagramMenuOpeningEvent support for Diagram to customize the ContextMenu and MenuItem for Nodes and Connectors.
Regards,
Keerthivasan R.