I have a Treeview in a my Asp.net page, it works fine when the page has a background color, but when I set a background-image (which is defined in the <body> tag) on the page, a terrible thing happened, the Treeview no longer seems to be transparent, and Insted it is shown as a white box.
I have tried Treeview. styles. add () and added background colors, this seems to work, but it only allows me to change the color to something like red or blue, it doesnt allow transparent as an option. then I hacked into Treeview. HTC (if you installed the Microsoft Internet Explorer webcontrols for ASP. net, you can find it in the "wwwroot/webctrl_client/defaults 0" folder), and get the idea that it can't be transparent. treeview. HTC is using a viewlink, which is actually a seperate document. I have changed the Treeview. HTC so that Treeview support transparent background, here is the code:
Function Buildtreefromroot ()
{
Bodynode. style. Direction = Element. currentstyle. direction;
// This line is added for supportting transparent background
Bodynode. style. Background = " Transparent " ;
VaR Head = Element.doc ument. createelement ( " Head " );
}
As you can see, I just add a line code in the "buildtreefromroot" function, but it works
Hope this helps