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] Grid component breaks when the data is an empty array and the scrollable attribute is set to 'none'. #2197

Open
ivan-kolesen opened this issue Apr 19, 2024 · 2 comments
Labels
Bug Item which indicates that something is not working KendoReact

Comments

@ivan-kolesen
Copy link

ivan-kolesen commented Apr 19, 2024

I'm submitting a...

  • Regression report

Current behavior

When the data={[]} and scrollable='none', Grid component breaks, displaying the error:

Error in /turbo_modules/@progress/kendo-react-grid@7.4.0/Grid.js (8:20657)
Cannot read properties of null (reading 'clientWidth')

Expected behavior

It functioned properly in versions prior to 7.0.0.
The component should not break. Instead, it should display a full-width message saying 'No records available'.

Minimal reproduction of the problem with instructions

See https://stackblitz.com/edit/react-rbxsyy?file=app%2Fmain.jsx

Environment

Package versions:

@progress/kendo-react-grid@^7.4.0

P.S.

After removing scrollable='none', the message 'No records available' appears ugly and fails to stretch to the full width of the table.

@zdravkov zdravkov added Bug Item which indicates that something is not working KendoReact labels Apr 29, 2024
@zdravkov
Copy link
Member

It looks like a bug indeed, thank you for reporting it. We will do our best to fix this as soon as possible.

If you observe other issues or you have other questions regarding our components or their specific configuration you can also consider submitting a support ticket on our support platform where we do our best to provide a more advanced dedicated support.

@filipKovachev
Copy link
Contributor

Reported again in Ticket ID: 1650291

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
Projects
None yet
Development

No branches or pull requests

3 participants