RadAjax for ASP.NET

Centralized Management of AJAX Relations Send comments on this topic.
See Also
Advantages of telerik AJAX framework > Centralized Management of AJAX Relations

Glossary Item Box

A typical challenge with other AJAX frameworks is the fact that the AJAX behavior of the page (which controls initiate AJAX requests and update other controls) is achieved by setting numerous controls individually.

For example, in certain frameworks you need to set some kind of triggers that initiate AJAX callbacks upon predefined conditions. For example:

  • "Message Body" Ajax Panel - Trigger 1: The message body needs to be updated when an e-mail item is clicked
  • "Message Body" Ajax Panel - Trigger 2: The message body needs to be updated when the calendar is clicked
  • "E-mail list" Ajax Panel - Trigger 1: The e-mail list needs to be updated when the calendar is clicked

 

The combination of these 3 Triggers define the 2 AJAX relations on the page, which are:

  1. When the calendar is clicked the e-mail list and the message body need to be updated
  2. When an e-mail message is clicked the message body only needs to be updated

 

As you can see, it is not very easy to figure out what will be the effect of the combination of triggers, especially when you have complex real-life applications like the Telerik HelpDesk sample. This task would require placing 20+ Ajax Panels and setting 50+ triggers.

Moreover, setting several triggers that facilitate every of the numerous AJAX relations will definitely need serious planning and probably something like a "Trigger diagram".

 

 

In contrast, the Telerik RadAjax framework offers a centralized place where you can define and modify the AJAX relations on the page. This is done through the single configuration dialog of the AJAX Manager in Visual Studio .Net design mode.

If we need to implement the above scenario we need to simply set the two relations in the dialog.

Relation 1: When the calendar is clicked the e-mail list and the message body need to be updated

 

Relation 2: When an e-mail message is clicked the message body only needs to be updated

 

It is clearly of benefit for developers to be able to see all AJAX relations at a glance in one centralized place (the AJAX Manager dialog) , rather than having to configure every Trigger of every Ajax Panel individually.

 

The logic for setting AJAX relations in the AJAX Manager dialog leads to another benefit - the AJAX relations are defined in the same sequence in which users interact with the interface of the application. For more information see section "Intuitive Way for Defining AJAX Relations".

See Also