Hi,
Since one of the trees was generating too much ViewState I decided to disable it and work around it using JavaScript. I need to be able to keep track of which nodes are selected. As soon as a node is selected I notify the server via AJAX.
Here's my problem:
1) If I use OnNodeClicked, the event fires only for the first click. It does not fire for subsequent selections (i.e. when I hold down Ctrl to select other nodes).
2) If I use OnNodeClicking and call get_selectedNodes() I only get back the old nodes and not the currently selected node. I assume because the event fires before the node is actually marked as selected.
So, how can I work around this?
Thanks,
Peter.
Since one of the trees was generating too much ViewState I decided to disable it and work around it using JavaScript. I need to be able to keep track of which nodes are selected. As soon as a node is selected I notify the server via AJAX.
Here's my problem:
1) If I use OnNodeClicked, the event fires only for the first click. It does not fire for subsequent selections (i.e. when I hold down Ctrl to select other nodes).
2) If I use OnNodeClicking and call get_selectedNodes() I only get back the old nodes and not the currently selected node. I assume because the event fires before the node is actually marked as selected.
So, how can I work around this?
Thanks,
Peter.