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

Returning values from RadWindow

1 Answer 150 Views
Window
This is a migrated thread and some comments may be shown as answers.
Courtenay
Top achievements
Rank 1
Courtenay asked on 07 Apr 2010, 09:03 AM
Hi there,

im trying to do something similar to what is listed in the demo here except that i don't want return the values onclientclose. i need to make the parent window refresh without closing the radwindow.

So i currently have a Radwindow which has a save button on it. When the save button is clicked in the radwindow it will save some values in the code-behind and then it must refresh the parent window.

Can this be done? Im really stuck

1 Answer, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 07 Apr 2010, 11:21 AM

Hello Courtenay,

By obtaining a reference to the parent page, you can call any function that is defined in the parent page. Just use the GetRadWindow().BrowserWindow() property to reference the parent page and call the function. The following documentation explains more on this.

Calling Functions in Windows

And in the called function invoke an ajaxRequest() to update the parent page content instead of using a postback, since the postback closes the window.

I hope this would help you to get started,

Shinu.

Tags
Window
Asked by
Courtenay
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Share this question
or