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

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

2 Answers 136 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
Josh
Top achievements
Rank 1
Josh asked on 23 Jul 2010, 05:43 PM
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 Answers, 1 is accepted

Sort by
0
Accepted
Pavel
Telerik team
answered on 27 Jul 2010, 02:19 PM
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
0
Josh
Top achievements
Rank 1
answered on 27 Jul 2010, 04:42 PM
Thanks Pavel. That solved the problem.
Tags
Ajax
Asked by
Josh
Top achievements
Rank 1
Answers by
Pavel
Telerik team
Josh
Top achievements
Rank 1
Share this question
or