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

[Solved] RadAjaxManager AjaxUpdatedControl via Code

1 Answer 195 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
mark
Top achievements
Rank 1
mark asked on 16 Nov 2007, 04:33 PM
I am trying to replicate this example:
http://www.telerik.com/demos/aspnet/Controls/Examples/Integration/Ajax/TreeView/DefaultCS.aspx?product=treeview

but i am trying to use master pages and also to place the code in a control. Due to the fact that the RadAjaxManager1 is in the master page it cannot see the RadTreeView controls. Below is an extract from the example showing how it is done without using c# code:

<rada:AjaxSetting AjaxControlID="RadAjaxManager1">

<UpdatedControls>

<rada:AjaxUpdatedControl ControlID="tree2"></rada:AjaxUpdatedControl>

<rada:AjaxUpdatedControl ControlID="tree1"></rada:AjaxUpdatedControl>

<rada:AjaxUpdatedControl ControlID="dummy_label1" LoadingPanelId="LoadingPanel2"></rada:AjaxUpdatedControl>

<rada:AjaxUpdatedControl ControlID="dummy_label2" LoadingPanelId="LoadingPanel2"></rada:AjaxUpdatedControl>

</UpdatedControls>

</rada:AjaxSetting>

This issue has been driving me mad help would be much appreciated.

Thanks

Mark

1 Answer, 1 is accepted

Sort by
0
Sebastian
Telerik team
answered on 19 Nov 2007, 12:11 PM
Hi Mark,

I suggest you use RadAjaxManagerProxy (which is part of RadAjax "Prometheus") in order to make the controls from the content page(s) of the master page 'visible' for your RadAjaxManager instance:

http://www.telerik.com/DEMOS/ASPNET/Prometheus/Ajax/Examples/Manager/MasterPage/DefaultCS.aspx

Thus the settings defined through the RadAjaxManagerProxy will be added automatically to the RadAjaxManager settings when the page is viewed in the browser.

Alternatively, add the setting to the manage programmatically as demonstrated in this topic from the product documentation:

http://www.telerik.com/help/radcontrols/prometheus/?ajxMasterPageUpdateEverywhere.html
 
Best regards,
Stephen
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
Ajax
Asked by
mark
Top achievements
Rank 1
Answers by
Sebastian
Telerik team
Share this question
or