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

RadMenu with confirm

1 Answer 65 Views
Menu
This is a migrated thread and some comments may be shown as answers.
Lucania
Top achievements
Rank 1
Lucania asked on 25 Oct 2011, 05:06 AM
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?

Thanks

ROSCO

1 Answer, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 25 Oct 2011, 07:52 AM
Hello Ross,

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

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

Thanks,
Princy.
Tags
Menu
Asked by
Lucania
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Share this question
or