Null parent node on custom tree node after populate on demand

J

John Bankhead

I have inherited from treeview to create an object that overrides CreateNode.
This custom treeview supports a custom tree node with four additional
attributes, a postrender override as well as a load and save view state.

The problem arose in the bottom level of the Treeview which is populated on
demand. While the custom values are in the node, the parent attribute is
equal to null. The node does indeed have a parent. Any ideas why this might
happen?

protected void tree2_TreeNodePopulate(object sender, TreeNodeEventArgs e)
{
DataAccessProvider dap = new DataAccessProvider(null);
FaultTreeNode node = (FaultTreeNode)(e.Node);
AddFMILevel(ref node, Convert.ToInt64(node.ItemID), NodeType.FMI, dap);
}
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,009
Latest member
GidgetGamb

Latest Threads

Top