J
jamie.gunn
ASP.NET 2.0 TreeView
I have bound to my tree using the XMLDataSource both using and not
using the XPath attribute.
I am having trouble getting the TreeNodeExpanded event to work
correctly.
I have an event handler that prints out a message upon firing and I get
the message as I expect.
However, the node that I have selected to expand does not expand, it
seems as if just a post-back happens.
I then tried the method Expand() and ExpandAll() within the handler and
the node still does not expand.
I then stuck a little if statement in there to test whether the page
thought the node expanded.
if(e.Node.Expanded == true)
Response.Write(e.Node.Test + " has expanded");
The result is a "n has expanded" at the top of the display but the node
still will not expand.
Does anyone else have some experience with this?
Thanks,
Jamie
I have bound to my tree using the XMLDataSource both using and not
using the XPath attribute.
I am having trouble getting the TreeNodeExpanded event to work
correctly.
I have an event handler that prints out a message upon firing and I get
the message as I expect.
However, the node that I have selected to expand does not expand, it
seems as if just a post-back happens.
I then tried the method Expand() and ExpandAll() within the handler and
the node still does not expand.
I then stuck a little if statement in there to test whether the page
thought the node expanded.
if(e.Node.Expanded == true)
Response.Write(e.Node.Test + " has expanded");
The result is a "n has expanded" at the top of the display but the node
still will not expand.
Does anyone else have some experience with this?
Thanks,
Jamie