Skip to content

Instantly share code, notes, and snippets.

@csharpfritz
Last active December 20, 2015 12:38
Show Gist options
  • Save csharpfritz/6132027 to your computer and use it in GitHub Desktop.
Save csharpfritz/6132027 to your computer and use it in GitHub Desktop.
Telerik AJAX RadMenu that executes a JavaScript function
<telerik:RadMenu runat="server" ID="tkMenu">
<Items>
<telerik:RadMenuItem Text="Telerik"></telerik:RadMenuItem>
</Items>
</telerik:RadMenu>
for (int i = 0; i < tkMenu.Items.Count; i++)
{
if (tkMenu.Items[i].Text == "Telerik")
{
tkMenu.Items[i].NavigateUrl = "javascript:alert('hello world')";
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment