admin
-
12/26/2006 2:04:30 PM
Re: get documentid with NodeParentID
Hello,
you may need to use a code like this then:
TreeProvider treeP = (TreeProvider) tree; TreeNode currNode = (TreeNode)treeNodeObj; int x = treeP.SelectSingleNode(currNode.NodeParentID).DocumentID;
Please note that you will need to add a reference to the CMS.TreeEngine library and put
using CMS.TreeEngine;
at the beginning of the CustomTreeNodeHandler.cs code.
Best Regards,
|