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

Sending value to RadWindow

2 Answers 70 Views
Window
This is a migrated thread and some comments may be shown as answers.
Gosha
Top achievements
Rank 1
Gosha asked on 13 Oct 2010, 11:05 PM
I send some value to RadWindow with procedure described in http://www.telerik.com/help/aspnet-ajax/window_programmingusingradwindowasadialog.html.

Value is received with pageLoad() function

Alternatively that function can be placed in window.onload=function... or <body onload=...>

Problem is that this happens only once, when I first start radwindow. Every next time when radwindow opens, load event is not fired (because page is allready loaded) so how to accept new values?? I want every time to accept different value, not just once.

Is there some way to "unload" page from radwindow so in next open will load again? 
Or has some other place to put javascript function to accept value and paste it in textbox?

2 Answers, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 14 Oct 2010, 06:44 AM
Hello,


By setting the DestroyOnClose property to "True" you can decide whether the window will be disposed and made inaccessible once it is closed. That means, if property is set to true, the next time a window with this ID is requested, a new window with default settings is created and returned.



-Shinu.
0
Georgi Tunev
Telerik team
answered on 14 Oct 2010, 08:51 AM
Hi Sasa,

Try setting ShowContentDuringLoad=false and ReloadOnShow=true. This is needed because by design, RadWindow's object is not destroyed when closed. Instead, the RadWindow remains hidden on the page so it can be called quickly next time it is needed. In cases however, where you need to update the information in the window whenever you show it, you can set these properties (ShowContentDuringLoad is recommended to be set to false in order to avoid the users seeing the cached version of the page before it is updated).

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
Gosha
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Georgi Tunev
Telerik team
Share this question
or