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
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.
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
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.
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.
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.