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

Reload content Template into RadWindow

1 Answer 88 Views
Window
This is a migrated thread and some comments may be shown as answers.
Lasly
Top achievements
Rank 1
Lasly asked on 01 Aug 2011, 02:34 PM
Hi,
I've three RadWindow, each content template depends by others content template.
I need to refresh each content template after the click of a radbutton into a RadWindow.

I force the rad ajax panel update using the follow codes
public static void updatePanel(RadAjaxPanel sender, RadAjaxPanel target)
{
   sender.ResponseScripts.Add(String.Format("$find('{0}').ajaxRequest();", target.ClientID));
}

but it works only for the radwindow wich I'm displaying in that moment, if i open the others rad window I don't see any changes.
I try also to fire the Load event and set the property reloadonshow = true but the event call before the button click.

Can you help me?

1 Answer, 1 is accepted

Sort by
0
Accepted
Marin Bratanov
Telerik team
answered on 02 Aug 2011, 03:33 PM
Hi Lasly,

If I understand your scenario correctly you have some logic in the code-behind that determines what the controls in the ContentTemplate of the RadWindows should be. If that is the case the simplest way is to directly access them in the code-behind and modify them according to your custom logic. This approach is shown in the following online demos and documentation article:
http://demos.telerik.com/aspnet-ajax/window/examples/contenttemplatevsnavigateurl/defaultcs.aspx
http://demos.telerik.com/aspnet-ajax/window/examples/internalcontent/defaultcs.aspx
http://www.telerik.com/help/aspnet-ajax/radwindow-controls-container.html

Please note that if you are using AJAX inside one of the RadWindows this approach will not work unless you make sure that the other RadWindows are updated in the AJAX request as well. This can be done by adding them to the UpdatedControls collection of the AJAX setting of the RadAjaxManager or by using the server-side update() method of the regular update panels (which need to have the UpdateMode set to Conditional).

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.

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