Adding and Argument to RadWindow Close

2 posts, 0 answers
  1. Kori
    Kori avatar
    73 posts
    Member since:
    Dec 2008

    Posted 11 Aug 2010 Link to this post

    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 ..


  2. Cori
    Cori avatar
    562 posts
    Member since:
    Jul 2010

    Posted 11 Aug 2010 Link to this post

    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.
Back to Top