This is a migrated thread and some comments may be shown as answers.

Resize and Expand

4 Answers 78 Views
TreeList
This is a migrated thread and some comments may be shown as answers.
Dan
Top achievements
Rank 1
Iron
Iron
Veteran
Dan asked on 28 Nov 2017, 02:52 PM

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

Sort by
0
Stefan
Telerik team
answered on 30 Nov 2017, 09:19 AM
Hello, Dan,

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
Try our brand new, jQuery-free Angular components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
0
Dan
Top achievements
Rank 1
Iron
Iron
Veteran
answered on 30 Nov 2017, 06:06 PM

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.

0
Accepted
Stefan
Telerik team
answered on 04 Dec 2017, 08:55 AM
Hello, Dan,

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
Try our brand new, jQuery-free Angular components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
0
Dan
Top achievements
Rank 1
Iron
Iron
Veteran
answered on 06 Dec 2017, 07:18 AM

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.

Tags
TreeList
Asked by
Dan
Top achievements
Rank 1
Iron
Iron
Veteran
Answers by
Stefan
Telerik team
Dan
Top achievements
Rank 1
Iron
Iron
Veteran
Share this question
or