This is a migrated thread and some comments may be shown as answers.
Open dynamic links as a pop up from rad window
1 Answer 21 Views
This is a migrated thread and some comments may be shown as answers.
Chandra Pottipati
Top achievements
Rank 1
Chandra Pottipati asked on 05 Jan 2012, 09:42 PM

Our application has RadWindow ,which is displayed as pop up window with some information.We are trying to open the links in the RadWindow in a new browser window - through the Ajax Manager by adding the Javascript method to the RadAjaxManager response scripts and sending the parameters from code behind.The script has been added to the Response scripts.but the javascript is not getting executed.

Is there any other way to do this? or is this the right approach.



Thanks
Chandra

1 Answer, 1 is accepted

Sort by
0
Marin Bratanov
Telerik team
answered on 06 Jan 2012, 01:11 PM
Hello Chandra,

The easiest way to open a hyperlink in a new browser popup is to use the target attribute of the anchor and set it to _blank. Alternatively you can use JavaScript and window.open() to start a browser popup. If you need the server-side functionality and you wish to use the RadAjaxManager you need to make sure the said hyperlinks perform an ajax request through the RadAjaxManager in order for its ResponseScripts collection to be executed. You can, however, remove the dependency from the RAM by injecting a script from the code-behind that will open the needed browser window via window.open.


Greetings,
Marin
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now
Asked by
Chandra Pottipati
Top achievements
Rank 1
Answers by
Marin Bratanov
Telerik team
Share this question
or