-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Description
Bug report
The imageClass setting of the TreeList command column doesn't work (neither in jQuery/MVC/Core)
Currently undefined class is added to the 'k-button' element.
Reproduction of the problem
- Run the example in the API - https://docs.telerik.com/kendo-ui/api/javascript/ui/treelist/configuration/columns.command#columnscommandimageclass
Current behavior
There is no icon added in the command button and undefined class is added to the 'k-button' element.
Expected/desired behavior
There should be icon displayed in the button based on the added class in the imageClass configuration option
The issue is a regression - Starting with the 2023 R1 SP1 release
Note: Starting with the 2022 R1 release undefined class is added to the k-button element, but still the icon is displayed as icon classes are added to the inner span element.
Rendering starting with 2023 R1 SP1

Workaround
dataBound: function(){
$('.k-button-text').addClass('k-icon k-i-trash k-button-icon')
$('.k-button-text').text('')
},
Dojo - https://dojo.telerik.com/@NeliKondova/oPEvOcus
Environment
- Kendo UI version: 2023.1.425
- Browser: [all ]
