This question is locked. New answers and comments are not allowed.
Hello,
I have created a Telerik Menu and I would like to use an Ajax.ActionLink aas the menu item. I saw another thread that shows you how to do this and I was able to add the link. However, when the link is clicked in the menu the link redirects to the linked page instead of calling it via ajax. I have included jquery.unobtrusive-ajax.min.js so that is not it. I have tracked it down to when the scrip registrar calls:
jQuery('#Menu').tMenu();
When that is included (which is really important) then the ajax.actionlink items no longer work properly. I am not sure what extra code gets added to the click of a link that is causing this to fail. All other Ajax.ActionLinks in my page that are not in the Telerik Menu work perfectly.
Please let me know if there is a solution so I can use Ajax links. This would be VERY helpful!
Telerik MVC (2011.2.712) Menu, jquery-1.5.1.min.js
I have created a Telerik Menu and I would like to use an Ajax.ActionLink aas the menu item. I saw another thread that shows you how to do this and I was able to add the link. However, when the link is clicked in the menu the link redirects to the linked page instead of calling it via ajax. I have included jquery.unobtrusive-ajax.min.js so that is not it. I have tracked it down to when the scrip registrar calls:
jQuery('#Menu').tMenu();
When that is included (which is really important) then the ajax.actionlink items no longer work properly. I am not sure what extra code gets added to the click of a link that is causing this to fail. All other Ajax.ActionLinks in my page that are not in the Telerik Menu work perfectly.
Please let me know if there is a solution so I can use Ajax links. This would be VERY helpful!
Telerik MVC (2011.2.712) Menu, jquery-1.5.1.min.js
Html.Telerik().Menu() .Name("MapMenu") .Items(items => { items.Add().Text(Ajax.ActionLink("View Legend", "Legend", new AjaxOptions { UpdateTargetId = "Legend", OnSuccess = "alertMe" }).ToHtmlString()).Encoded(false); }) .Render();function alertMe() { alert("Alert!");}