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

2 posts, 0 answers
  1. Rob
    Rob avatar
    8 posts
    Member since:
    Aug 2010

    Posted 07 Jan 2013 Link to this post

    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
  2. Maria Ilieva
    Admin
    Maria Ilieva avatar
    4017 posts

    Posted 10 Jan 2013 Link to this post

    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.
Back to Top