Skip to end of metadata
Go to start of metadata

Path in WebTreeView.NET® 1.0 can be defined as a line which connects a node from the root node to the node itself. WebTreeView.NET has three built-in powerful feature related to path such as listed in the following:

  • Find node by path
    WebTreeView.NET has a built-in FindNodeByPath() method which allows you to find a node by the given path. This means that you can perform any action you desired to the node just by providing the path of a node.

    JavaScript


    When executed, the code above will select a node based on the path typed in the textbox. Please refer to our WebTreeView.NET® 1.0 Sample. The following sample scenario can be done easily by using our WebTreeView.NET. Please refer to the java script below on how to get the selected node's path.

    JavaScript
  • Identify a node as a unique node
    Path is unique. Every node has its own unique path. This is what differ a node from the others. There is certain scenario that two nodes have the same name. This is possible if both nodes are on the different level or when two nodes are located in two different parents. Path is an important feature when it comes to this kind of scenario.

    The sample below clearly demonstrating this feature. There are two "My Folder" nodes, but both have different path.
  • Show the hierarchy of a node
    A tree view is a collection of nodes which present a hierarchical data presentation. This node can have items or child nodes and the child nodes can also have child nodes. This is what we call the hierarchy of a node. A node always has a parent node. If it is a single level node, then the single node is the parent node.

    WebTreeView.NET incorporates powerful built-in API which can be used to get the hierarchy of a node. This can be achieved by using GetParentNode(). Please refer to the sample below.

    JavaScript

    When you select a node, it will show you the node information and its parent node name.