Product Bundles
DevCraft
All Telerik .NET tools and Kendo UI JavaScript components in one package. Now enhanced with:
Web
Mobile
Document Management
Desktop
Reporting
Testing & Mocking
CMS
UI/UX Tools
Debugging
Free Tools
Support and Learning
Productivity and Design Tools
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.