You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
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.
With the 2023 R1 SP1 release, to show the icon, either a font one or an SVG one, you would need to simply declare the icon name via the .icon property instead of the .imageClass one. The image class will just add the class to the icon element if you need it for further customization of the icon.
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
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 with 2022 R1
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
The text was updated successfully, but these errors were encountered: