L
l.holmes
Hi
I have a asp.net 2.0 treeview control which I populate nodes using the new
client call back (populatenodeondemand = true).
This works fine and my _TreeNodePopulate event handler handles the event
fired when a node is expanded and populates the child nodes.
However, I now need to use the treeview in a slightly different way. When
expanding a node I want my existing code to populate child nodes on demand.
But when a node is selected I want to call some other server side code.
It seems that my _TreeNodePopulate event handler is called even when I
select a node by clicking on the node text. Also the e.Node.Value does not
refer to the node I select but the parent node in the treeview!
I cannot seem to find a way to determine if the node has been expanded or
selected in order to call the correct code.
I have tried setting the SelectAction to various values and I also have
tried checking the e.node.Selected property but it always returns false even
when I have selected a node.
Please can someone explain how I can determine if the node refered to in the
event has been expanded ot selected.
Thanks
Lewis Holmes
eNate
I have a asp.net 2.0 treeview control which I populate nodes using the new
client call back (populatenodeondemand = true).
This works fine and my _TreeNodePopulate event handler handles the event
fired when a node is expanded and populates the child nodes.
However, I now need to use the treeview in a slightly different way. When
expanding a node I want my existing code to populate child nodes on demand.
But when a node is selected I want to call some other server side code.
It seems that my _TreeNodePopulate event handler is called even when I
select a node by clicking on the node text. Also the e.Node.Value does not
refer to the node I select but the parent node in the treeview!
I cannot seem to find a way to determine if the node has been expanded or
selected in order to call the correct code.
I have tried setting the SelectAction to various values and I also have
tried checking the e.node.Selected property but it always returns false even
when I have selected a node.
Please can someone explain how I can determine if the node refered to in the
event has been expanded ot selected.
Thanks
Lewis Holmes
eNate