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

Correct way to Ajaxify controls inside a repeater that rebind a second repeater?

1 Answer 114 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
Rob
Top achievements
Rank 1
Rob asked on 07 Jan 2013, 11:21 AM
I have a navigation repeater that emits a series of link buttons, each of which calls a client-side function and passes an ID that I want to use to bind a second (detail) repeater on the page. I then call the RadAjaxManager's AjaxRequest() method to perform the binding of the detail repeater. When I click any of the rendered link buttons the detail repeater is not being bound.

I've created RadAjaxManager settings as follows...

<ajaxsettings>
    <telerik:AjaxSetting AjaxControlID="rptNav">
        <updatedcontrols>
            <telerik:AjaxUpdatedControl ControlID="rptDetail" />
        </updatedcontrols>
    </telerik:AjaxSetting>
</ajaxsettings>

Is it sufficient to cover the entire navigation repeater with a single Ajax setting in the Ajax Manager as above, or should I be programmatically adding each Link Button to the Ajax Manager's settings at runtime?

Rob

1 Answer, 1 is accepted

Sort by
0
Maria Ilieva
Telerik team
answered on 10 Jan 2013, 02:30 PM
Hi Rob,

Please note that you should add a setting in which the RadAjaxManager itself updates the Repeater control.This is required in order to have the Repeater content updates properly on ajaxRequest. Give this s try and let me know if it helps.

All the best,
Maria Ilieva
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.
Tags
Ajax
Asked by
Rob
Top achievements
Rank 1
Answers by
Maria Ilieva
Telerik team
Share this question
or