Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug][Grid] Misaligned headers when having both hidden and locked columns #2551

Open
vveesseelliinnaa opened this issue Oct 7, 2024 · 0 comments
Labels
Bug Item which indicates that something is not working KendoReact pkg:Grid SEV: Medium triaged mark the triaged issues with correct priority

Comments

@vveesseelliinnaa
Copy link
Contributor

vveesseelliinnaa commented Oct 7, 2024

I'm submitting a...

  • Bug report <!-- Please search for a similar issue before you submit a bug report. --

Current behavior

when using a Grid where the first and last columns are locked and you dynamically hide a column in the middle, the table header is rendered incorrectly.

Minimal reproduction of the problem with instructions

  1. Go to https://stackblitz.com/edit/react-dsahzp-s4up6s?file=app%2Fapp.tsx
  2. Click the "Toggle" button to show the hidden column

Result: Observe that the header of the "In Stock" column is jumped to the right.

Additional details

The culprit is this inline style: style="left: 75px; right: 0px;" which is created in the header cell constructor due to locked columns, but is never updated again. Even if the number of columns changes.

Reported in Ticket ID: 1666488

@vveesseelliinnaa vveesseelliinnaa added Bug Item which indicates that something is not working pkg:Grid SEV: Medium KendoReact labels Oct 7, 2024
@vveesseelliinnaa vveesseelliinnaa added the triaged mark the triaged issues with correct priority label Oct 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Item which indicates that something is not working KendoReact pkg:Grid SEV: Medium triaged mark the triaged issues with correct priority
Projects
None yet
Development

No branches or pull requests

1 participant