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

Possible Diagram Bug?

2 Answers 120 Views
Diagram
This is a migrated thread and some comments may be shown as answers.
Kevin
Top achievements
Rank 1
Kevin asked on 01 Apr 2016, 06:27 PM

When I do this in my javascript:

 

            var diagram = $("#template-diagram").getKendoDiagram();
            diagram.bringIntoView(diagram.shapes[0], { align: "center" });

This shows up in the browser's debugger (using Firefox):

Error: i is undefined
k<.bringIntoView@http://localhost:8000/lib/kendo-ui/js/kendo.all.min.js:104:8505

 

In Chrome it looks like this:

TypeError: Cannot read property 'clone' of undefined
    at R.extend.bringIntoView (kendo.all.js:157101)

Which is likely why I can't get bringIntoView to work for my diagram.  I should mention, I am using the diagram in a JqueryUI dialog window, but otherwise, its a fairly simple diagram.

 

 

 

2 Answers, 1 is accepted

Sort by
0
Kevin
Top achievements
Rank 1
answered on 01 Apr 2016, 07:34 PM
I figured out my problem here (the datasource had not yet retrieved all its values, so the shapes array was null)...
0
Vessy
Telerik team
answered on 04 Apr 2016, 10:30 AM
Hello,

Thank you for the update, Kevin - we are glad you managed to find the cause of the problem. Feel free to reach us again should any further issue occurs.

Regards,
Vessy
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
Kevin
Top achievements
Rank 1
Answers by
Kevin
Top achievements
Rank 1
Vessy
Telerik team
Share this question
or