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

Issue with Viewing Org Chart

1 Answer 71 Views
OrgChart
This is a migrated thread and some comments may be shown as answers.
Taher
Top achievements
Rank 1
Taher asked on 01 Apr 2015, 11:49 AM
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,

1 Answer, 1 is accepted

Sort by
0
Taher
Top achievements
Rank 1
answered on 01 Apr 2015, 12:28 PM
i have figured it out .

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

Thanks anyways !
Tags
OrgChart
Asked by
Taher
Top achievements
Rank 1
Answers by
Taher
Top achievements
Rank 1
Share this question
or