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

Control in Repeater doing full postback even when having RadAjaxManager

2 Answers 115 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
Omar
Top achievements
Rank 2
Omar asked on 26 Apr 2013, 10:08 AM
In reference to a previous thread about the same topic , but the user seems to have had the answer in a support ticket and it wasn't published for the rest of the users on the forum to benefit from.

Kindly help me resolve this problem. I have a repeater that contains dynamic linkbuttons which perform a certain function server-side. I referenced that repeater in the AjaxManager settings and configured its updatedcontrols, however, the behavior is random!!

Sometimes it performs ajax requests when clicking on one of those linkbuttons, and some other times out of no where, it performs a full postback :S there is no specific pattern to it and am at my wits with trial and error.

Please help :(

2 Answers, 1 is accepted

Sort by
0
Viktor Tachev
Telerik team
answered on 30 Apr 2013, 07:22 AM
Hi Omar,

You could resolve this by placing the repeater in a container.
Try placing the repeater in a Panel and in the RadAjaxManager set the Panel to update itself.

Please refer to the example below:

<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
    <AjaxSettings>
        <telerik:AjaxSetting AjaxControlID="Panel1">
            <UpdatedControls>
                <telerik:AjaxUpdatedControl ControlID="Panel1" />
            </UpdatedControls>
        </telerik:AjaxSetting>
    </AjaxSettings>
</telerik:RadAjaxManager>
 
<asp:Panel ID="Panel1" runat="server">
    <asp:Repeater ID="Repeater1" runat="server">
        <ItemTemplate>
            <asp:LinkButton ID="Button1" runat="server" Text="LinkButton"></asp:LinkButton>
                  . . .
        </ItemTemplate>
    </asp:Repeater>
</asp:Panel>

Let me know if this information is helpful.

Greetings,
Victor
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
0
Omar
Top achievements
Rank 2
answered on 30 Apr 2013, 04:25 PM
Just got this...i will try and let you know, thanks :)
Tags
Ajax
Asked by
Omar
Top achievements
Rank 2
Answers by
Viktor Tachev
Telerik team
Omar
Top achievements
Rank 2
Share this question
or