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

[Solved] Closing a RadWindow from codebehind?

1 Answer 297 Views
Window
This is a migrated thread and some comments may be shown as answers.
Miklos
Top achievements
Rank 1
Miklos asked on 19 Jun 2008, 09:01 PM
Hi,

I have a form with a link which opens a radwindow (with a navigateurl of an aspx) and has a javascript event to reload the page once the window is closed. The RadWindow's aspx file has a codebehind which processes the radwindow's entries when clicking a button on the aspx. After this button click I want to close the window. Currently the only way I can do this is by manually closing the window. Is there a way I can close the window from its codebehind?

Please help,
Miklos

1 Answer, 1 is accepted

Sort by
0
Accepted
Georgi Tunev
Telerik team
answered on 20 Jun 2008, 11:42 AM
Hello Miklos,

The RadWindow can be closed from on client only by getting a reference to the RadWindow object and calling its close() method.

If you wish to close the RadWindow from the codebehind, you will simply need to output a Javascript code that would call a client function that would close the window. There are numerous examples on this subject in the forums - for example : http://www.telerik.com/community/forums/thread/b311D-bdcktk.aspx



Best wishes,
Georgi Tunev
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
Window
Asked by
Miklos
Top achievements
Rank 1
Answers by
Georgi Tunev
Telerik team
Share this question
or