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

RadWindow and Ajax

3 Answers 91 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
Monique Smartt
Top achievements
Rank 1
Monique Smartt asked on 30 Dec 2008, 06:17 AM
I have a radwindow that I close server side using the approach of sending a JS function to a label, as recommended on previous posts. This works finw when it occurs on a server side button click event. The issue is that I have wrapped the button on an radajaxpanel that has a panel that I use to display error messages. When I add the panel the close function does not fire, I have inspected the DOM and the script is there. I have tries adding ajaxsettings for the button to update the label.

The popup is a content page of a master page. The master page holds the ajaxmanager, while the content page has a proxy, which is where I am setting the ajax settings.

Any help is appreciated.

3 Answers, 1 is accepted

Sort by
0
Maria Ilieva
Telerik team
answered on 30 Dec 2008, 09:50 AM
Hello Monique,

In order to achieve the required functionality you should use the RadAjax ResponseScripts collection to trigger the Window close function. For example

RadAjaxPanel1.ResponseScripts.Add("$find('" + RadWindow1.ClientID + "').close();");

Kind regards,
Maria Ilieva
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Monique Smartt
Top achievements
Rank 1
answered on 31 Dec 2008, 07:29 AM
I have never seen mention of that method in the past. Can you provide an example, or documentation.

Thanks
0
Princy
Top achievements
Rank 2
answered on 31 Dec 2008, 10:26 AM
Hello Monique,

You can refer to the following link to know more about ResponseScripts property.
ResponseScripts Property

Thanks
Princy.
Tags
Ajax
Asked by
Monique Smartt
Top achievements
Rank 1
Answers by
Maria Ilieva
Telerik team
Monique Smartt
Top achievements
Rank 1
Princy
Top achievements
Rank 2
Share this question
or