Skip to content

The last column of the Grid is different color when a hidden column is sorted #8087

@iordanGrancharov

Description

@iordanGrancharov

Bug report

The last column of the Grid is darker in color when a hidden column is sorted through the DataSource.

Reproduction of the problem

  1. Run https://dojo.telerik.com/UhFxSjVc/2
  2. Inspect the last column

Current behavior

k-sorted class is added to the last col of the colgroup. The issue is triggered by this line of code in the Kendo ColumnSorter

table.find("col:not(.k-group-col):not(.k-hierarchy-col)").eq(headerIndex).toggleClass("k-sorted", dir !== undefined$1);

Image

Expected/desired behavior

The class should not be added if the column that is sorted is hidden.
Image

Environment

  • Kendo UI version: 2024.4.1112
  • Browser: all

Metadata

Metadata

Assignees

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions