Skip to content

[Bug][Grid] GridColumnResizeEvent.columns have stale width when resizing a column #3365

@revov

Description

@revov

Description

This is a regression in Kendo v12 (probably introduced in v10 or v11). The Grid's onColumnResize event contains a columns property which is used to determine the latest width of every column. However, in latest Kendo version, these values are stale and return the previous state of the grid columns (before column resizing started).

As a workaround a combination of GridColumnResizeEvent's index and newWidth properties can be used to find out the actual width value of the column that's being resized, but those properties are marked as deprecated.

Plan

KendoReact

Steps To Reproduce

Try resizing a column and observe the console logs.
https://stackblitz.com/edit/react-crj9saiy?file=app%2Fapp.tsx

Screenshots or video

No response

Actual Behavior

onColumnResize event's columns property contain stale width values which prevents us from properly handling the column resizing event.

Expected Behavior

The widths in onColumnResize event's columns property should update accordingly as we drag the resize handle, as in previous Kendo versions.

Browser

Chrome

Browser version

latest

OS type

MacOS, Windows

OS version

No response

Last working version of the KendoReact package (if regression).

8

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugItem which indicates that something is not workingKendoReact

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions