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

Problems with ejDiagram control


I've got several problems with your ejDiagram control. First of all, connectors sometimes change their positions when you color the blocks. The second problem is that when you use irregular shaped block, the connector is attached to the rectangle taken by the block, not to the block itself. The last problem is that some blocks, for example "DataSource" disappear when you change its color.

Additionally I enclose jsplaygroundand and video with example of this situation:

Thanks in advance for solving my problem.

3 Replies

SG Shyam G Syncfusion Team October 5, 2016 10:43 AM UTC

Hi Karol, 
You have passed an entire node in the updateNode method instead of passing a node’s properties(example:fillColor) alone in it. We have modified your code example to resolve your reported issue. 
Code example: 
    function changeFillColor() { 
        diagram = getDiagramObj(); 
        var color = $("#sb-input-colorPicker").ejColorPicker("getValue"); 
        diagram.updateNode(currentNode.name, { fillColor: color }); 
Shyam G 

KW Karol Wlodarek October 19, 2016 11:49 AM UTC

Thanks for answer.
It works correctly.


SG Shyam G Syncfusion Team October 20, 2016 06:13 AM UTC

Hi Karol, 
Thanks for your update.  
Shyam G 

Live Chat Icon For mobile
Up arrow icon