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

window gets disappears on page postbacks

5 Answers 122 Views
Window
This is a migrated thread and some comments may be shown as answers.
satish
Top achievements
Rank 1
satish asked on 26 Mar 2009, 08:08 AM
Hi Team

I am opening the window by using radopen method from clientside....whenever page gets postback all windows get disappears....

is there anyway to stop this..

Thanks in advance,
satish.

5 Answers, 1 is accepted

Sort by
0
Georgi Tunev
Telerik team
answered on 26 Mar 2009, 09:18 AM
Hello Satish,

This behavior is expected - you are creating the RadWindow object on the client. When there is a postback, the page gets reloaded which means that all dynamically created objects on that page, including RadWindow will be destroyed. If you want to preserve them, you should use the VisibleOnPageLoad property of the window and set it to true when you want to show RadWindow on the page.


All the best,
Georgi Tunev
the Telerik team

Check out Telerik Trainer , the state of the art learning tool for Telerik products.
0
Mark
Top achievements
Rank 1
answered on 21 Apr 2009, 10:46 PM
Is there a working example on the web site where dynamically opened RadWindows are preserved across a postback?  I've tried the VisibleOnPageLoad suggestion here.  I've tried PreserveClientState on the RadWindowManager.  I've tried opening windows on the client side and on the server side.  Regardless of what I do, all dynamically opened windows disappear after a postback, yet any number of Telerik posts (I've read a lot) seem to indicate this can be worked around (and it must be within the realm of possibility, otherwise the use of RadWindows isn't very viable on pages where postbacks are occurring, and that's the rule rather than the exception).  What is the trick (in a code snippet, not just English text, if possible)?  Using Q1 2009.  It's a browser-independent issue.  Thank you for any information.
0
Georgi Tunev
Telerik team
answered on 22 Apr 2009, 12:50 PM
Hi Mark,

Currently there is no such example because RadWindow for ASP.NET AJAX does not support such functionality out of the box. The PreserveClientState property is kept for backward compatibility only from RadWindow for ASP.NET and even there it worked only for RadWindows that were created from the server by using VisibleOnPageLoad.
It is in our ToDo list to provide such feature for RadWindow for ASP.NET AJAX, but this will happen later this year.

Sincerely yours,
Georgi Tunev
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Mark
Top achievements
Rank 1
answered on 22 Apr 2009, 12:55 PM
Thanks for your response.  I will look for the update then.

Just a clarification, though:  I have tried RadWindowManager's PreserveClientState=true with RadWindows created on the server side with VisibleOnPageLoad=true.  These windows also are also not maintained across a postback (they're neither visible after nor are they in the RadWindowManager's Windows collection at the time of a postback).  I understand that PreserveClientState is dependent upon cookies, though, so possibly it's a cookie issue--could that be the case...?
0
Georgi Tunev
Telerik team
answered on 22 Apr 2009, 02:13 PM
Hi Mark,

Yes, PreserveClientState is not working in RadWindow for ASP.NET AJAX - the logic behind it is not reworked for the ASP.NET AJAX version. Once we are ready with the implementation I talked about in my previous reply, it will be working as expected.

Sincerely yours,
Georgi Tunev
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
Window
Asked by
satish
Top achievements
Rank 1
Answers by
Georgi Tunev
Telerik team
Mark
Top achievements
Rank 1
Share this question
or