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

Client Side Set Height for TreeView

1 Answer 236 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
RJ
Top achievements
Rank 1
RJ asked on 01 Aug 2013, 08:19 PM
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,
RJ

1 Answer, 1 is accepted

Sort by
0
Boyan Dimitrov
Telerik team
answered on 06 Aug 2013, 01:45 PM
Hello,

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.


Regards,
Boyan Dimitrov
Telerik
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.
Tags
TreeView
Asked by
RJ
Top achievements
Rank 1
Answers by
Boyan Dimitrov
Telerik team
Share this question
or