Skip to content

The imageClass of the TreeList command column has no effect #7298

@eyupyusein

Description

@eyupyusein

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

  1. 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 with 2022 R1
image

Rendering starting with 2023 R1 SP1
image

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 ]

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions