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

NO OrgChart being displayed

1 Answer 41 Views
OrgChart
This is a migrated thread and some comments may be shown as answers.
Jeff
Top achievements
Rank 1
Jeff asked on 06 Jun 2012, 12:52 PM
I have an nHibernate object returning 225 objects, when I bind it nothing is displayed.

EmployeeSupervisor.cs
    public class EmployeeSupervisor
    {
        public virtual int EmployeeId { getset; }
        public virtual string Employee { getset; }
        public virtual int ManagerId { getset; }
        public virtual string Manager { getset; }
      
        public EmployeeSupervisor()
        {
           
        }
    }
OrgChart.aspx
    <telerik:RadOrgChart ID="RadOrgChart1" runat="server" DataFieldID="EmployeeId" 
        DataFieldParentID="ManagerId" DataTextField="Employee" 
        DisableDefaultImage="False" MaxDataBindDepth="5">
    </telerik:RadOrgChart>

OrgChart.aspx.cs
        UserDAO dao = new UserDAO();
        List<EmployeeSupervisor> coList = dao.GetOrgChart();
        RadOrgChart1.DataSource = coList;
        RadOrgChart1.DataBind();
thank you in advance. Jeff

1 Answer, 1 is accepted

Sort by
0
Peter Filipov
Telerik team
answered on 11 Jun 2012, 06:33 AM
Hello Jeff,

I prepared a sample page from your code. Please review the attachment. Note that the root element of the hierarchy has ParentID (ManagerId ) equal to 0. Form more details you can review the following demo.

All the best,
Peter Filipov
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Tags
OrgChart
Asked by
Jeff
Top achievements
Rank 1
Answers by
Peter Filipov
Telerik team
Share this question
or