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

on close not unloading page

3 Answers 85 Views
Window
This is a migrated thread and some comments may be shown as answers.
Ramakrishna
Top achievements
Rank 1
Ramakrishna asked on 11 Nov 2011, 10:10 AM
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.

3 Answers, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 11 Nov 2011, 10:27 AM
Hello Ramakrishna,

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

Thanks,
Princy.
0
Ramakrishna
Top achievements
Rank 1
answered on 11 Nov 2011, 12:18 PM
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.
0
Marin Bratanov
Telerik team
answered on 14 Nov 2011, 12:35 PM
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,
Marin
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
Tags
Window
Asked by
Ramakrishna
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Ramakrishna
Top achievements
Rank 1
Marin Bratanov
Telerik team
Share this question
or