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

Have html links in diagram shape

5 Answers 298 Views
Diagram
This is a migrated thread and some comments may be shown as answers.
Pierre
Top achievements
Rank 1
Pierre asked on 17 Jun 2015, 08:56 AM

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

5 Answers, 1 is accepted

Sort by
0
Daniel
Telerik team
answered on 19 Jun 2015, 06:54 AM
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!
 
0
Itai
Top achievements
Rank 1
answered on 07 Apr 2016, 06:24 AM

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. 

0
Daniel
Telerik team
answered on 11 Apr 2016, 07:22 AM
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!
 
0
Itai
Top achievements
Rank 1
answered on 11 Apr 2016, 07:39 AM
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. 
0
Daniel
Telerik team
answered on 13 Apr 2016, 06:45 AM
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!
 
Tags
Diagram
Asked by
Pierre
Top achievements
Rank 1
Answers by
Daniel
Telerik team
Itai
Top achievements
Rank 1
Share this question
or