Have html links in diagram shape

6 posts, 0 answers
  1. Pierre
    Pierre avatar
    10 posts
    Member since:
    May 2015

    Posted 17 Jun 2015 Link to this post

    Hi,

    I am trying to build a diagram with clickable html links inside the shapes.

    I could not find a way to do this.

    Please help.

    Regards

  2. Daniel
    Admin
    Daniel avatar
    2118 posts

    Posted 19 Jun 2015 Link to this post

    Hello Pierre,

    Using HTML elements is not supported by the diagram. If you wish to navigate to another page when a shape is clicked they you could change the window.location in the diagram click event.

    Regards,
    Daniel
    Telerik
     
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
     
  3. Kendo UI is VS 2017 Ready
  4. Itai
    Itai avatar
    33 posts
    Member since:
    Feb 2016

    Posted 07 Apr in reply to Daniel Link to this post

    Is it possible in this way to have multiple different links from different parts of the same shape? 

    That is, I want to have one shape, with say a text that links to one site, and a text that links to another. Bot inside the same diagram shape (for connections/layout logic). 

    I am creating the shape as a Group with a visual template function. 

  5. Daniel
    Admin
    Daniel avatar
    2118 posts

    Posted 11 Apr Link to this post

    Hello,

    This is not supported by the diagram. Events are currently only triggered for the entire shape and not particular elements. It should be possible to implement it via the drawing API which triggers click for each element - example.

    Regards,
    Daniel
    Telerik
     
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
     
  6. Itai
    Itai avatar
    33 posts
    Member since:
    Feb 2016

    Posted 11 Apr in reply to Daniel Link to this post

    Thank you for this example. Can you tell me what is the type of `diagram.canvas` or `diagram.canvas.surface`? I can't seem to find it in the Kendo API Reference. A link to reference documents would also be greatly appreciated. 
  7. Daniel
    Admin
    Daniel avatar
    2118 posts

    Posted 13 Apr Link to this post

    Hi,

    surface is an instance of kendo.drawing.Surface. canvas is an internal object used by the diagram to hold the surface.

    Regards,
    Daniel
    Telerik
     
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
     
Back to Top
Kendo UI is VS 2017 Ready