|
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
|
|
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
|
|
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
|
|
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!
|
|