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

RadAjaxManager as unselective initiator

1 Answer 47 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
chawkins
Top achievements
Rank 1
chawkins asked on 28 Mar 2013, 07:57 PM
Hello

Is the following a limitation of RadAjaxManager, or is there a better way of configuring the manager control?

When the manager's 'ajaxRequest' function is called from Javascript, it says in the documentation that the radajaxmanager control always acts as the initiator, and so the ajaxsettings on the server-side configuration need to be set to use the id of the manager itself as the 'ajaxified' AjaxControlID.

The problem is that I assume this means that the update of all the Updated controls on the page must be very 'unselective'. Elsewhere in the documentation it says that all Updated controls linked with ajaxsettings to an initiator will be updated when any ajaxsetting for that Ajaxified control is used. Because all the ajaxsettings use the same initiator, does this not mean that it is not possible to selectively update just a single Updated control on the page?

i.e.
with three ajaxsettings:
manager -> panel1
manager -> panel2
manager -> panel3

... all three panels would be updated even if a button inside just one of them triggered the ajaxRequest event.

If this is wrong, can a better way be explained, as this seems like a big limitation to me.

Thanks








 

1 Answer, 1 is accepted

Sort by
0
Maria Ilieva
Telerik team
answered on 02 Apr 2013, 11:58 AM
Hello,

In some point you are correct for the described behavior in other you could avoid it in some scenarios.
In case you need to update several control on separate manual ajaxRequest you could simple pass different arguments to the different requests, check this arguments on the server AjaxRequest event and proceed with the needed logic only in this case. Another option could be to use ajaxRequestWithTarget instead of just ajaxRequest.
Also in the example you mentioned note that due to the asp panels container nature, their content will always be updated no mater of the ajax initiator in once these panels are added as updated controls. In order to avoid this beahvior in the previous release we have developed a single property "UpdateInitiatorsPanelsOnly" which should be set to "true"

Regards,
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
chawkins
Top achievements
Rank 1
Answers by
Maria Ilieva
Telerik team
Share this question
or