hi all,
i am D.Srnivasa,
in my project i have a RadOrgChart to display a employees profiles from SharePoint List. in my sharepoint list the following are the columns to display in RadOrgChart displayed in attached file.(list.jpg)
the following is the code to display a nodes from sharepoint list to RadOrgChart
and my RadOrgChart Properties are :
but it doesn't display the data from the SharePoint list.
Please Help me how can i bind the the in the following picture(Display.png)
thanks
D.Srinivasa.
i am D.Srnivasa,
in my project i have a RadOrgChart to display a employees profiles from SharePoint List. in my sharepoint list the following are the columns to display in RadOrgChart displayed in attached file.(list.jpg)
the following is the code to display a nodes from sharepoint list to RadOrgChart
SPSite mySite = SPContext.Current.Site; SPWeb web = mySite.OpenWeb(); SPList lststudent = web.Lists["Registration|Form"]; var students = from SPListItem student in lststudent.Items where student["Reference ID"].ToString() == RadTextBox1.Text || student["EID"].ToString() == RadTextBox1.Text select new { FullName = student["Reference Name"].ToString(), ReportsTo = student["Reference ID"].ToString(), EmployeeID = student["EID"].ToString() }; RadOrgChart1.DataSource = students; RadOrgChart1.DataBind();and my RadOrgChart Properties are :
<telerik:RadOrgChart runat="server" ID="RadOrgChart1" DataFieldID="EmployeeID" DataFieldParentID="ReportsTo" DataTextField="FullName"></telerik:RadOrgChart>Please Help me how can i bind the the in the following picture(Display.png)
thanks
D.Srinivasa.