Is there any way for me to pull data from lower level nodes. LIke I have a root node populating the parent nodes nd that populates the child nodes.. and so on and so forth. But im making a folder system and if a user added a new folder i have no way without hardcoding it to do what i need it too.. and i dont want to limit the folder numbers.. heres some code to show you waht im attempting. I want to do the foreach loops when the lower level nodes contain nodes.. anyway to do this not hardcoded
ome code to show you waht im attempting
foreach
(RadTreeNode node
in
rtvFiles.Nodes)
{
foreach
(RadTreeNode parentNode
in
node.Nodes)
{
foreach
(RadTreeNode childNode
in
parentNode.Nodes)
{
//if (parentNode.Text == "share")
//{
if
(childNode.Checked)
{
FilesCOL file = FilesDAL.SelectByName(childNode.Text,
int
.Parse(childNode.Attributes[
"FileID"
]));
c = file.FilePath;
b = childNode.Text;
d = file.FileID.ToString();
}
else
{
if
(childNode.Checkable==
false
)
foreach
(RadTreeNode babyNode
in
childNode.Nodes)
{
if
(babyNode.Checked)
{
FilesCOL file = FilesDAL.SelectByName(babyNode.Text,
int
.Parse(babyNode.Attributes[
"FileID"
]));
c = file.FilePath;
b = babyNode.Text;
d = file.FileID.ToString();
}
}
}