I have an orgchart inside of a content place holder for a page with a master page:
The data I'm using to populate the orgchart is coming from a web service - so on page load I attach the nodedrop event handler, grab the resource data which I then translate into a data table, then I do my data binding:
The orgchart loads as expected and looks great. When I drag and drop an item and set up break points, the page load events are hit but not the nodedrop events. I'm not sure if there is something special I have to deal with due to the master page or if I'm just missing something basic in the page life cycle. The way I'm looking at this I'm essentially doing it exactly as the demo suggests: http://demos.telerik.com/aspnet-ajax/orgchart/examples/draganddropsimplebinding/defaultcs.aspx
One additional piece of information is that the script manager is located on the master page - not sure why that should cause a problem.
<
asp:Content
ID
=
"Content2"
ContentPlaceHolderID
=
"ContentPlaceHolder1"
Runat
=
"Server"
>
<
telerik:RadOrgChart
ID
=
"RadOrgChart1"
runat
=
"server"
EnableCollapsing
=
"true"
EnableDragAndDrop
=
"true"
>
</
telerik:RadOrgChart
>
</
asp:Content
>
The data I'm using to populate the orgchart is coming from a web service - so on page load I attach the nodedrop event handler, grab the resource data which I then translate into a data table, then I do my data binding:
protected
void
Page_Load(
object
sender, EventArgs e)
{
RadOrgChart1.NodeDrop += RadOrgChart1_NodeDrop;
GetResources();
LoadEmployees();
RadOrgChart1.RenderedFields.ItemFields.Add(
new
Telerik.Web.UI.OrgChartRenderedField() { DataField =
"Position"
});
RadOrgChart1.DataSource = employees;
RadOrgChart1.DataFieldID =
"EmployeeID"
;
RadOrgChart1.DataFieldParentID =
"ReportsTo"
;
RadOrgChart1.DataTextField =
"FullName"
;
RadOrgChart1.DataImageUrlField =
"ImageUrl"
;
RadOrgChart1.DataBind();
}
The orgchart loads as expected and looks great. When I drag and drop an item and set up break points, the page load events are hit but not the nodedrop events. I'm not sure if there is something special I have to deal with due to the master page or if I'm just missing something basic in the page life cycle. The way I'm looking at this I'm essentially doing it exactly as the demo suggests: http://demos.telerik.com/aspnet-ajax/orgchart/examples/draganddropsimplebinding/defaultcs.aspx
One additional piece of information is that the script manager is located on the master page - not sure why that should cause a problem.