5 Answers, 1 is accepted
0
Hello, Matej,
The TreeView design is to expand based on the content. If we set a fixed width to it, it will automatically show a scrollbar. The width can be set with a className and CSS:
https://stackblitz.com/edit/react-haaavq-lvxqpu?file=index.html
Please let me know if you need additional information on this matter.
Regards,
Stefan
Progress Telerik
0
Matej
Top achievements
Rank 1
Veteran
answered on 29 Jul 2020, 12:29 PM
Not sure I understand. Even in your example all sub-items are cut and the scroll is working only for first level items. See attached screenshot.
0
Accepted
Hello, Matej,
My apologies, indeed the items are still cut.
This can be resolved with the following CSS:
.k-treeview-item .k-animation-container{
overflow: inherit;
}
https://stackblitz.com/edit/react-haaavq-lvxqpu?file=index.html
Everything seems visible now.
Regards,
Stefan
Progress Telerik
0
Matej
Top achievements
Rank 1
Veteran
answered on 30 Jul 2020, 01:44 PM
Thank you. Is this going to be part of your styles in the future or are there any conflicts with existing styles?
0