Implementing RadOrgChart concerns

4 posts, 1 answers
  1. Mira
    Mira avatar
    5 posts
    Member since:
    Feb 2013

    Posted 09 Apr 2014 Link to this post

    We are currently researching the possibility to use the RadOrgChart to display the organization chart of our company, however i didn't find any functionality that we can use to display the Replacement of an employee, the assistant of the employee, and if we can use the chart to display several Roots. for example by head of departments.

    Thank you,
  2. Princy
    Princy avatar
    17421 posts
    Member since:
    Mar 2007

    Posted 09 Apr 2014 in reply to Mira Link to this post

    Hi Mira,

    I guess that you want to bind RadOrgChart with your database value. Please have a look into the sample code snippet which works fine at my end. 

    <telerik:RadOrgChart ID="RadOrgChart1" runat="server">

    protected void Page_Load(object sender, EventArgs e)
        String connstring = WebConfigurationManager.ConnectionStrings["ConnectionString"].ConnectionString;
        SqlConnection conn = new SqlConnection(connstring);
        SqlDataAdapter adapter = new SqlDataAdapter();
        adapter.SelectCommand = new SqlCommand("SELECT * from Employees ", conn);
        DataTable data = new DataTable();
        RadOrgChart1.DataSource = data;
        RadOrgChart1.DataFieldID = "EmployeeID";
        RadOrgChart1.DataFieldParentID = "ReportsTo";
        RadOrgChart1.DataTextField = "FirstName";

    Please elaborate your requirement if it doesn't help.
  3. DevCraft R3 2016 release webinar banner
  4. Mira
    Mira avatar
    5 posts
    Member since:
    Feb 2013

    Posted 09 Apr 2014 in reply to Princy Link to this post

    Thanks for your reply Princy.

    Your sample code snippet works fine on my end too.

    But we have a field in the database that saves the replacement of the employee and a flag that states that this employee IsAssistant to the parent. The requirement is to display the assistant and replacement as a different node in the tree or maybe display the data in the node, is there any way to display this data in the orgchart?


  5. Answer
    Plamen avatar
    2723 posts

    Posted 10 Apr 2014 Link to this post

    Hi Mira,

    Unfortunately in the current version RadOrgChart does not support assistant and replacement. One possible workaround may be to use Templates and add some additional custom icon inside the template to show some assistant or replacement.

    As for your second question by design RadOrgChart does not support multiple root items and multiple parents  because it is designed to illustrate a strongly hierarchical relationship. A possible workaround for this case is to have one general parent Node above the desired roots which will generalize them.

    Hope this information will be helpful. 


    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