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

Don't undertand the relationship between AjaxSetting and AjaxUpdatedControl

4 Answers 1256 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
Tonyz289
Top achievements
Rank 1
Tonyz289 asked on 22 Aug 2011, 07:58 PM
I have inherited a project. It has six entries under AjaxSettings (detailed below) The page just doesn't work consistently. Can someone explain the relationship between AjaxSetting and AjaxUpdatedControl (or point to a link that does)?

<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
    <AjaxSettings>
        <telerik:AjaxSetting AjaxControlID="btnRefreshTree">
            <UpdatedControls>
                <telerik:AjaxUpdatedControl ControlID="RadTreeView1" />
            </UpdatedControls>
        </telerik:AjaxSetting>
        <telerik:AjaxSetting AjaxControlID="RadTreeView1">
            <UpdatedControls>
                <telerik:AjaxUpdatedControl ControlID="DescriptionText" />
                <telerik:AjaxUpdatedControl ControlID="RadTreeView1" />
                <telerik:AjaxUpdatedControl ControlID="RadSlider1" />
                <telerik:AjaxUpdatedControl ControlID="lblTotalAssets" />
                <telerik:AjaxUpdatedControl ControlID="RadDataPager1" />
                <telerik:AjaxUpdatedControl ControlID="RadListView1" LoadingPanelID="RadAjaxLoadingPanel1" />
            </UpdatedControls>
        </telerik:AjaxSetting>
        <telerik:AjaxSetting AjaxControlID="btnSelectAll">
            <UpdatedControls>
                <telerik:AjaxUpdatedControl ControlID="RadListView1" LoadingPanelID="RadAjaxLoadingPanel1" />
            </UpdatedControls>
        </telerik:AjaxSetting>
        <telerik:AjaxSetting AjaxControlID="btnUnSelectAll">
            <UpdatedControls>
                <telerik:AjaxUpdatedControl ControlID="RadListView1" LoadingPanelID="RadAjaxLoadingPanel1" />
            </UpdatedControls>
        </telerik:AjaxSetting>
        <telerik:AjaxSetting AjaxControlID="btnRefresh">
            <UpdatedControls>
                <telerik:AjaxUpdatedControl ControlID="RadSlider1" />
                <telerik:AjaxUpdatedControl ControlID="lblTotalAssets" />
                <telerik:AjaxUpdatedControl ControlID="RadDataPager1" />
                <telerik:AjaxUpdatedControl ControlID="RadListView1" />
            </UpdatedControls>
        </telerik:AjaxSetting>
        <telerik:AjaxSetting AjaxControlID="RadListView1">
            <UpdatedControls>
                <telerik:AjaxUpdatedControl ControlID="RadDataPager1" />
            </UpdatedControls>
        </telerik:AjaxSetting>
    </AjaxSettings>
</telerik:RadAjaxManager>

4 Answers, 1 is accepted

Sort by
0
Accepted
Rory
Top achievements
Rank 1
answered on 22 Aug 2011, 09:45 PM
Hi Tony,
A Quick overview of AjaxManager entry numero uno.

AjaxSetting: btnRefreshTree
and
AjaxUpdateControl: RadTreeView1

When you click the btnRefresh the ServerSide code that fires will be an ajax event. When this ServerSide event ends and the page is refreshed it will have only refreshed the properties for the RadTreeView1 control. This means if you updated the color of a bunch of controls in the ServerSide code the only color that will get updated on the client's web page once the click is over will be the RadTreeView1 control. If you need that button click to update more controls you simply add them to the UpdatedControls section of the AjaxManager. Does that make sense?
Good Luck.
0
Tonyz289
Top achievements
Rank 1
answered on 22 Aug 2011, 10:19 PM
Yeah thtat makes sense.

That other two things that have me confused are the (1) relationship between the RadaDataPager and the Listview and (2( the rekation between the Tree View and the List View.

That way it supposed to work is that that the TreeView tat is shown in List View and the DataPager does to paging. The Treeview selection only works intermittently and  I get no paging activity at all.
0
Rory
Top achievements
Rank 1
answered on 22 Aug 2011, 10:29 PM
I can't assume too much since I'm not sure of your scenario. At first glance I'd say you probably want to add a new TelerikAjaxSetting for the RadDataPager1 that contains a Telerik:AjaxUpdatedControl for your ListView1. If all else fails you can start wrapping all your controls in a <DIV ID='ajaxDIB' runat='server'> and then set that AjaxDiv to be an AjaxSetting and also the UpdatedControl. like so.

                       <telerik:AjaxSetting AjaxControlID="ajaxDiv">
                    <UpdatedControls>
                        <telerik:AjaxUpdatedControl ControlID="ajaxDiv" />
                    </UpdatedControls>
                </telerik:AjaxSetting>


You should also get familiar with Telerik's documentation site it will list lots of helpful information on each Telerik control.
http://www.telerik.com/help/aspnet-ajax/ajx-how-it-works.html
0
Tonyz289
Top achievements
Rank 1
answered on 23 Aug 2011, 03:11 PM
I don't understand what the div does and how it works..

Those links are what I've been looking for as well as your advise. Thanks
Tags
Ajax
Asked by
Tonyz289
Top achievements
Rank 1
Answers by
Rory
Top achievements
Rank 1
Tonyz289
Top achievements
Rank 1
Share this question
or