Destroy On Close functionality

2 posts, 0 answers
  1. Yusuf Nazami
    Yusuf  Nazami  avatar
    2 posts
    Member since:
    Sep 2009

    Posted 11 Dec 2009 Link to this post


    I am using Rad window to host a control which is sending a request periodically to the backend for fetching data. Now my initial understanding was that when I close the RadWindow the window gets destroyed which is actually not the case. The control is in active and keeps on sending calls to the server even when the container Rad Window has been closed.

    Now I see some functionality of this sort in Rad Window for ASP.Net as documented on the blog here

    How to achieve the functionality of DestroyOnClose as in Rad Windows for ASP.Net controls in Rad Window for Silverlight? I couldn't find the flag available in the Silverlight Rad Window control?

    Thanks & Regards,
  2. Miroslav Nedyalkov
    Miroslav Nedyalkov avatar
    1718 posts

    Posted 14 Dec 2009 Link to this post

    Hi Yusuf,

     The RadWindow for Silverlight is not destroying when closed, because it doesn't need to - it is just a Silverlight control and when you don't have references to it, the Silverlight GC will destroy it (like it happens with all of the controls). If you need to do some additional clean-up when the RadWindow is closed (like stopping a regular task) you could use the Closed event of the RadWindow control.

    Sincerely yours,
    Miroslav Nedyalkov
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Back to Top