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

Return argument when close (X) clicked

1 Answer 134 Views
Window
This is a migrated thread and some comments may be shown as answers.
Richard
Top achievements
Rank 1
Richard asked on 02 Mar 2011, 09:10 PM
Is there a way I can capture the click of the 'X' close button from within the RadWindow, so I can set a specific argument value to be passed back to the parent window? From what I've seen, the suggested solutions have been to check for a null argument on the parent side which would indicate the X close was used. I want to pass an argument back (such as 'updated' or 'notUpdated') so I know whether to refresh a main grid control based on the actions performed within the window. Thanks.

1 Answer, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 03 Mar 2011, 12:51 PM
Hello,


If you are using ContentTemplate, then you can directly access the controls placed in RadWindow in the "OnClientBeforeClose" event handler and access the value.


And in the case of setting NavigateUrl for window, then you could access the RadWindow object and access the control to get the value in the same event, which is OnClientBeforeClose.

Also take a look at the following link:
Returning values to parent page from rad window.

Feel free to share the comments.


-Shinu.
Tags
Window
Asked by
Richard
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Share this question
or