Hi,
I am trying to apply the functionality from Resize and Expand Grid
https://docs.telerik.com/kendo-ui/controls/data-management/grid/how-to/Layout/resize-grid-when-the-window-is-resized
to the TreeList.
I have tried tree.Scrollable(true); as an equivalent for grid.Scrollable(scrollable => scrollable.Height("auto")); but it does not work. At least the classes on content are not the same.
Can this be achieved? How can I have resize and Expand TreeList to 100% Height?
4 Answers, 1 is accepted
I used the provided Grid example and modify it for the TreeList.
The example with the TreeList is working as expected on my end:
https://dojo.telerik.com/EVUNu
If additional assistance is needed, please provide a fully runnable example and I will gladly assist.
Regards,
Stefan
Progress Telerik
Hi Stefan,
The example from dojo is kendo ui and not the telerik mvc. The forum is for mvc wrapper that do not work tha same as the kendo ui. Hence the above question.
Thank you for the clarification, I assumed that the jQuery approach is acceptable as the provided How-to example was using the jQuery version.
Also, the MVC widgets are wrappers of the jQuery widgets and the results for both should be the same as in this case all of the logic is on the client-side. The main difference is coming from the additional content which could be added from the _Layour file. The header should also be considered.
I have attached an MVC project for reference.
Regards,
Stefan
Progress Telerik
Hi Stefan,
Thank you for looking into this. Now it works also for my project. I think the browser was showing me a cached version when I looked at treelist page and the window had scroll too.