Fog Creek Software
Discussion Board

Welcome! and rules

Joel on Software

ASP.NET Tree Control with Checkboxes

I need to create a dynamic (data coming from database) tree control that expands/collapses and has a checkbox at each node (in addition to text). Something like this:

- [ ] Tree Root
---- [ ] Node A
--------[ ] Node A 1
--------[ ] Node A 2
---- [ ] Node B

I can handle the CSS for expand/collapse, and I was going to use the checkboxList, but I cannot get it to render just the plain HTML for the checkboxList, it is always in a table.

Can someone point me in the right direction or suggest an alterative?


Thursday, September 30, 2004

nevermind, found it. Just set the following:


Then no extra HTML is rendered around the checkboxes

Thursday, September 30, 2004

*  Recent Topics

*  Fog Creek Home