TreeList: wider than container width - columns don't resize

2 Answers 175 Views
TreeList
Janki
Top achievements
Rank 4
Bronze
Iron
Iron
Janki asked on 07 Dec 2022, 09:24 PM | edited on 07 Dec 2022, 09:25 PM

https://codesandbox.io/s/modern-cherry-gki3cj?file=/app/main.jsx

When the TreeList is wider than the container (i.e. has many columns), it doesn't:

  1. Respect the given column widths, or
  2. Allow the user to resize the column widths

The grid only uses the width of the column's values or uses the width of the header cell's value (whichever is larger). I believe this is not the intended behavior for TreeList.

In case it helps -- locally, I get the below console error when I have the above scenario and try to resize a column:

Unable to preventDefault inside passive event listener invocation.

Stack trace:
CommonDragLogic.pressHandler @ CommonDragLogic.js:28
ColumnDraggable._this.onPress @ ColumnDraggable.js:29
(anonymous) @ Draggable.js:22
(anonymous) @ useDraggable.js:128
dispatchDragAndDrop @ drag-n-drop.js:130
(anonymous) @ useDraggable.js:148
(anonymous) @ useDraggable.js:173

I've tried to circumvent this issue with many strategies, and I thought it might be because I put the TreeList component inside a Material UI container, but the Sandbox shows the issue well in a clean environment devoid of any external libraries. Please help! Thank you!

2 Answers, 1 is accepted

Sort by
0
Accepted
Vessy
Telerik team
answered on 12 Dec 2022, 11:30 AM

Hi, Janki,

I have tested the reported behavior and can confirm that this is a bug with the TreeList component. I have logged an issue in our public repository, so it can be handled by the developers team accordingly.

You can follow its progress at the link below:

https://github.com/telerik/kendo-react/issues/1460

Currently, there is no workaround available, if one is found it will be added to the issue.

I have also updated your Telerik points for bringing this issue to our attention.

Regards,
Vessy
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

0
Janki
Top achievements
Rank 4
Bronze
Iron
Iron
answered on 09 Dec 2022, 07:17 PM
Bump
Tags
TreeList
Asked by
Janki
Top achievements
Rank 4
Bronze
Iron
Iron
Answers by
Vessy
Telerik team
Janki
Top achievements
Rank 4
Bronze
Iron
Iron
Share this question
or