[Solved] BUG: Button in MVVM does not display icons

1 Answer 27 Views
Button MVVM
Andrew
Top achievements
Rank 1
Iron
Iron
Iron
Andrew asked on 30 Sep 2026, 12:08 PM
According to the documentation, when working with MVVM templates, you should be able to add an icon to a button simply by adding the 'data-icon' attribute.

For example

<button data-role="button" data-icon="edit" data-bind="visible: isVisible, enabled: isEnabled, events: { click: onClick }" style="width: 180px"> Click me </button>

 

It does not work. The button displays with the text, but there is a blank space where the icon should be.

Even in the online example you can see there is no icon.

Here is a dojo link which also demonstrates that the icon does not appear.

https://dojo.telerik.com/?_gl=1*2jeqdz*_gcl_au*MTQ5MzMzNTEwOC4xNzg1MzkwMzczLjE0OTg4MTY0NDMuMTc5MDcyODgzOC4xNzkwNzI4ODQ0LjEwMzM3NjIzNTQuMTc5MDcyODgzOC4xNzkwNzI4ODQ0*_ga*MTAyOTE0MTY1NC4xNzg1MzkwMzcz*_ga_9JSNBCSF54*czE3OTA3Mjg2ODEkbzE3JGcxJHQxNzkwNzMxMTk1JGoyOCRsMCRoMA..






1 Answer, 1 is accepted

Sort by
0
Viktor Tachev
Telerik team
answered on 05 Oct 2026, 07:51 AM

Hi Andrew,

Thank you for reporting this to us.

The issue is caused by a misconfigured example rather than an actual bug in the Button component. There have been changes to the icon names, and it appears that the icon used in this example was not updated accordingly.

In this case, the data-icon attribute should have the value pencil. With this change, the icon is displayed as expected:

<button data-role="button"
		data-icon="pencil"
		data-bind="visible: isVisible, enabled: isEnabled, events: { click: onClick }"
		style="width: 80px">
	Click me
</button>

 

You can try the updated dojo for reference.

Thank you for bringing this to our attention. As a token of gratitude I have updated your Telerik points.

Regards,
Viktor Tachev
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

Tags
Button MVVM
Asked by
Andrew
Top achievements
Rank 1
Iron
Iron
Iron
Answers by
Viktor Tachev
Telerik team
Share this question
or