Open dynamic links as a pop up from rad window

2 posts, 0 answers
  1. Chandra Pottipati
    Chandra Pottipati avatar
    5 posts
    Member since:
    Aug 2012

    Posted 05 Jan 2012 Link to this post

    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
  2. Marin Bratanov
    Admin
    Marin Bratanov avatar
    4526 posts

    Posted 06 Jan 2012 Link to this post

    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
Back to Top