Last Updated: 21 Jan 2020 09:21 by ADMIN
Heiko Falk
Created on: 11 Sep 2013 09:32
Category: UI for ASP.NET MVC
Type: Feature Request
Add icon to custom buttons in grid toolbar
To have a consistent look in grids toolbar, it should be possible to add an icon class to custom buttons. Not possible through .HtmlAttributes() because those gets applied to the wrapper link and kendo icons are displayed via inner span tag.

.ToolBar(toolbar =>
        toolbar.Create(); // Has [+]-Icon
        toolbar.Custom().Text("My Custom Button"); // Does not have an icon

Would be nice to have an option like

toolbar.Custom().Text("Reset Grid Settings").Icon("k-i-funnel-clear");

which results in 

<a href="/Tarife" class="k-button k-button-icontext">
    <span class="k-icon k-i-funnel-clear"></span>
    Reset Grid Settings
1 comment
Alex Hajigeorgieva
Posted on: 21 Jan 2020 09:21

Hello, Heiko,

The Kendo UI Grid for ASp.NET MVC offers adding of an icon via the IconClass() method

.ToolBar(t=>t.Custom().Text("Custom Button").IconClass("k-icon k-i-copy"))

Kind Regards,
Alex Hajigeorgieva
Progress Telerik

Get quickly onboarded and successful with your Telerik UI for ASP.NET MVC with the dedicated Virtual Classroom technical training, available to all active customers.