Reload content Template into RadWindow

2 posts, 1 answers
  1. Lasly
    Lasly avatar
    115 posts
    Member since:
    Nov 2009

    Posted 01 Aug 2011 Link to this post

    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?
  2. Answer
    Marin Bratanov
    Marin Bratanov avatar
    3567 posts

    Posted 02 Aug 2011 Link to this post

    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:

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

    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.

  3. DevCraft R3 2016 release webinar banner
Back to Top