|
Have you ever wanted to check all of the descendents of a node by clicking on the
parent node’s check box? Well if you did, you probably could not do that using the
Microsoft TreeView control because it does not expose any methods to programming
the checkbox on the client-side. It only allows server side events such as the TreeNodeCheckChanged.
I present here a simple demo of creating a customized TreeView that implements 2
Javascript features:
- change the descendents checkboxes when the parent’s checkbox status changes,
- expand/collapse the tree nodes (which is already in the MS TreeView control)
I use a repeater that has 3 levels as a demo. Notice this is not a commercial product.
It is only a proof of technical concepts offered freely. You can of course customize
it with further complexity to achieve several other features.
|