The column width of the Treelist and the text inside the cells

1 Answer 42 Views
TreeList
Andrei
Top achievements
Rank 1
Iron
Andrei asked on 15 Nov 2024, 12:36 PM
Hello.

I am using the TreeList component. I set a certain width for the columns. But the width of the columns adjusts to the length of the text. This option does not suit me. It is necessary that the text be in one line, and if it does not fit the width of the column, it is cut off with three points at the end. 
In the Grid component, you can crop the text by setting {whiteSpace: 'nowrap'}. But it doesn't work in TreeList. 
Tell me a way, please, in which for the Treelist component it is possible to crop the text in the cells to fit the specified column width. This should work for the cells in the header as well

https://stackblitz.com/edit/react-uwfztz-j3uz6q?file=app%2Fapp.tsx,app%2Frenderers.tsx

1 Answer, 1 is accepted

Sort by
0
Yanko
Telerik team
answered on 19 Nov 2024, 12:10 PM

Hi, Andrei,

Thank you for the screenshots and the example provided. I tested the example and the behaviour from the pictures was reproduced when using our default, material, or bootstrap themes, but in the fluent theme, it worked as expected. Therefore I logged a bug in our `kendo-themes` repo where you can track and monitor the progress around it:

I have contacted our development team, and we are currently working on providing a workaround. I will update you when we have it.

Furthermore, I added 1000 Telerik Points to your account as a reward for providing your valuable feedback and bringing this issue to our attention.

Regards,
Yanko
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.

Tags
TreeList
Asked by
Andrei
Top achievements
Rank 1
Iron
Answers by
Yanko
Telerik team
Share this question
or