Welcome Guest Search | Active Topics | Sign In | Register

TreeView Height Options
Luigi
Posted: Friday, June 24, 2011 3:55:57 AM
Rank: Newbie
Groups: Member

Joined: 3/22/2010
Posts: 4
How can I get the actual Height (client side) of the TreeView in javascript?
Thanks
eo_support
Posted: Friday, June 24, 2011 10:23:35 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,194
Hi,

You just get the root DOM element and then use offsetHeight to get the height.

Thanks
Luigi
Posted: Friday, June 24, 2011 11:43:50 AM
Rank: Newbie
Groups: Member

Joined: 3/22/2010
Posts: 4
Yes

I tried :
document.getElementById("TreeViewMyID").offsetHeight

and i get 0 if the Height property is not set in server side

Sorry I need more help

Thanks

Luigi
eo_support
Posted: Friday, June 24, 2011 4:15:10 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,194
Hi,

offsetHeight should be quite reliable. If you see it as 0, then it is really 0, which usually means it's not visible yet.

Thanks!


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.