millerthegorilla
asked on
treenodes not expanding when selectednodechanged event defined
Hi - I'm using a treeview control in a sharepoint webpart. It is populating ok and the nodes are expandable normally but when I add a TreeNodeExpanded event handler to the treeview, nodes after a depth of two stop expanding. Am I doing something wrong?
When I'm debugging, the treenodexpanded event handler executes regardless of whether the node expands or not.
When I'm debugging, the treenodexpanded event handler executes regardless of whether the node expands or not.
ASKER
I've found part of the problem. When I comment out the event handler I get javascript:Treeview_toggle node(... appearing in the status bar of ie when the expand/contract (+/-) sign is rolled over and everything works. When I uncomment the eventhandler and roll over the +/- sign I get javascript:doPostBack(.... ....,'\t0\ \root\\') where the dots are the control reference. Why does this happen?
ASKER CERTIFIED SOLUTION
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
ASKER
Open in new window