treeview javascript:onclick not generated for all nodes

J

John Smith

I have the following problem:

an asp.net treeview for which an initial set of nodes are retrieved and
subsequently on expand the child nodes are retrieved once

for the initial set of nodes asp.net produces an 'javascriptnclick()' in
the anchor element of each of these nodes that allows getting the selected
node later, the onclick handler 'remembers' the selected node for later use
and is generated by asp.net (webresource.asd or something like that)

for the childnodes retrieved later it does not produce this snip

how can I make these childnodes have this snip as well without resorting to
filtering and patching the output towards the client?