We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

not possible to listen to events

Thread ID:





150592 Jan 13,2020 07:25 AM UTC Jan 23,2020 09:04 AM UTC Blazor 4
Tags: Diagram
Tobias Koller
Asked On January 13, 2020 07:25 AM UTC

I followed your example on 
to set events to the diagram.

It was not possible:
1. your example-cdoe uses UIMouseEventArgs which are now MouseEventArgs
2. When I try exactly the example I get the following error:

System.AggregateException: One or more errors occurred. (InvalidCharacterError: Failed to execute 'setAttribute' on 'Element': '@onmousedown' is not a valid attribute name.)
 ---> System.InvalidOperationException: InvalidCharacterError: Failed to execute 'setAttribute' on 'Element': '@onmousedown' is not a valid attribute name.
   at Microsoft.AspNetCore.Components.RenderTree.Renderer.InvokeRenderCompletedCallsAfterUpdateDisplayTask(Task updateDisplayTask, Int32[] updatedComponents)
   --- End of inner exception stack trace ---

Shyam G [Syncfusion]
Replied On January 14, 2020 10:19 AM UTC

Hi Tobias, 
Reported Issue : Native events doesn’t work for diagram components 
We can reproduce the issue. We have confirmed this as a defect. We have logged a defect report for this issue. We will fix this issue and provide the patch on weekly patch release 21th  January, 2020. 
Now, you can track the status of your request through below feedback link. 
Shyam G 

Shyam G [Syncfusion]
Replied On January 22, 2020 10:23 AM UTC

Hi Tobias,  
Reported Issue : Native events doesn’t work for diagram components 
We have fixed the reported issue and included it in our patch release (v17.4.44) which is rolled out successfully.   
Please upgrade to the latest version packages to resolve this issue.         
Shyam G  

Tobias Koller
Replied On January 22, 2020 10:28 AM UTC

yes it now works perfect.
thank you.

Is there a way to disable label-edit-functionallity on double-click of node?


Shyam G [Syncfusion]
Replied On January 23, 2020 09:04 AM UTC

Hi Tobias, 
Please set AnnotationConstraints as ReadOnly to disable the editing of label at runtime. Please refer to a code example, help documentation and the sample below. 
Code example: 
   DiagramNode node1 = new DiagramNode() 
            // Position of the node 
            OffsetX = 250, 
            OffsetY = 250, 
            // Size of the node 
            Width = 100, 
            Height = 100, 
            Annotations = new ObservableCollection<DiagramNodeAnnotation>() 
                new DiagramNodeAnnotation() 
                    Content = "Node", 
                    Constraints = AnnotationConstraints.ReadOnly 
            Style = new NodeShapeStyle() { Fill = "#6BA5D7", StrokeColor = "white" } 
Shyam G 


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile
Live Chat Icon