Declined
Last Updated: 16 Mar 2015 16:11 by Elena
Hans
Created on: 15 Jul 2014 10:13
Category: Diagram
Type: Bug Report
1
Diagram cannot handle connectors that are only connected to one shape
A connector that is only connected to one shape cannot be imported via JSON.
Tested here:
http://demos.telerik.com/aspnet-ajax/diagram/examples/saveload/defaultcs.aspx

JSON:
{
    "shapes": [{
        "id": "nadal_winner",
        "background": "#f18100",
        "hover": {
            "opacity": 0.2
        },
        "cursor": "pointer",
        "content": {
            "align": "center middle",
            "text": "R. Nadal",
            "color": "#fff"
        },
        "selectable": true,
        "serializable": true,
        "enable": true,
        "type": "rectangle",
        "path": "",
        "visual": null,
        "x": 180,
        "y": 155,
        "minWidth": 20,
        "minHeight": 20,
        "width": 140,
        "height": 30,
        "connectors": [{
            "name": "Top",
            "description": "Top Connector"
        }, {
            "name": "Right",
            "description": "Right Connector"
        }, {
            "name": "Bottom",
            "description": "Bottom Connector"
        }, {
            "name": "Left",
            "Description": "Left Connector"
        }, {
            "name": "Auto",
            "Description": "Auto Connector"
        }],
        "rotation": {
            "angle": 0
        },
        "stroke": {
            "width": 0,
            "color": "#fff"
        },
        "connectorDefaults": {
            "background": "#444444",
            "stroke": {
                "color": "white"
            },
            "hover": {
                "background": "white",
                "stroke": {
                    "color": "#444444"
                }
            }
        },
        "undoable": false
    }],
    "connections": [{
        "from": {
            "shapeId": "nadal_winner",
            "connector": "Right"
        },
        "to": "OK6oDroWug",
        "id": "OK6oDroWug",
        "background": "Green",
        "hover": {
            "stroke": {}
        },
        "cursor": "pointer",
        "content": {
            "align": "center middle",
            "text": "",
            "color": "#444444"
        },
        "selectable": true,
        "serializable": true,
        "enable": true,
        "startCap": "none",
        "endCap": "none",
        "points": [],
        "stroke": {
            "width": 2,
            "color": "#6c6c6c"
        },
        "select": {
            "handles": {
                "width": 8,
                "height": 8,
                "background": "white",
                "stroke": {
                    "color": "#444444"
                }
            }
        }
    }]
}

1 comment
Elena
Posted on: 16 Mar 2015 16:11
Hello,
We kindly ask you to post your technical questions/problems in the support ticketing system (http://www.telerik.com/account/support-tickets/available-support-list.aspx) as this is the best way to reach our support staff - the support system assigns a response time for all of your questions, depending on your license and ensures that all questions will reach the respective developers, if needed. Alternatively, you can ask the community for help by posting your question in the online forums (http://www.telerik.com/community/forums.aspx). We try to monitor these requests as well, but we cannot guarantee they will be answered properly and in the expected timeframe.
Regards,
Telerik Team