Random Node Population using RadDiagam

3 posts, 0 answers
  1. Vinod
    Vinod avatar
    2 posts
    Member since:
    Jan 2015

    Posted 09 Jan 2015 Link to this post

    Hi team,

    I would like to populate nodes as like the attached image which i found on below documentation link (image at bottom of the page)


    It came to know there are algorithms which helps to avoid overlapping if more than 500+ nodes are populated in raddiagram with necessary TreeLayout settings. It would be helpful if you provide an example in MVVM way so that i can quickly make use of it in near future.

    Thanks a lot

  2. Vinod
    Vinod avatar
    2 posts
    Member since:
    Jan 2015

    Posted 11 Jan 2015 Link to this post

    Okay I got it. No need of any examples. I saw your good examples from your github.

    But I have one question, how to get a symmetrical tree by using your StartRadialAngle and EndRadialAngle properties of RadialTree type ?

    I will create nodes dynamically and I can tell the parent node only at runtime. Any Suggestions for how to use the layout settings in this scenario ?
  3. DevCraft R3 2016 release webinar banner
  4. Pavel R. Pavlov
    Pavel R. Pavlov avatar
    1165 posts

    Posted 13 Jan 2015 Link to this post

    Hello Vinod,

    When working with the Layout feature of the RadDiagram you need to keep in mind that the layout considers the way your shapes are connected. This means if you create a graph that is not symmetrical, the Layout algorithm will not create a symmetrical tree as well. This is why the most important step that you need to make is to create a symmetrical tree with your shapes before using the Layout algorithm.

    I cannot see any obstacle in using the Layout at runtime with dynamically added shapes. At the time of performing the Layout you can traverse all the available shapes and find the roots of your structure. After that you will be able to create the necessary settings for the needed layout and use them right after.

    Pavel R. Pavlov

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

Back to Top