Closed GoogleCodeExporter closed 9 years ago
Hi, This is by design to stop large numbers of nodes becoming visible at once.
I will
implement a property in the KmlTreeView that toggles a 'checkAllChildren'
behaviour
for parent nodes and default it to true. So there will be something like.
KmlTreeView.CheckAllChildNodes = true; //default
KmlTreeView.CheckAllChildNodes = false;
FYI you are getting a stackoverflow because the code you are using causes an
infinite
recursion. Setting the TreeNode.Checked property from within the AfterCheck
event
handler causes the event AfterCheck event to be fired, which checks the node
which
causes the AfterCheck event to be fired...Ad infinitum
You should test if TreeViewAction.Unknown before setting node.Checked. i.e.
foreach (TreeNode node in e.Node.Nodes)
{
if (e.Action != TreeViewAction.Unknown)
{
node.Checked = true;
}
}
Anyhow, I will post a build in the next half hour :) thanks again!
Original comment by fraser.c...@gmail.com
on 12 Oct 2009 at 5:47
...hmmm some kind of tri-state check box indication would be nice too...
Original comment by fraser.c...@gmail.com
on 12 Oct 2009 at 5:54
Ok its is in the latest commit...
Original comment by fraser.c...@gmail.com
on 12 Oct 2009 at 5:58
Original comment by fraser.c...@gmail.com
on 12 Oct 2009 at 6:08
You are the man! This is going to be really useful.
Thanks!
Original comment by gordon_m...@hotmail.com
on 12 Oct 2009 at 7:28
Original issue reported on code.google.com by
gordon_m...@hotmail.com
on 12 Oct 2009 at 3:19