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

closing RadWindow with RadAjax panel on page

1 Answer 66 Views
Window
This is a migrated thread and some comments may be shown as answers.
Atiq Ur Rehman
Top achievements
Rank 1
Atiq Ur Rehman asked on 01 Aug 2008, 11:50 AM
Hi,

I am using RadAjax panel on a page which uses multiview to load any ascx control based on a session parameter. Now this page is loaded in a RadWindow from a different page so I have a close button on this page which is when fired returns to parent. The thing is it works only if I use html button and bind onclick javascript to that. What I want is to use an asp.net button which when fired clears the session and then closes the page and return to parent.

Now if I remove RadAjaxPanel from the page it works properly and closes the page but then there is no ajax.

Can someone please help me out with this?

If I am not clear then here is what you need to do.
1. Create a page, put a button there which when clicked opens another page.
2. The second page which is opened should have Radmultiview and load any ascx control.
3. The ascx control which is loaded should have an asp close button, so that when it's clicked it clears a session and then closes itself and returns to the main page.
4. Everypage should use RadAjaxPanel.

I hope I am clear now.
Thanks
Atiq

1 Answer, 1 is accepted

Sort by
0
Georgi Tunev
Telerik team
answered on 05 Aug 2008, 10:10 AM
Hi Atiq,

What you need to do is to output from the server a JavaScript code that would call the closing method of the RadWindow. Outputting and executing a JavaScript code from the server is a general task that is not related to the RadWindow control. Since you are using RadAjaxPanel, you can use its ResponseScripts collection and add your calling code there.

If you still experience problems, please open a support ticket and send a project (make sure that it can be run locally) which reproduces your exact setup. We will check it and get back to you with the appropriate suggestions.


All the best,
Georgi Tunev
the Telerik team

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