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

after reopen radwindow page_load not fired

9 Answers 203 Views
Window
This is a migrated thread and some comments may be shown as answers.
bankey
Top achievements
Rank 1
bankey asked on 30 Aug 2008, 11:26 AM
first time page_load fired when page loaded in the radwindow using closeonreload() .
if I am again opening same form in radwindow page_load not fired and session not refreshed.
Can be any idea or code to rectify the issue?
Thanks

9 Answers, 1 is accepted

Sort by
0
Georgi Tunev
Telerik team
answered on 01 Sep 2008, 01:40 PM
Hi bankey,

By design, when a RadWindow is closed, it is not destroyed but remains hidden - this is done to provide the caching feature of the control. That is the reason why your page_load event is not fired when the window is re-opened.

When you need to destroy the popup and open a fresh one, I suggest to set the DestroyOnClose property to true. Note however that in this case, you will not be able to open the same RadWindow again (e.g. with the user-defined height, width, etc. properties). If you use DestroyOnClose, it is best to move all the user-defined properties to the RadWindowManager and open the windows with radopen().

Kind regards,
Georgi Tunev
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
puru
Top achievements
Rank 1
answered on 02 Sep 2008, 12:08 PM
Hi,
Previously  DestroyOnClose property to true. and I have opned it using radopen. but issue not resolved.
Can you provide code and other details. so can page would be closed.
Thanks
0
Georgi Tunev
Telerik team
answered on 02 Sep 2008, 01:30 PM
Hi puru,

To be able to help we will need to have a better view over your exact setup and code.

Please open a support ticket and send us a small sample project that reproduces the problem. Just make sure that the project can be run locally and attach it to the support thread - we will check it and do our best to help.


Kind regards,
Georgi Tunev
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Nicolaï
Top achievements
Rank 2
answered on 24 Nov 2008, 09:50 AM
Exact same problem... Sent a support ticket... Hoping for an answer..

EDIT:
Well, 5 minutes after the support ticket and post, I found this:
http://www.telerik.com/community/forums/aspnet/window/page-load-executed-only-the-first-time.aspx#684944

Summary: add a random to url to open:
&rnd=" + Math.random());


0
Jay
Top achievements
Rank 1
answered on 25 May 2010, 02:42 PM
why is the Math.random required if the Destroy On Close property is set to true?

Please explain...is the the window still in cache? or is it truly gone?
0
Nicolaï
Top achievements
Rank 2
answered on 25 May 2010, 02:46 PM
I'm still forced to use the random with last version at this post's date...
0
Fiko
Telerik team
answered on 28 May 2010, 01:55 PM
Hi Nicolai,

I was not able to reproduce the descried behavior. Could you please rework my test project in order to replicate the issue, open a new support ticket and send it back? I will check it and do my best to provide a working solution as soon as possible.

All the best,
Fiko
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.
0
Hock Sing Ting
Top achievements
Rank 1
answered on 23 Sep 2010, 08:13 AM
Hi,
        How to set destroyonclose="true" using javascript?
0
Georgi Tunev
Telerik team
answered on 23 Sep 2010, 01:15 PM
Hello Hock Sing Ting,

You cannot set DestroyOnClose via JavaScript - this is possible only from codebehind or in the markup. Could you tell me why you need to do that?

Regards,
Georgi Tunev
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
bankey
Top achievements
Rank 1
Answers by
Georgi Tunev
Telerik team
puru
Top achievements
Rank 1
Nicolaï
Top achievements
Rank 2
Jay
Top achievements
Rank 1
Fiko
Telerik team
Hock Sing Ting
Top achievements
Rank 1
Share this question
or