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

Menu DataNavigateUrlField to external address issue

3 Answers 36 Views
Menu
This is a migrated thread and some comments may be shown as answers.
Paul J
Top achievements
Rank 1
Paul J asked on 15 Sep 2010, 09:34 PM
I'm binding a radMenu to database data. I'm setting my DataNavigateUrlField to "MenuLink" field. for the most part, the MenuLink field simply contains page names, i.e. Default.aspx, page1.aspx, etc. I have one  that I wish to link to an external site, i.e. http://www.google.com, but when i set this item's MenuLink field to http://www.google.com, on binding of the menu it throws an error:

'~/http://www.google.com' is not a valid virtual path.

obviously it's automatically putting the ~ symbol. how do i get it to not do this?

Thanks.

3 Answers, 1 is accepted

Sort by
0
Paul J
Top achievements
Rank 1
answered on 17 Sep 2010, 01:20 PM
Sigh. Nevermind. I finally realized we had code in that was specifically adding "~/" to the links.
0
Accepted
Veronica
Telerik team
answered on 17 Sep 2010, 03:54 PM
Hi Paul J,

I tried to reproduce the issue but to no avail. You can see the DataNavigateUrlField property working on this demo.

Could you please send me the full code as well as the database so I can inspect it and help you?

Kind regards,
Veronica Milcheva
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Paul J
Top achievements
Rank 1
answered on 17 Sep 2010, 04:30 PM
Thanks for the reply, but as I previously posted, I have resolved my issue. Since it was my own post, it would not let me mark it as the answer.
Tags
Menu
Asked by
Paul J
Top achievements
Rank 1
Answers by
Paul J
Top achievements
Rank 1
Veronica
Telerik team
Share this question
or