Warn on close

2 posts, 0 answers
  1. Billy G
    Billy G avatar
    9 posts
    Member since:
    Mar 2010

    Posted 18 May 2010 Link to this post

    *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
  2. Miroslav Nedyalkov
    Miroslav Nedyalkov avatar
    1718 posts

    Posted 21 May 2010 Link to this post

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