Skip to content

Replies

0
Patric
Patric answered on Oct 17, 2011 9:01 AM

Hello ???,

the code is for the WebDataTree; but it's client side JavaScript Code. May be there are some similar functions in vb.net, but i use c#; so i don't know and have no vb example.

Patric

0
Patric
Patric answered on Jan 11, 2010 1:24 PM

Hello David,

thank's for your fast answer and sory for my time delay to answer. Your code exactly solve my problem and work fine. From a performance view, i don't like to catch the Initialize-Event; but it seems to be the right place to change the display style.

Some questions to your code:

 Do i need the variable 'checkbox' ? It's never used.

Is the recursive code faster then an iterative version ( may be in a reverse fashion; i traverse the tree with no checkboxes, if the actual node got a childCount of 0, this is a leaf, so set the checkbox. If not go to the next node.)?

Is there a way to use Node-Templating (but how to trigger a node and a leaf)?

Again, thank's for your solution

regards,

Patric