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

[Solved] AjaxManager - Suggestion

2 Answers 125 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
Bridge24
Top achievements
Rank 1
Iron
Iron
Bridge24 asked on 12 Jun 2009, 03:52 PM
In my pages, I (almost) always use the ajaxmanager(proxy).  A lot of time, I have some buttons doing different actions, but updating the same zone.

For these cases, I have to create X ajaxsettings zone, with the updatedcontrols associated. These updatedcontrols are the same.

Could it be possible to use a Trigger zone, where we could add some AjaxInitControl, instead of having to repeat 3 times the controls that update the same zone.

it may look like this:

<telerik:RadAjaxManagerProxy runat="server" ID="ajaxproxy1">
<AjaxSettings>
<telerik:AjaxSetting>
<TriggerControls>
<telerik:AjaxTriggerControl controlid="button1">
<telerik:AjaxTriggerControl controlid="button2">
<telerik:AjaxTriggerControl controlid="button3">
</TriggerControls>
<UpdatedControls>
<telerik:AjaxUpdatedControl ControlID="panel1" />
<telerik:AjaxUpdatedControl ControlID="panel2" />
</UpdatedControls>
</telerik:AjaxSetting>
</AjaxSettings>
</telerik:RadAjaxManagerProxy>

instead of 

<telerik:RadAjaxManagerProxy runat="server" ID="ajaxproxy1">
<AjaxSettings>
<telerik:AjaxSetting AjaxControlID="button1">
<UpdatedControls>
<telerik:AjaxUpdatedControl ControlID="panel1" />
<telerik:AjaxUpdatedControl ControlID="panel2" />
</UpdatedControls>
</telerik:AjaxSetting>
<telerik:AjaxSetting AjaxControlID="button2">
<UpdatedControls>
<telerik:AjaxUpdatedControl ControlID="panel1" />
<telerik:AjaxUpdatedControl ControlID="panel2" />
</UpdatedControls>
</telerik:AjaxSetting>
<telerik:AjaxSetting AjaxControlID="button3">
<UpdatedControls>
<telerik:AjaxUpdatedControl ControlID="panel1" />
<telerik:AjaxUpdatedControl ControlID="panel2" />
</UpdatedControls>
</telerik:AjaxSetting>
</AjaxSettings>
</telerik:RadAjaxManagerProxy>


Thank you

2 Answers, 1 is accepted

Sort by
0
Accepted
Pavlina
Telerik team
answered on 15 Jun 2009, 01:53 PM
Hello Dani,

Unfortunately it is not supported to use a Trigger zone, where you could add some AjaxInitControls.
Please find more information about how to use RadAjaxManager in the following articles:
AJAX Manager
AJAX Manager Proxy

Regards,
Pavlina
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Bridge24
Top achievements
Rank 1
Iron
Iron
answered on 16 Jun 2009, 03:19 PM
I know that it is not supported, it was only a suggestion to support it eventually.

Case closed !

Daniel.
Tags
Ajax
Asked by
Bridge24
Top achievements
Rank 1
Iron
Iron
Answers by
Pavlina
Telerik team
Bridge24
Top achievements
Rank 1
Iron
Iron
Share this question
or