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

[Solved] Refreshing parent page

2 Answers 156 Views
Window
This is a migrated thread and some comments may be shown as answers.
Sean Eby
Top achievements
Rank 1
Sean Eby asked on 28 Apr 2008, 10:19 PM
All, I am using the RadWindow to provide a popup selection for my users.  I have the popup working great, and I can refresh the parent page just fine.  The one thing I've noticed is that any textboxes on the parent page will lose any data that is in them when I refresh.  Shouldn't the normal page lifecycle occur after I run a 

.BrowserWindow.location.reload();

from Javascript to refresh the parent page?  I tried wrapping the entire page in an RadAjaxPanel, but I have the same problem.

Any ideas?

2 Answers, 1 is accepted

Sort by
0
Accepted
Georgi Tunev
Telerik team
answered on 29 Apr 2008, 02:29 PM
Hi Sean,

BrowserWindow.location.reload equals window.location.reload() - e.g. the effect is the same as when you hit the F5 key when you are in the context of the parent page. To be able to save the content in the textboxes, you should do a postback - for example you can use the __doPostback() function.


Kind regards,
Georgi Tunev
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Sean Eby
Top achievements
Rank 1
answered on 29 Apr 2008, 03:02 PM
Yes, that is exactly what I was needing to do.  I guess I was thinking that this would all be taken care of by wrapping the control in an AjaxPanel.

Thanks for your help!
Tags
Window
Asked by
Sean Eby
Top achievements
Rank 1
Answers by
Georgi Tunev
Telerik team
Sean Eby
Top achievements
Rank 1
Share this question
or