Hi Prasert
Thanks for using Syncfusion products.
Please note that “click” event will be fired, if we set Models tool to ej.datavisualization.Diagram.Tool.SingleSelect along with ZoomPan and selectorconstraints as none. Please refer the code snippet below.
Code snippet:
$("#diagram").ejDiagram({
click: function click() {
alert("event fired");
},
selectedItems: { constraints: ej.datavisualization.Diagram.SelectorConstraints.None },
tool: ej.datavisualization.Diagram.Tool.SingleSelect | ej.datavisualization.Diagram.Tool.ZoomPan,
});
Please let me know if any concerns.
Regards,
Shyam G