Ajaxified controls do not update after AjaxManager is set as a source

3 posts, 1 answers
  1. Josh
    Josh avatar
    65 posts
    Member since:
    Dec 2009

    Posted 23 Jul 2010 Link to this post

    Hello,

    I have a page with several asp:panels and a RadAjaxManager to tie them together. It was previously set up like this:

          <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
            <AjaxSettings>
                <telerik:AjaxSetting AjaxControlID="panel1">
                    <UpdatedControls>
                          <telerik:AjaxUpdatedControl ControlID="panel1" />
                        <telerik:AjaxUpdatedControl ControlID="panel2" />
                        <telerik:AjaxUpdatedControl ControlID="panel3" />
                    </UpdatedControls>
                </telerik:AjaxSetting>
            </AjaxSettings>
        </telerik:RadAjaxManager>
     
    It worked perfectly; when I changed a combobox in panel1 it would update the controls in all of the panels. However, I needed to utilize the AjaxRequest event of the AjaxManager and have it also update all of the panels, so I changed the AjaxManager to look like this:

    <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server" OnAjaxRequest="RadAjaxManager1_AjaxRequest">
        <AjaxSettings>
            <telerik:AjaxSetting AjaxControlID="RadAjaxManager1">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="panel1" />
                    <telerik:AjaxUpdatedControl ControlID="panel2" />
                    <telerik:AjaxUpdatedControl ControlID="panel3" />
                </UpdatedControls>
            </telerik:AjaxSetting>
            <telerik:AjaxSetting AjaxControlID="panel1">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="panel1" />
                    <telerik:AjaxUpdatedControl ControlID="panel2" />
                    <telerik:AjaxUpdatedControl ControlID="panel3" />
                </UpdatedControls>
            </telerik:AjaxSetting>  
    </telerik:RadAjaxManager>

    When the AjaxRequest event fires, it can update the panels. However, the 'panel1' panel now only updates itself - the other panels do not get updated when panel1 fires an event. I have tried adding<telerik:AjaxUpdatedControl ControlID="RadAjaxManager1" /> in the UpdatedControls for both the manager and the panel, neither of which had any effect. Am I missing something?

    Additional info: After the AjaxRequest event has been fired at least once, panel1 can now update any other panels which were updated in the AjaxRequest.

    Using Q1 2010 .net 2.0 & IE7

    Thank you
  2. Answer
    Pavel
    Admin
    Pavel avatar
    904 posts

    Posted 27 Jul 2010 Link to this post

    Hi Josh,

    Try putting the panel1 setting before that for the RadAjaxManager:
    <telerik:RadAjaxManager ID="RadAjaxManager2" runat="server" OnAjaxRequest="RadAjaxManager1_AjaxRequest">
        <AjaxSettings>
            <telerik:AjaxSetting AjaxControlID="panel1">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="panel1" />
                    <telerik:AjaxUpdatedControl ControlID="panel2" />
                    <telerik:AjaxUpdatedControl ControlID="panel3" />
                </UpdatedControls>
            </telerik:AjaxSetting
            <telerik:AjaxSetting AjaxControlID="RadAjaxManager1">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="panel1" />
                    <telerik:AjaxUpdatedControl ControlID="panel2" />
                    <telerik:AjaxUpdatedControl ControlID="panel3" />
                </UpdatedControls>
            </telerik:AjaxSetting>
        </AjaxSettings>
    </telerik:RadAjaxManager>

    Regards,
    Pavel
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  3. Josh
    Josh avatar
    65 posts
    Member since:
    Dec 2009

    Posted 27 Jul 2010 Link to this post

    Thanks Pavel. That solved the problem.
Back to Top