Home - Forums-.NET - FlyTreeView (ASP.NET) - Set Height parameter dynamically?

FlyTreeView (ASP.NET)

Technical support and KB related to the FlyTreeView control

This forum related to following products: FlyTreeView for ASP.NET

Set Height parameter dynamically?
Link Posted: 02-Dec-2008 11:11
When putting a flytreeview on a web page like so:

              FadeEffect="True" CanBeSelected="false"
        OnPopulateNodes="flyTree_PopulateNodes"
        Width="100%" Height="250px" />

Is there any way to change the height dynamically in your Page_Load event?
I'm wrapping it inside a user control but I can't figure out how to get to the height property.

If I do this:
            divTree.Style.Add("height", strDropdownHeight);
the treeview gets confused and only the background of the treeview is this size...the rest of the treeview draws over everything else on a transparent background and ignores the height.
Link Posted: 02-Dec-2008 17:39
What about flyTree.Height = ... property?
Link Posted: 03-Dec-2008 03:46
I was setting the height on the div (I put the tree in a hidden div to simulate a "dropdown list").  That was embarrassing  

I did look in the online help before posting and thought it was weird the treeview class didn't have Height listed though.

Thanks, Evgeny.