Client Side Set Height for TreeView

2 posts, 0 answers
  1. RJ
    RJ avatar
    384 posts
    Member since:
    Oct 2006

    Posted 01 Aug 2013 Link to this post

    Im creating dynamic height for my treeview based on clients resolution but I cant seem to find any documentation on how to set height on client side. set_height(); its not working when I used it. I also did set the height to 100% so it will just follow its container size but its not working also. Same problem with RadMultiPage, I cant set its height as well and it does not follow its container size.  Any code that I can use?

    Thanks in advance,
  2. Boyan Dimitrov
    Boyan Dimitrov avatar
    1728 posts

    Posted 06 Aug 2013 Link to this post


    An easy and convenient way of achieving such functionality would be to get the container element associated with the RadTreeView client-side object by simply using the .get_element() method. That way you are able to set the height value of that DOM element by simply setting .style.height = "200px" in order to set its height value to 200px.

    Boyan Dimitrov
    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 the blog feed now.
  3. DevCraft R3 2016 release webinar banner
Back to Top