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

RadWindowManager not updated

2 Answers 58 Views
Window
This is a migrated thread and some comments may be shown as answers.
Philipp
Top achievements
Rank 1
Philipp asked on 18 Apr 2011, 10:56 AM
Hi everybody,

i have a complex scenario webapge:
A MasterPage where the RadWindowManager is declared, a default webpage where content is loaded and the content pages.
I am working with RadAjaxPanels to ajaxifiy the whole thing. I have some trouble with changing the Windows-Collection of RadWindowmanager in codebehind of the contentpage (wrapped by an Radajaxpanel). The RadWindowManager (at masterPage, no radajaxpanel) is not updated after i add a window from codebehind/contentpage.

A similar Problem is described in the following article :
"RadWindow inside a RadAjaxPanel"

I understand that the problem is because there is no PostBack and the RadWindowManager is not inside the ajaxpanel
but all the hints and solutions are going for the RadAjaxManager and not for the panels.

Basically my question is: How to update RadWindowManager declared on masterpage from an contentpage wrapped by an RadAjaxpanel
 

2 Answers, 1 is accepted

Sort by
0
Marin Bratanov
Telerik team
answered on 20 Apr 2011, 07:49 AM

Hello Philipp,

In order to update a part of the page that is outside of an AJAX panel from within that panel you need a postback, because the standard behavior of the AJAX is to go through the server-side code, but only update the AJAX panel on the client-side. Thus the changes are reflected on the server, but not on the client.

The general solution to a similar scenario proposed in the internet is to wrap the desired control in an update panel and force an update through its Update() method when necessary.

You could also try the approach from the following article that a quick google search produced: http://abhijitjana.net/2010/06/14/how-to-update-controls-which-are-outside-of-updatepanel-during-partial-page-rendering/, but it is not guaranteed to work, since this is a much more complex set of data you need to pass.



Kind regards,
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
Philipp
Top achievements
Rank 1
answered on 21 Apr 2011, 07:10 AM
Hello Marin,

thank you very much for your help.
I'll investigate your solution approaches and tell you how far i can go with it.

Kind regards,
Philipp
Tags
Window
Asked by
Philipp
Top achievements
Rank 1
Answers by
Marin Bratanov
Telerik team
Philipp
Top achievements
Rank 1
Share this question
or