I am not quite sure about your requirement. Here is a code library submission which demonstrates how to show the confirm when closing the radwindow. Go through it and see if it is helpful. Confirm closing of a RadWindow by using radconfirm
If you want to get the confirm result on server, then explicitly invoke a postback/ajaxRequest in order to accomplish that.