on close not unloading page

4 posts, 0 answers
  1. Ramakrishna
    Ramakrishna avatar
    16 posts
    Member since:
    Jan 2011

    Posted 11 Nov 2011 Link to this post

    Hi Telerik,

    we are using single radwindow to show 3 to 4 lookups. each time it loads new page for each popup.
    my problem here is,
    when we load a page which having heavy content like radcombobox having 1000 values in it, window loads and closes successfully,
    but when we try to open new popup(it also using same radwindow to show another page) now problem begins old page content still in radwindow so obviously it taking too much time to respond and load.
    even worse is when we press backspace it going to previous loading page.

    i don't want previously loaded content it should destroy that entire page when user closes or we closed from server side.

    please do need full, thank you in advance.
  2. Princy
    Princy avatar
    17421 posts
    Member since:
    Mar 2007

    Posted 11 Nov 2011 Link to this post

    Hello Ramakrishna,

    You can set DestroyOnClose property of RadWindow as true to overcome the issue.

  3. Ramakrishna
    Ramakrishna avatar
    16 posts
    Member since:
    Jan 2011

    Posted 11 Nov 2011 Link to this post

    thanks for your replay.
    i tried your solution but it is not working for my situation.
    i tried your solution in following scenario:
    1. open one popup and selects one value from that it runs successfully
    2. try to open another popup now but it creating new window object(how i recognize is it skin, width,height are default) but i am able to selecting value from that
    3. try to open another popup now it also opened in new window object, after pressing on backspace it loading previous page values.

    any how once again thank you for your replay.
  4. Marin Bratanov
    Marin Bratanov avatar
    5897 posts

    Posted 14 Nov 2011 Link to this post

    Hi Ramakrishna,

    This is the expected behavior of an iframe - it tends to cache the content that was previously in it. When you reuse the same RadWindow you are only changing the iframe's src, therefore you can use the backspace key to navigate in it. I prepared the following list with suggestions and information for your, please examine it and see which is most suitable for your scenario:

    - you can set the ShowContentDuringLoad property to false and a loading sign will appear over the RadWIndow;s contents until the page is laoded. This will alleviate the old content being shown, yet it cannot take care of the Back functionality of the iframe

    - You can set the DestroyOnClose property to true and really open a new window each time. What it seems now is that you use two windows and thus you get the same behavior after the second. What you need to do is create a fresh instance of the RadWindow each time it is opened. This is done by passing null as the window name to radopen. More information on the approach is available in this help article. If you need to set some specific properties for it which you cannot set via the RadWindowManager you can use the RadWindow's client-side API to do so after you open it.

    Best wishes,
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now
Back to Top