Hello to all,
Me and my team are very "fresh" in working with Telerik Dev Tools and we are exploring its potencials to see how can we use them in the platform we are developing. We are very excited with the available controls but we have some concerns on the correct usage of the controls and which are the best practices to use them.
Today's doubt is regarding the RadAjaxManager best usage.
Our web platform is using Master Pages to have similar GUI and implement many global functions. Also we have different web controls that can be reused on different pages. These controls can make partial updates and like that needed to be "ajaxified" for Rad Ajax Manager, which is a control we want to use to have more flexibility on the Partial Updates and on the controls that trigger these Updates.
With some quick readings we caught and resolve some issues regarding the usage of ascx with Rad Ajax Manager and the best practice is to register the control programatically. We created a simple method on the Page that receives a Control and register it on the Rad Ajax Manager updating some Panels that are on the same Page. We implemented this approach (see code bellow) with good results.
But now we have a dillema... With the massive usage of the Telerik Controls we have a "Software Design doubt" about where to put the Rad Ajax Manager?
We want to know if exists some documentation that can help us with that or simply which is the best practice that you guys advise.
Many thanks in advance.
Hugo Salgado
Me and my team are very "fresh" in working with Telerik Dev Tools and we are exploring its potencials to see how can we use them in the platform we are developing. We are very excited with the available controls but we have some concerns on the correct usage of the controls and which are the best practices to use them.
Today's doubt is regarding the RadAjaxManager best usage.
Our web platform is using Master Pages to have similar GUI and implement many global functions. Also we have different web controls that can be reused on different pages. These controls can make partial updates and like that needed to be "ajaxified" for Rad Ajax Manager, which is a control we want to use to have more flexibility on the Partial Updates and on the controls that trigger these Updates.
With some quick readings we caught and resolve some issues regarding the usage of ascx with Rad Ajax Manager and the best practice is to register the control programatically. We created a simple method on the Page that receives a Control and register it on the Rad Ajax Manager updating some Panels that are on the same Page. We implemented this approach (see code bellow) with good results.
//this method will be available on each page
public
void
AjaxifyControl(Control ctrl)
{
//Add the necessary AJAX setting programmatically
RadAjaxManager1.AjaxSettings.AddAjaxSetting(ctrl, Panel1);
RadAjaxManager1.AjaxSettings.AddAjaxSetting(ctrl, Panel2);
RadAjaxManager1.AjaxSettings.AddAjaxSetting(ctrl, Panel3);
}
But now we have a dillema... With the massive usage of the Telerik Controls we have a "Software Design doubt" about where to put the Rad Ajax Manager?
- On the Master Page and like that we only allow to programatically register all the "Ajaxified Controls" with all "Updatable Controls", leaving the register decision for each page, but taking the risk that could be many pages without really needing the RadAjaxManager. We think allowing this by making available a method similar to the one i show bellow:
//this method will be available on the Master Page.
public
void
RegisterAjaxSetting(Control ajaxifiedCtrl, Control updatedCtrl)
{
RadAjaxManager1.AjaxSettings.AddAjaxSetting(ctrl, updatedCtrl);
}
- On all needed Pages (we have this approach right now) having a mix between Markup registered controls (the ones that can be registered thru markup -> basic Page controls) and Programatically registered controls (the ones that exists on the Web User Controls ans need to be added by code), creating a RadAjaxManager on each page that needs a Rad Ajax Manager.
We want to know if exists some documentation that can help us with that or simply which is the best practice that you guys advise.
Many thanks in advance.
Hugo Salgado