All Telerik .NET tools and Kendo UI JavaScript components in one package. Now enhanced with:
Hi,
I was just wondering how to call an javascript function or controller action from a custom toolbar button on the grid. I notice that there's no .Action() or .Url(), ext attributes in the core html helpers.
Thanks in advance!
Hey there Catherine. You can give this a shot: .ToolBar(toolbar => toolbar.Custom().Text("CustomCommand").HtmlAttributes(new { onclick = "customCom()" }); function customCom(e) { alert("Clicked!"); }
Hope it helps.