I want to update axaxPanel in source code. i used below code, but it throw exeption. may anyone help me please.
Best Regards. Morteza
<script type="text/javascript" language="javascript">
function test()
{
var id = $get('ddl_AdsPanel').value;
PageMethods.test(id, OnSuccessTypeAds, OnFailureTypeAds);
$get(
'RadAjaxPanel1').DataBind(); // this line not work here.
}
</script>
4 Answers, 1 is accepted
I have followed your scenario and prepared a sample project for you demonstrating how the desired functionality can be implemented. You can find it attached to this message.
I hope it helps.
Sincerely yours,
Mira
the Telerik team

Best. Morteza

I need to know where call and ajaxRequest in a particolar scenario:
When i click in ContexMenu of a RadTreeView i open a radwindow that receives some arguments from the RadTreeView .
On the radwindow i have two hiddenfields and a radajaxpanel that contains a formview.
I Get the args on the rad window with this javascript function
function pageLoad() {txtInputIdLinea = document.getElementById('hdfIdLinea');
var currentWindow = GetRadWindow();
txtInputIdLinea.value = currentWindow.argument.Idlinea;}
The datasource of the formview has hdfIdLinea as a parameter.
The problem is that when the radwindow finish "loading" the formview didn't see the value set in hdfIdLinea, so after setting the value i add an ajax Request like this
$find(
"<%= Panel.ClientID %>").ajaxRequest("Update panel");
And It works, but this code run in a loop and i have this exception
Microsoft JScript runtime error: Sys.WebForms.PageRequestManagerParserErrorException: The message received from the server could not be parsed.
May you help me?. I need to force a postback of the FormView once time after the radwindow is loaded.
thanks._
Please take a look at the following demos illustrating the various ways to transfer data between windows:
Returning Values from a Dialog
Use as controls container
Using the URL for Server Arguments
RadWindow as Information Popup
I hope this helps.
Regards,
Mira
the Telerik team