After trying for hours to accomplish something that in theory should be a simple task, i've decided to turn to the forums for help!
I have a tree view (with checkboxes) with ONE parent node, and multiple child nodes.
I also have an asp:OptionButtonList, with three options: Full, Partial, and None.
If a user clicks "Full", the Parent node and child nodes should be checked.
If a user clicks "Partial", only the Parent node should be checked...no child nodes.
And, obviously, if a user clicks "None", no nodes should be checked.
I can get the Full and None options to work...but not the partial.
Can anyone help?
So far i'm doing this:
obviously this isn't going to accomplish what I want for the "Partial" option, but i've tried what seems like a billion different things, and I can't seem to just check the Parent Node...
Thanks in advance!
V
I have a tree view (with checkboxes) with ONE parent node, and multiple child nodes.
I also have an asp:OptionButtonList, with three options: Full, Partial, and None.
If a user clicks "Full", the Parent node and child nodes should be checked.
If a user clicks "Partial", only the Parent node should be checked...no child nodes.
And, obviously, if a user clicks "None", no nodes should be checked.
I can get the Full and None options to work...but not the partial.
Can anyone help?
So far i'm doing this:
switch (rbl.SelectedValue) |
{ |
case "FullToHMHS": |
radTreeView.CheckAllNodes(); |
return; |
case "FullToOther": |
isChecked = false; |
break; |
case "Partial": |
isChecked = false; |
break; |
default: |
break; |
} |
foreach (RadTreeNode node in radTreeView.Nodes) |
{ |
node.Checked = isChecked; |
} |
obviously this isn't going to accomplish what I want for the "Partial" option, but i've tried what seems like a billion different things, and I can't seem to just check the Parent Node...
Thanks in advance!
V