Checkboxes in TreeView control (ASP.NET 2.0)

P

placek

Hi all.

I have some XMLle which looks like this:
<root name="Map">
<country name="Poland">
<city name="Gdansk"
<place name="Plac">
</place>
</city>
<city name="Krakow"
<place name="Starowka"
</place>
<place name="Wawel"
</place>
</city>
</country>
<country name="England"
<city name="Liverpool"
<place name="Some place"
</place>
</city>
<city name="London"
<place name="Another place"
</place>
<place name="Thames"
</place>
</city>
</country>
</root>

I bind this XML file to my TreeView control. In addition each node has
a checkbox next to it.
What I want to do is to check/uncheck all checkboxes from child nodes,
when checkbox in parent node was checked/unchecked e.g. I check
checkbox next to node England and I want checkboxes from nodes:
Liverpool, Some place, London, Another place and Thames to be checked
as well.

Is there some simple solution to my problem?

Thanks in advance,
misiek.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,982
Messages
2,570,190
Members
46,736
Latest member
zacharyharris

Latest Threads

Top