This is a migrated thread and some comments may be shown as answers.

Open an External link in a new Windows

3 Answers 116 Views
Menu
This is a migrated thread and some comments may be shown as answers.
Rao
Top achievements
Rank 1
Rao asked on 27 Jul 2009, 02:29 PM
I am trying to open an external website in a new windows using RadMenu control and sitemap file. I use target="_blank" to open
the site in a new windows but it does not work for me:
for example  I want to link to telerik website like this:

<

 

siteMapNode url="~/Home.aspx" resourceKey="Home" />  

 

 

<

 

siteMapNode url="~/Contact.aspx" resourceKey="contact" />  

 

<

 

siteMapNode title="Telerik" url="http://www.telerik.com" target ="_blank"  roles="*"/>


This does not open a new windows.

Thanks for your help

Rao

 

 

 

 

 

3 Answers, 1 is accepted

Sort by
0
Kamen Bundev
Telerik team
answered on 27 Jul 2009, 02:44 PM
Hello Rao,

Unfortunately this is a bug in IE8's handling of the context menu when the user right clicks on a link with a block element in it and there are no known fixes for that.

Best wishes,
Kamen Bundev
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Rao
Top achievements
Rank 1
answered on 28 Jul 2009, 08:13 AM
Hi Kamen,

I am not using IE8

Thanks
Rao
0
Kamen Bundev
Telerik team
answered on 31 Jul 2009, 08:42 AM
Hi Rao,

Sorry, I misread your question.

The target is not automatically transferred from the sitemap, you have to do it yourself in the ItemDataBound handler, like this:
protected void RadMenu1_ItemDataBound(object sender, Telerik.Web.UI.RadMenuEventArgs e)
{
    e.Item.Target = ((SiteMapNode) e.Item.DataItem)["target"];
}

Let me know if this helps.

Kind regards,
Kamen Bundev
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
Menu
Asked by
Rao
Top achievements
Rank 1
Answers by
Kamen Bundev
Telerik team
Rao
Top achievements
Rank 1
Share this question
or