Skip to content

The k-sorted class is applied to the incorrect col when the sorted column is hidden #7942

@kendo-bot

Description

@kendo-bot

Bug report

The k-sorted class is applied to the incorrect element when the sorted column is hidden.

Reproduction of the problem

Run the following Dojo example:

https://dojo.telerik.com/@gdenchev/oboXuZUL

Current behavior

Note that the cells in the age column are colored in red when they shouldn't be. The sort is applied to the hidden column, so from the visible ones none should have the k-sorted class.

There is one more problem that should be reviewed, if you run the example and click on the name column, the color is not applied. However, if you click on address it is working as expected. This seems to be related to the sticky functionality.

A: This is a styling issue, there are other classes with a background-color that have a higher priority. Either the !important flag should be used or the target selectors should be updated.

Expected/desired behavior

The k-sorted class must be applied to the correct column regardless of the state of the column.

TicketID:

Public item - https://feedback.telerik.com/kendo-jquery-ui/1661405-k-sorted-applied-to-wrong-column

Environment

  • Kendo UI version: 2024.3.806
  • jQuery version: all
  • Browser: [all]

Metadata

Metadata

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions