Data source for the diagram

2 posts, 0 answers
  1. Devendra
    Devendra avatar
    16 posts
    Member since:
    Nov 2014

    Posted 25 Jun 2015 Link to this post

    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

     

     

     

     

  2. T. Tsonev
    Admin
    T. Tsonev avatar
    2770 posts

    Posted 29 Jun 2015 Link to this post

    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!
     
  3. Kendo UI is VS 2017 Ready
Back to Top