Resize and Expand

5 posts, 1 answers
  1. Dan
    Dan avatar
    72 posts
    Member since:
    Nov 2017

    Posted 28 Nov 2017 Link to this post

    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?

  2. Stefan
    Admin
    Stefan avatar
    1786 posts

    Posted 30 Nov 2017 Link to this post

    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.
  3. Dan
    Dan avatar
    72 posts
    Member since:
    Nov 2017

    Posted 30 Nov 2017 in reply to Stefan Link to this post

    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.

  4. Answer
    Stefan
    Admin
    Stefan avatar
    1786 posts

    Posted 04 Dec 2017 Link to this post

    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.
  5. Dan
    Dan avatar
    72 posts
    Member since:
    Nov 2017

    Posted 06 Dec 2017 in reply to Stefan Link to this post

    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.

Back to Top