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

0 Answers 10 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..






No answers yet. Maybe you can help?

Tags
Button MVVM
Asked by
Andrew
Top achievements
Rank 1
Iron
Iron
Iron
Share this question
or