RadMenu with confirm

2 posts, 0 answers
  1. Lucania
    Lucania  avatar
    65 posts
    Member since:
    May 2011

    Posted 25 Oct 2011 Link to this post

    I'm trying to do something similar to the example here: http://www.telerik.com/help/aspnet-ajax/menu-with-radconfirm.html

    It mostly works, however some menu items are navigate links to other pages in my application, and the NavigateUrl is something like "~/folder/page.aspx". Obviously this doesn't work. Is there any easy way (client-side) to get the value translated to an absolute URL, or do I have to change the code to put the absolute URL in the NavigateURL?


  2. Princy
    Princy avatar
    17421 posts
    Member since:
    Mar 2007

    Posted 25 Oct 2011 Link to this post

    Hello Ross,

    I suppose you want to access the NavigateUrl from clientside. So you can try the following javascript.

    <script type="text/javascript">
    function OnClientItemClicking(sender, eventArgs)
      var  item = eventArgs.get_item();
      window.location.href = item.get_navigateUrl();

Back to Top