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

Org Chart Won't Display.

1 Answer 83 Views
OrgChart
This is a migrated thread and some comments may be shown as answers.
Jeff
Top achievements
Rank 1
Jeff asked on 01 Feb 2013, 07:26 PM
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();
        //s.LastName
 
        RadOrgChart1.DataFieldID = "ManagerEmployeeNumber"//s.EmployeeNumber
        RadOrgChart1.DataFieldParentID = "EmployeeNumber"//s.ManagerEmployeeNumber
        RadOrgChart1.DataTextField = "LastName"//s.LastName
        RadOrgChart1.DataSource = people;
        RadOrgChart1.DataBind();

<telerik:RadOrgChart runat="server" ID="RadOrgChart1" Skin="Default" 
            ondatabinding="RadOrgChart1_DataBinding" ondatabound="RadOrgChart1_DataBound" 
            ondisposed="RadOrgChart1_Disposed" ondrilldown="RadOrgChart1_DrillDown" 
            ongroupexpandcollapse="RadOrgChart1_GroupExpandCollapse" 
            ongroupitemdatabound="RadOrgChart1_GroupItemDataBound" 
            ongroupitemdrop="RadOrgChart1_GroupItemDrop" oninit="RadOrgChart1_Init" 
            onload="RadOrgChart1_Load" onnodedatabound="RadOrgChart1_NodeDataBound" 
            onnodedrop="RadOrgChart1_NodeDrop" 
            onnodeexpandcollapse="RadOrgChart1_NodeExpandCollapse" 
            onprerender="RadOrgChart1_PreRender" onunload="RadOrgChart1_Unload">
        </telerik:RadOrgChart>

1 Answer, 1 is accepted

Sort by
0
Peter Filipov
Telerik team
answered on 05 Feb 2013, 10:50 AM
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.
Tags
OrgChart
Asked by
Jeff
Top achievements
Rank 1
Answers by
Peter Filipov
Telerik team
Share this question
or