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

how to close radwindow after mainpage reloading?

3 Answers 45 Views
Window
This is a migrated thread and some comments may be shown as answers.
toi
Top achievements
Rank 1
toi asked on 06 Feb 2009, 10:05 AM
Hi guys,

I found some threads that discuss about the reload mainpage (opener) but I want to refresh the mainpage of radwindow before radwindow closing.

Anybody can help?

Thanks in advance,
-Toi

3 Answers, 1 is accepted

Sort by
0
Georgi Tunev
Telerik team
answered on 06 Feb 2009, 01:26 PM
Hi Toi,

If you refresh the page by reloading it, RadWindow, just like any other dynamically created element on it, will be destroyed. If you want to avoid that, you could update only the part that you need on the parent page by using Ajax.
You can check the following demo that shows this approach. There we call a function from within RadWindow that updates RadGrid with RadAjax:
http://demos.telerik.com/aspnet-ajax/controls/examples/integration/gridandwindow/defaultcs.aspx?product=grid

More information on RadAjax's client-side API is available here:
http://www.telerik.com/help/aspnet-ajax/ajxclientsideapi.html



Sincerely yours,
Georgi Tunev
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
toi
Top achievements
Rank 1
answered on 10 Feb 2009, 03:25 AM
Hi Georgi,

I already checked the demo but what I need is how can I close the radwindow after the update the section(via ajax) on parent finishing.

Thanks,
-Toi
0
Georgi Tunev
Telerik team
answered on 10 Feb 2009, 07:23 AM
Hi Toi,

If you are using RadAjax / RadAjaxManager, you could use the OnResponseEnd. There you can get a reference to the RadWindow and call its close() method.


Greetings,
Georgi Tunev
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
Window
Asked by
toi
Top achievements
Rank 1
Answers by
Georgi Tunev
Telerik team
toi
Top achievements
Rank 1
Share this question
or