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

Keeping child windows through a postback

3 Answers 66 Views
Window
This is a migrated thread and some comments may be shown as answers.
Alex White
Top achievements
Rank 1
Alex White asked on 24 Jul 2009, 04:45 AM
Hi,

I am using the latest RAD AJAX controls  2009.2 701, the web application I am trying to develop needs to have popup windows (using RAD Window), as an example I want one screen displaying support calls in a RAD grid, to then click on a row and to popup a window with the support call in it, the application needs to support many calls being opened at the same time. All of the above works, except for when a postback occurs on the parent window, the postbacks that I still need are to refresh the grids data to see if new support calls have been posted whilst working on other support calls, currently when a postback occurs I loose all the child windows. Is there any way to support the configuration I want?

The grid(s) are AJAX'ed through an AJAX manager, in a master, content page arrangement.

Thanks


Alex


3 Answers, 1 is accepted

Sort by
0
Fiko
Telerik team
answered on 27 Jul 2009, 05:29 PM
Hello Alex,

Unfortunately, this scenario is not supported by the RadWindow control. When you triggered a postback in the main page, the RadWindow is destroyed and if you want to preserve its object you need to do it manually -  by storing its properties in a cookie for example. Please note that in this case the cookies should be enabled on the client's browser.

Greetings,
Fiko
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
Alex White
Top achievements
Rank 1
answered on 28 Jul 2009, 04:58 AM
Hi,

I guess the way to get this to work is to have a page that never posts back with the window manager on it, then all the pages that do postback can be child windows from that, this way you get to keep all the windows. Is there any way that you can reference another child window from a child window if they are created dynamically? (e.g. refresh a RadGrid on a page that did NOT create the child window)


Regards


Alex
0
Georgi Tunev
Telerik team
answered on 28 Jul 2009, 11:20 AM
Hi Alex,

Yes, this is possible. I suggest to examine the Returning Values from a Dialog demo that shows how to call functions between RadWindows.



Regards,
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
Alex White
Top achievements
Rank 1
Answers by
Fiko
Telerik team
Alex White
Top achievements
Rank 1
Georgi Tunev
Telerik team
Share this question
or