Hello,
i use the WebDataTree with a WebHierarchicalDatasource and CheckBoxMode 'BiState'. But i don't want the checkboxes on the parent nodes (only the leafs in the tree are 'checkable'). Is there any simple way to change the default behavior (may be a flag or a property 'no_parent_checkboxes') ?
I actually just figured it out. Sorry, no need to reply.
This was very helpful for me, although I need to hide all child checkboxes and show only the root node checkboxes. I am not well versed in javascript and tried to play around with it with no luck. Can you point me in the right direction? Thanks! Dale
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
Hi,
I have tried to get this to work in vb.net and no luck yet. Is this for a WebDataTree? I do not see some of the functions for it like "node._get_checkBox().get_element();" . Do you have a vb example? Thanks.
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,