Issue with Viewing Org Chart

2 posts, 0 answers
  1. Taher
    Taher avatar
    2 posts
    Member since:
    Mar 2015

    Posted 01 Apr 2015 Link to this post

    Good Day,

    This is my first time to use Telerik OrgChart and I am facing some difficulties while trying to view it as it renders but doesn't show on the page.

    Below is my code.

    DataTable employees = new DataTable();

    employees.Columns.Add("EmployeeID", typeof(String));
    employees.Columns.Add("EmployeeName", typeof(String));
    employees.Columns.Add("DepartmentName", typeof(String));
    employees.Columns.Add("JobTitle", typeof(String));
    employees.Columns.Add("Parent", typeof(String));

    employees.Rows.Add("1111", "aaa", "aaa", "aaa", null);


    telerikOrgChart.DataFieldID = "EmployeeID";
    telerikOrgChart.DataFieldParentID = "Parent";
    telerikOrgChart.DataTextField = "EmployeeName";

    telerikOrgChart.DataBind();


    Thanks in advance,
  2. Taher
    Taher avatar
    2 posts
    Member since:
    Mar 2015

    Posted 01 Apr 2015 Link to this post

    i have figured it out .

    I was missing the assignment of the datasource to the org chart.

    Thanks anyways !
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top