I use a TreeView where I instead of the "LoadOnDemand" property programmatically add Loading... sub-nodes. After fetching the requested data I populate my tree view by clearing the parent node's child nodes and then add all my received data.
My problem is that if no data has been received, the TreeView still displays my parent node as expandable.
I currently use 2007 Q3, is this a problem that has been addressed?
My problem is that if no data has been received, the TreeView still displays my parent node as expandable.
public void SetTreeNodes(Collection<NodeInformation> nodeInformation, string parentKey) |
{ |
if (m_TreeNodes.ContainsKey(parentKey)) |
{ |
RadTreeNode parentNode = m_TreeNodes[parentKey]; |
foreach( RadTreeNode node in parentNode.Nodes) |
{ |
RemoveTreeNodeAndChildrenFromDictionary(node); |
} |
parentNode.Nodes.Clear(); |
foreach (NodeInformation information in nodeInformation) |
{ |
AddTreeNode(information, parentKey); |
} |
} |
} |
I currently use 2007 Q3, is this a problem that has been addressed?