New to Telerik UI for ASP.NET Core? Start a free 30-day trial
Manual Closing
Updated over 6 months ago
The ToolBar provides options for closing its popup from a button click event in a template.
Razor
@(Html.Kendo().ToolBar() .Name("toolbar") .Items(items => { items.Add().Type(CommandType.Button).Text("Button"); items.Add().Template("<a class='k-item k-state-default ng-scope' >Test</a>") .OverflowTemplate("<button onclick='action()' class='btn' >Test</button>") .Overflow(ShowInOverflowPopup.Always); } ) ) <script> function action() { $("#toolbar").data("kendoToolBar").popup.close(); } </script>