This is a migrated thread and some comments may be shown as answers.

Cannot read property 'connections' of undefined

2 Answers 73 Views
Diagram
This is a migrated thread and some comments may be shown as answers.
Ralph
Top achievements
Rank 1
Ralph asked on 26 Jan 2015, 03:13 PM
Hello,

I am having an issue with the diagram that occurs when I try to set the connectors property on the ShapeOptions for a new Shape.
I only want to show the left and right connectors which works fine, however if I do not release the connector exactly on top of the connector handle I receive the error: Cannot read property 'connections' of undefined. If I do not set the connectors property releasing the connector anywhere on the shape will cause the diagram to map it to the best path as expected.
I have created a sample in the Dojo: http://dojo.telerik.com/iREkA/8

Thanks

2 Answers, 1 is accepted

Sort by
0
Ralph
Top achievements
Rank 1
answered on 26 Jan 2015, 03:31 PM
This issue can be closed. Adding "auto" to the list has fixed the issue, however the diagram shouldn't generate an error if this occurs.
0
Accepted
Daniel
Telerik team
answered on 28 Jan 2015, 02:35 PM
Hello Ralph,

Indeed, you are right. The connection assumes that there is an auto connector and will throw an error if there isn't. We will fix this for one of the next internal builds and I also updated your Telerik points for the bug report.

Regards,
Daniel
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
Tags
Diagram
Asked by
Ralph
Top achievements
Rank 1
Answers by
Ralph
Top achievements
Rank 1
Daniel
Telerik team
Share this question
or