Org Chart Won't Display.

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

    Posted 01 Feb 2013 Link to this post

    I have a WCF Web Service that returns a list of PeopleInfoDTO, however when I DataBind, nothing is displayed. I've confirmed 155 rows objects are returned. Any ideas?

            List<PeopleInfoDTO> people = _service.GetAllActiveEmployees();
            PeopleInfoDTO s = new PeopleInfoDTO();
            RadOrgChart1.DataFieldID = "ManagerEmployeeNumber"//s.EmployeeNumber
            RadOrgChart1.DataFieldParentID = "EmployeeNumber"//s.ManagerEmployeeNumber
            RadOrgChart1.DataTextField = "LastName"//s.LastName
            RadOrgChart1.DataSource = people;
    <telerik:RadOrgChart runat="server" ID="RadOrgChart1" Skin="Default" 
                ondatabinding="RadOrgChart1_DataBinding" ondatabound="RadOrgChart1_DataBound" 
                ondisposed="RadOrgChart1_Disposed" ondrilldown="RadOrgChart1_DrillDown" 
                ongroupitemdrop="RadOrgChart1_GroupItemDrop" oninit="RadOrgChart1_Init" 
                onload="RadOrgChart1_Load" onnodedatabound="RadOrgChart1_NodeDataBound" 
                onprerender="RadOrgChart1_PreRender" onunload="RadOrgChart1_Unload">
  2. Peter Filipov
    Peter Filipov avatar
    1028 posts

    Posted 05 Feb 2013 Link to this post

    Hi Jeff,

    Could you please provide me a runnable sample project that reproduces the issue. My suggestion is that your data contains invalid parent-child relationships.

    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.
Back to Top