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

Adding and Argument to RadWindow Close

1 Answer 48 Views
Window
This is a migrated thread and some comments may be shown as answers.
Kori
Top achievements
Rank 2
Kori asked on 11 Aug 2010, 04:36 PM
Any ideas on how I could do the following?

I have a rad window, I use a button inside the content to close the window. When I click my close button - I pass an argument that lets me control what happens on the parent page.

When I click the control's close button (top right corner, specified as the close behavior) - I don't have the opportunity to pass something back in the arugment, and so my parent page does a postback (which is the default, but what I specifically want to avoid).

I want both close buttons to do the same thing ..

Anyone?

Kori

1 Answer, 1 is accepted

Sort by
0
Cori
Top achievements
Rank 2
answered on 11 Aug 2010, 05:46 PM
Hey Kori,

In your OnClientClose event you should check if the argument returned is null, since that's what it will be when the close button of the window is pressed, and just prevent your page from posting back if that is the case.

I hope that helps.
Tags
Window
Asked by
Kori
Top achievements
Rank 2
Answers by
Cori
Top achievements
Rank 2
Share this question
or