Object Model

Settings
Description

This sample shows how to dynamically add and remove nodes from the C1TreeView from client side code.

The following client-side methods are used in this sample.

  • add
  • remove

The add method has the following parameters.

  • node - The node parameter specifies the markup/jquery object/tree node options that will be added to the C1TreeView or C1TreeViewNode.
  • index - The index parameter specifies the index of its siblings. If index is null, then the node will be added to the end.

The remove method has the following parameters.

  • index - The index parameter specifies the index of the child nodes of the C1TreeView or C1TreeViewNode.

For example:

$("#treeId").c1treeviewnode("add", 'Node text 1');

Documentation