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

Destroy On Close functionality

1 Answer 131 Views
Window
This is a migrated thread and some comments may be shown as answers.
Yusuf Nazami
Top achievements
Rank 1
Yusuf Nazami asked on 11 Dec 2009, 06:37 AM
Hi,

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
http://blogs.telerik.com/supportdept/posts/09-06-04/common_radwindow_issues_and_their_solution.aspx

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,
Yusuf

1 Answer, 1 is accepted

Sort by
0
Miroslav Nedyalkov
Telerik team
answered on 14 Dec 2009, 01:24 PM
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.
Tags
Window
Asked by
Yusuf Nazami
Top achievements
Rank 1
Answers by
Miroslav Nedyalkov
Telerik team
Share this question
or