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

Update single window using windowManager

4 Answers 51 Views
Window
This is a migrated thread and some comments may be shown as answers.
Erik
Top achievements
Rank 1
Erik asked on 11 Apr 2011, 03:26 PM
Hi there,

In my application popups are dynamicly created and managed by a windowmanager. Currently my WindowManager is on a UpdatePanel which updates the whole manager when a Window is added.

How can I use the WindowManager and only update a single Window at the time it's added?

4 Answers, 1 is accepted

Sort by
0
Marin Bratanov
Telerik team
answered on 13 Apr 2011, 03:20 PM

Hello Erik,

When you are using a RadWindowManager you cannot avoid updating the whole manager when you modify its properties or windows collection, as they are inseparable. The nearest scenario is using a standalone RadWindow in a separate Update Panel.



Greetings,
Marin
the Telerik team

Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

0
Erik
Top achievements
Rank 1
answered on 29 Apr 2011, 03:24 PM
Hello Marin,

Why not create a WindowManager where every Window is on a UpdatePanel. Now I need to build my own WindowManager because I need to open multiple Windows on top of each other with a lot of content. I like the way the WindowManager recreates my opened windows on a postback. Now I need to handle it myself. To bad!

Greetings,
Erik
0
Erik
Top achievements
Rank 1
answered on 04 May 2011, 10:08 AM
Hi,

To solve this problem I created a UpdatePanel with several Window slots, which are updatepanels also. When a RadWindow needs to be opened I add a RadWindowManager with a RadWindow to the slot and update a single slot.

I have a problem with this. When I add the RadWindowManager to the slot and update it the RadWindowManager is not added to the html page. This is fired from a button click within my page. When I add the RadWindowManager to the slot when the slots are created in the OnInit event, the RadWindows open fine. Any suggestions what's wrong?

Thanks for your time.
0
Svetlina Anati
Telerik team
answered on 06 May 2011, 01:15 PM
Hello Erik,

 I am not sure what is your exact scenario but the RadWindowManager should behave as the standard server controls. Here are some thoughts:

1) If you create dynamically server controls this should be done in OnInit - a good article is available below:

http://couldbedone.blogspot.com/2007/06/dynamically-created-controls-in-aspnet.html

2) If the control you add is added in a later stage of the page lifecycle and it disappears on postback, make sure you recreate it:

http://devsushi.com/2006/08/27/aspnet-dynamic-control-creation-part-1/

3) Since you use AJAX, make sure that you update the parent - e.g if update panel 1 has made the ajax request, add the manager to the Controls collection either of that panel or another control inside it. If you try to add it to the form this will not work since the whole form does not get updated when using AJAX.

Regards,
Svetlina
the Telerik team

Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

Tags
Window
Asked by
Erik
Top achievements
Rank 1
Answers by
Marin Bratanov
Telerik team
Erik
Top achievements
Rank 1
Svetlina Anati
Telerik team
Share this question
or