Sending value to RadWindow

3 posts, 0 answers
  1. Gosha
    Gosha avatar
    36 posts
    Member since:
    Aug 2010

    Posted 13 Oct 2010 Link to this post

    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. Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 14 Oct 2010 Link to this post

    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.
  3. Georgi Tunev
    Admin
    Georgi Tunev avatar
    7207 posts

    Posted 14 Oct 2010 Link to this post

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