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

Stopping the close of a window

1 Answer 43 Views
Window
This is a migrated thread and some comments may be shown as answers.
Mike Dennis
Top achievements
Rank 1
Mike Dennis asked on 12 Jun 2008, 03:02 PM
I am fairly new to using the RadWindow control, and most of the code was written by someone else originally, so I hope this makes sense.  Right now we have a page that is in a masterpage, and from that page, there are buttons which use the OpenWindow function to open a window in the content page that consists of TextBoxes and some other controls.  I need to be able to check for a condition if the user tries to close the window, popup an error if a condition is not met, and keep the window open.  This functonality is needed to keep the functionality similar to the previous version of our application that was written in Access.  I saw something about that server side code can still run while the alert is up, so I am thinking that I won't be able to use the alert you have with the control.  Is there a way to do this with the current version of the RadWindow?  If so, would the orginal page or windowed page need to handle that logic?

1 Answer, 1 is accepted

Sort by
0
Georgi Tunev
Telerik team
answered on 13 Jun 2008, 01:52 PM
Hi Mike,

I believe the following forum thread will be of help:
http://www.telerik.com/community/forums/thread/b311D-bebdmb.aspx

There you can see how to override the closing functionality of RadWindow and to run your own code instead.


Kind regards,
Georgi Tunev
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
Window
Asked by
Mike Dennis
Top achievements
Rank 1
Answers by
Georgi Tunev
Telerik team
Share this question
or