Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

RadAjaxPanel version of UpdatePanel.Update()?

What can I do with the RadAjaxPanel to force a partial postback and refresh/update all the controls inside it? I used to use an UpdatePanel and call .Update()

like image 657
Brian David Berman Avatar asked Aug 28 '09 18:08

Brian David Berman


3 Answers

I found this topic in the Telerik online docs which pretty much mimics the UpdatePanel.Update() method of the MS Update Panels.

Dick

like image 124
dick_lampard Avatar answered Oct 05 '22 11:10

dick_lampard


I would recomend you to use the RadAjaxManager.

It is much more flexible than the RadAjaxPanel. The idea is that you define a "triggering control" and than controls that are affected.

I'm not sure what triggers your "force a partial postback" - but if I assume that it is a button than you can a script like this:

function FireButton(){

$find("<%=RadAjaxManager1.ClientID %>").ajaxRequest("IDofTheButton");
}

And in the manager ajaxsettings you add the button as trigger, as well as the controls you want to update as "affected controls".

like image 39
ManniAT Avatar answered Oct 05 '22 12:10

ManniAT


To achieve the desired result, you can call the ajaxRequest() method of the ajax panel. A similar setup is demonstrated in the following article:

http://www.telerik.com/help/aspnet-ajax/ajxinteractionbetweenpanels.html

like image 34
Brian David Berman Avatar answered Oct 05 '22 11:10

Brian David Berman