Null parent node on custom tree node after populate on demand

Discussion in 'ASP .Net Web Controls' started by John Bankhead, Dec 4, 2006.

  1. 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);
    }
    --
    John Bankhead
    John Bankhead, Dec 4, 2006
    #1
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Replies:
    0
    Views:
    1,412
  2. Alex D.

    about treeview populate on demand

    Alex D., Jun 1, 2006, in forum: ASP .Net
    Replies:
    1
    Views:
    3,567
    sean.archer
    Dec 8, 2007
  3. Stub

    B tree, B+ tree and B* tree

    Stub, Nov 12, 2003, in forum: C Programming
    Replies:
    3
    Views:
    10,094
  4. Peter Mueller
    Replies:
    6
    Views:
    4,532
    Stefan Ram
    Jan 13, 2008
  5. Enjoy Life
    Replies:
    2
    Views:
    259
    Roland Hall
    Feb 23, 2005
Loading...

Share This Page