Last active
December 20, 2015 12:38
-
-
Save csharpfritz/6132027 to your computer and use it in GitHub Desktop.
Telerik AJAX RadMenu that executes a JavaScript function
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<telerik:RadMenu runat="server" ID="tkMenu"> | |
<Items> | |
<telerik:RadMenuItem Text="Telerik"></telerik:RadMenuItem> | |
</Items> | |
</telerik:RadMenu> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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