0
kicks
ASP.NET TreeView and Checkboxes
Although the TreeView control is a very powerful one, there are some pitfalls that you can run into when using it. One of the most popular problem is using checkboxes in TreeView. Despite the fact that you can enable checkboxes by setting ShowCheckBoxes="All" you still have to write a lot of JavaScript code to make it work properly. The problems are:
* When you check a parent or a branch node the child nodes don't get checked
* TreeView doesn't generate <label> tags around the nodes text, so when user click on the text next to the checkbox, the latter don't get checked
My solution written with JavaScript and with the help of ASP.NET AJAX library (so, don't forget to put a ScriptMana