auto resizing treelist

1 Answer 72 Views
Dialog TreeList
ted
Top achievements
Rank 1
Iron
ted asked on 29 Jul 2022, 11:52 AM | edited on 29 Jul 2022, 05:45 PM

I'm rendering Kendo Treelist inside of a Kendo Window. Is there a good way to resize height and weight of treelist based on window's height and width?

 

Thanks

1 Answer, 1 is accepted

Sort by
0
Konstantin Dikov
Telerik team
answered on 30 Jul 2022, 08:35 AM

Hello Ted,

You can set the TreeList width and height to be "100%" and the overflow to be "auto" and it will fill the size of the Window accordingly. Here is an example with that configuration:

I have added a wrapping div just to demonstrate that the TreeList changes its dimensions based on the Window size. Here is an example without the wrapping div:

Hope this helps.

 

Regards,
Konstantin Dikov
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
Dialog TreeList
Asked by
ted
Top achievements
Rank 1
Iron
Answers by
Konstantin Dikov
Telerik team
Share this question
or