Hi Bob,
Please try the following C# code snippet to check all string based on condition.
C#:
foreach
(RadTreeNode node
in
raddroptreeCheckAll.EmbeddedTree.Nodes)
//accessing all root nodes of a tree
{
//you can check the condition
if
(node.Checked ==
false
? node.Checked=
true
: node.Checked=
false
)
//check the root node
if
(node.GetAllNodes().Count != 0)
{
foreach
(RadTreeNode subnode
in
node.GetAllNodes())
//accessing child nodes of each root node
{
if
(subnode.Checked ==
false
)
subnode.Checked =
true
;
}
}
}
Thanks,
Shinu.