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

Warn on close

1 Answer 59 Views
Window
This is a migrated thread and some comments may be shown as answers.
Billy G
Top achievements
Rank 1
Billy G asked on 18 May 2010, 08:02 PM
*Sorry if this double posts but the previous one has a server error when i try to view it*

Is there a way to catch a window closing from within the user-control embedded in the window.  here is the situation

the user opens a window with a grid of orders.  they click on an order and open window B  (dynamically created)  when the user Closes Window B I wand a Confirm Box to open verifying they want to close.  Also this is not modal and is using the Show() method.

Thank you for your help

1 Answer, 1 is accepted

Sort by
0
Miroslav Nedyalkov
Telerik team
answered on 21 May 2010, 08:43 AM
Hello Billy,

 We deleted the first post.
What I would suggest you for your case is either to create a property of the UserControl of type RadWindow and when you are creating the window and placing the UserControl in it you could pass the RadWindow control. Another way could be to check the Parent property of the UserControl - it should be of type RadWindow if the UserControl is placed as content of the RadWindow control.

Hope this helps.

Best wishes,
Miroslav Nedyalkov
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Tags
Window
Asked by
Billy G
Top achievements
Rank 1
Answers by
Miroslav Nedyalkov
Telerik team
Share this question
or