I suggest to improve the sample code Princy provided in the following manner:
1) Use ScriptManager instead of ClientScript - this will handle more scenarios, e.g when an AJAX request was made.
2) Since your js function already has a name, it is not needed to wrap it the additional named f function.
With the above your code will look like the following:
js in aspx:
//get a reference to the window
oWnd = $find(
"<%= RadWindow2.ClientID %>"
//set its NavigateUrl
//add the name of the function to be executed when RadWindow is closed
//show the window
sender, EventArgs e)
You can find a more detailed article about opening RadWindow from the server below:
I hope that my reply is helpful, let me know how it goes.
the Telerik team
Sharpen your .NET Ninja skills
! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>