NO OrgChart being displayed

2 posts, 0 answers
  1. Jeff
    Jeff avatar
    10 posts
    Member since:
    Jun 2010

    Posted 06 Jun 2012 Link to this post

    I have an nHibernate object returning 225 objects, when I bind it nothing is displayed.
        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()
        <telerik:RadOrgChart ID="RadOrgChart1" runat="server" DataFieldID="EmployeeId" 
            DataFieldParentID="ManagerId" DataTextField="Employee" 
            DisableDefaultImage="False" MaxDataBindDepth="5">
            UserDAO dao = new UserDAO();
            List<EmployeeSupervisor> coList = dao.GetOrgChart();
            RadOrgChart1.DataSource = coList;
    thank you in advance. Jeff
  2. Peter Filipov
    Peter Filipov avatar
    1028 posts

    Posted 11 Jun 2012 Link to this post

    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.
  3. DevCraft R3 2016 release webinar banner
Back to Top