Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Delete me 45 posts 66 karma points
    Jun 28, 2010 @ 09:04
    Delete me
    0

    Get nodeKey from ID

    Hi all

    I am trying to get the nodeKey of an node (ie. "'webfx-tree-object-35") from the nodeID (ie. "1611")

    Is this possible?

     

    Thanks,

    Mathias

  • Dirk De Grave 4541 posts 6021 karma points MVP 3x admin c-trib
    Jun 28, 2010 @ 09:10
    Dirk De Grave
    0

    Hi Mathias,

    Can you explain a bit more as to why you'd need the nodeKey of a node? I assume this is the tree "id" of the node, right?

     

    Looking forward to more info.

    Regards,

    /Dirk

  • Delete me 45 posts 66 karma points
    Jun 28, 2010 @ 09:37
    Delete me
    0

    Hi Dirk

    Yes, the tree id it is! I have an AfterSave Event handler wich sorts certain subnodes, and to get the sorting to show up in the backend, the Parent node must be refreshed. Therefore i use this code:

    ((BasePage)doc.HttpContext.CurrentHandler).ClientScript.RegisterClientScriptBlock(GetType(), Guid.NewGuid().ToString(), 
    "<script>parent.tree.webFXTreeHandler.all['webfx-tree-object-35'].reload();</script>");

    The javascript needs the nodeKey to work ('webfx-tree-object-35'), and all i have is the nodeID.

    I hope this makes sense.

    Thanks, Mathias

Please Sign in or register to post replies

Write your reply to:

Draft