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

Data source for the diagram

1 Answer 132 Views
Diagram
This is a migrated thread and some comments may be shown as answers.
Devendra
Top achievements
Rank 1
Devendra asked on 25 Jun 2015, 06:08 AM

Hello,

I have created a sample diagram. Please see the attachment(sample diagram.zip).  In this i have static data, may i know how we can have dynamic data  for the following.

1. Shapes  - i would like to define if it is circle or rectangular in the data source 

2. Connectors - content text, points need to be dynamic.

In additional to that, i would like to format the content like font size, alignment,color.

Can you please help me here on how to achieve these things.

 

Best Regards,

Devendra

 

 

 

 

1 Answer, 1 is accepted

Sort by
0
T. Tsonev
Telerik team
answered on 29 Jun 2015, 06:44 AM
Hello,

The diagram shapes can be customized through visual templates. This allows you to choose the shape at run-time, based on actual data.
See the editing demo, specifically the handling of the "President" shape. This is also where you handle content formatting.

The connections in the same demo are bound dynamically using a connections data source.
The API Reference shows how to bind connection labels as well.

Let us know if you have any additional questions.

Regards,
T. Tsonev
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
Devendra
Top achievements
Rank 1
Answers by
T. Tsonev
Telerik team
Share this question
or