Hello,
I'm trying to change the size and style of a diagram node by clicking a button in a client-side Blazor app. The method is:
public void ChangeNode()
{
DiagramNode node = diagram.GetNode("node1");
node.Width = 300;
node.Style.Fill = "black";
}
Nothing happens when clicking the button that calls the method (tried StateHasChanged() and DataBind() as well). It's giving me the following errors in the browser console:
I attached the relevant razor page. As basis, I used the sample file (BlazorApp1-535761195) from the thread below, which I modified with said method:
The sample file seemed to work at first with the ChangeNode() method, but after upgrading to the newest NuGet package, it also stopped working.
In addition, the whole diagram is extremely laggy when switching the selection from one node to the other.
Please let me know if this is an error with the component or if the app is not set up properly.
Thanks in advance!
Attachment:
Index_c1055a1f.7z