SfDiagramComponent Click event not firing after upgrade to 30.1.37
I've been using the SfDiagramComponent Click event for a couple years and it has always worked. But with the most recent release 30.1.37 the Click event is not firing
App is WASM.
I'm using a NodeTemplate, but I suspect the problem is not because of my code since it has worked just fine for years.
Did something change?
Help would be greatly appreciated.
Thanks
Hi Steve DeLollis,
We have created a sample and attempted to replicate the issue on our end, but the issue could not be reproduced. When we click on the node, the NodeTemplate click event is triggered as expected.
For your reference, we’ve shared both a working sample project and a video demonstration. We also tried to run the sample you shared, but it is not in a runnable state due to several missing components.
To help us investigate the issue more effectively and provide an accurate solution, we kindly request you to share a complete, runnable sample or a simplified version that clearly reproduces the issue.
Best Regards,
Jawin
Attachment: SF197066_b02a2d94.zip
Thanks for the quick response. Your example definitely works.
I'm experimenting and I took one of your examples, which uses DataSourceSettings, and the Click event does not work with the latest package but does work with the previous package.
In the attached project if you switch the package version between 29.2.11 and 30.1.37 you will see it work and then not work.
Please take a look.
Will attach project.
Thanks
Attached. It is currently set to 29.2.11 and works, switch to latest version and Click event does not work.
Attachment: SF727927_8c8558c9.zip
Hi Steve DeLollis,
We have reviewed the behavior and confirmed that it is not a bug. When InteractionController="@DiagramInteractions.ZoomPan" is enabled, the click event being triggered is not the expected behavior, as ZoomPan mode is specifically intended for panning and zooming—selection of diagram elements is disabled in this mode.
To align with the intended functionality, we have corrected this behavior. If you need the click event to be triggered without allowing selection of diagram elements, you can enable DiagramInteractions.SingleSelect and disable selection by modifying the constraints as shown below:
diagramInteractions = DiagramInteractions.ZoomPan | DiagramInteractions.SingleSelect;
OnNodeCreating:
node.Constraints = NodeConstraints.Default & ~NodeConstraints.Select;
OnConnectorCreating:
connector.Constraints = ConnectorConstraints.Default & ~ConnectorConstraints.Select;
This configuration ensures that elements are not selectable, but the click event will still be fired.
We have shared a sample demonstrating this setup—please check it and let us know if you need any further clarification or assistance.
Best Regards,
Jawin
Attachment: SF727927_8c8558c9_2506201b.zip
Thanks a lot for your help on this. The demo works fine for me. I will make the relevant changes to my code shortly.
Hi Steve DeLollis,
You are welcome.
We are glad that the provided response meets your requirement. Please let us know if you require any further assistance on this. We will be happy to assist you.
Regards,
Preethi R
i made changes to my app and it all works. Thanks again for your assistance with this.
Hi Steve DeLollis,
You are welcome.
We are glad that the provided response meets your requirement. Please let us know if you require any further assistance on this. We will be happy to assist you.
Regards,
Preethi R
- 9 Replies
- 3 Participants
-
SD Steve DeLollis
- Jun 26, 2025 08:57 PM UTC
- Jul 15, 2025 05:14 AM UTC