Possible Diagram Bug?

3 posts, 0 answers
  1. Kevin
    Kevin avatar
    7 posts
    Member since:
    Oct 2015

    Posted 01 Apr Link to this post

    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. Kevin
    Kevin avatar
    7 posts
    Member since:
    Oct 2015

    Posted 01 Apr Link to this post

    I figured out my problem here (the datasource had not yet retrieved all its values, so the shapes array was null)...
  3. Kendo UI is VS 2017 Ready
  4. Vessy
    Admin
    Vessy avatar
    1388 posts

    Posted 04 Apr Link to this post

    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!
     
Back to Top