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

OrgChart does not update

1 Answer 46 Views
OrgChart
This is a migrated thread and some comments may be shown as answers.
Gundeep
Top achievements
Rank 1
Gundeep asked on 17 Oct 2012, 05:56 PM
Hello,

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.

1 Answer, 1 is accepted

Sort by
0
Peter Filipov
Telerik team
answered on 19 Oct 2012, 08:59 AM
Hi Singh,

We have not experienced similar issues. Could you please provide us your sample project for a local investigation?

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
Gundeep
Top achievements
Rank 1
Answers by
Peter Filipov
Telerik team
Share this question
or