Menu DataNavigateUrlField to external address issue

4 posts, 1 answers
  1. Paul J
    Paul J avatar
    101 posts
    Member since:
    Nov 2008

    Posted 15 Sep 2010 Link to this post

    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.
  2. Paul J
    Paul J avatar
    101 posts
    Member since:
    Nov 2008

    Posted 17 Sep 2010 Link to this post

    Sigh. Nevermind. I finally realized we had code in that was specifically adding "~/" to the links.
  3. Answer
    Veronica
    Admin
    Veronica avatar
    1213 posts

    Posted 17 Sep 2010 Link to this post

    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
  4. Paul J
    Paul J avatar
    101 posts
    Member since:
    Nov 2008

    Posted 17 Sep 2010 Link to this post

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