Wednesday, May 23, 2007
Monday, May 7, 2007
Tree view recursion method
private void AddNodetoComponentTree(UltraTreeNode node)
{
node.Expanded = true;
List
childNodes = GetChildNodes(Convert.ToInt32(node.Key));
foreach (ComponentData childNode in childNodes)
{
AddNodetoComponentTree(node.Nodes.Add(childNode.ComponentId.ToString(), childNode.Name));
}
}
private List
{
List
foreach (ComponentData childNode in componentsData)
{
if (childNode.ParentId == componentId && childNode.ComponentId != componentId)
{
childNodes.Add(childNode);
}
}
return childNodes;
}
Subscribe to:
Posts (Atom)