I have a strange problem!
I am working on an application, which requires removing nodes from the telerik OrgChart.
It is similar to the example given here:
http://demos.telerik.com/aspnet-ajax/orgchart/examples/applicationscenarios/transferemployees/defaultcs.aspx
However I have RadWindow which asks user whether he wants to remove a node. If the user clicks "Yes", the RadWindow is closed.
In order to refresh the OrgChart AjaxPanel when I close the RadWindow, I call the client side scripts on RadWindow page
function
GetRadWindow() {
var oWindow = null;
if (window.radWindow) oWindow = window.radWindow; //Will work in Moz in all cases, including clasic dialog
else if (window.frameElement.radWindow) oWindow = window.frameElement.radWindow; //IE (and Moz as well)
return oWindow;
}
function CloseWnd() {
GetRadWindow().close();
}
This is turn calls the
$find("<%= RadAjaxManager1.ClientID %>").ajaxRequest();
on the Orgchart - and refreshes the chart.
However if I am only left with 2 nodes and I try to remove the child node, ajaxrequest() is not called!
If I refresh the Panel using some other mechanism, I can see that the child node is removed.
Can anyone suggest what could be causing this problem? Why is ajaxRequest() not called in some situations.