Make TreeView fill parent

2 posts, 0 answers
  1. JP
    JP avatar
    120 posts
    Member since:
    Aug 2011

    Posted 07 Mar 2012 Link to this post

    Hi,

    I have a page with some controls and the last control which is below all other controls is a TreeList.
    This TreeList can contain more data than it could fit on the screen, so it automatically gets bigger than the browser window and the
    browser displays scroll bars. This could be ok, but the LoadingPanel image could be outside the viewport if there are too many rows.

    So I want to prevent that the TreeList grows bigger than the page. I know I can set AllowScrolling to true, but this seems to work only for fixed heights, not relative ones.
    Could you please tell me how I can prevent the TreeList from growing larger than the viewport?

    Thanks!
  2. Tsvetina
    Admin
    Tsvetina avatar
    1873 posts

    Posted 09 Mar 2012 Link to this post

    Hello,

    I am not sure what exactly the requirement you have is - you do not want the treelist to have a fixed height but you want it to not get bigger than a given size? An option you have is to enable scrolling, then dynamically calculate the available space in the container and set it as height of the treelist control.

    Regards,
    Tsvetina
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top