Hi,
I'm using the WebDataTree and having a problem with the way it is initially rendering. What happens after a pageload and the end user gets the response, the main wrapper/div of the control, has a default style that includes visibility=visible.. I cannot have this since it will be hidden on page load (Even if the tree control is inside a hidden div, it will still be visible)
I have not found an easy way where I can take of that visibility=visible.. I don't see it in the defaultstyles css files, and when I say webdatatree.style["visibility"] = ""; or webdatatree.style["visibility"] = "hidden"; it still returns visibility=true..
Is there a way I can solve this without useing the sourcecode or doing something onPreRender ?
Please help
im still unable to find a way... I tried working with the Render event and noticed after a while that there is a javascript function inside a resource file called by the client somewhere on clientside pageload or something...
///<summary>
/// The WebDataTree class is used to represent the object model of a the WebDataTree ASP.Net Server control.
///</summary>
$IG.WebDataTree =
function(element){$IG.WebDataTree.initializeBase(this, [element]);element.style.visibility = "visible";this._bindings = this._getPropertyBindings();
why????????? how can this be stopped
you can attach to the client side Initialize event. Then you can use the sender which represents the WebDataTree control object and say: sender.get_element().style.visibility = "";
sender.get_element() will return the main DIV element of the control.
Hope this helps.
Thanks,
Lubomir