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

Control Update after RADWindow is Closed

1 Answer 39 Views
Window
This is a migrated thread and some comments may be shown as answers.
PJ Rodriguez
Top achievements
Rank 1
PJ Rodriguez asked on 01 Dec 2010, 12:06 AM
I have a RADTreeView that has a context menu item. When the context menu item is clicked a RADWindow is called and made visible to the end user for input. After the user is finished inputting, the data is inserted into a database. This data then becomes a ndoe within the RADTreeView.

What I want is for the RADTreeview to reflect this change in after the RADWindow is closed. Is this possible?

Right now, the only way for the changes to be reflected is to refresh the whole page.

Any help would definitely be appreciated. Thank you.



PJ

1 Answer, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 01 Dec 2010, 08:58 AM
Hello,

 Attach OnClientClose to RadWindow and in the handler, invoke an ajaxRequest to server. Now in the server code (AjaxMAnager_AjaxRequest) refresh the RadTreeView control.

To make an Ajax request, you need to get a reference to the Ajax manager in the main page. Please check this help article for more details:
http://www.telerik.com/help/aspnet-ajax/ajxclientsideapi.html

Feel free to write again if you need further help.

Thanks,
Princy.
Tags
Window
Asked by
PJ Rodriguez
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Share this question
or