TreeColumns Constructor

Syntax

PP.Ui.TreeColumns (Owner: PP.Ui.TreeList);

Parameters

Owner. Parent TreeList component.

Description

The TreeColumns constructor creates an instance of the TreeColumns class.

Example

To execute this example, create a TreeList component and add a column to the component.

var treeList = new PP.Ui.TreeList(

{

  ParentNode: document.getElementById("treelist"),

  Width: 300,

  Height: 100

});

var columns = new PP.Ui.TreeColumns(treeList);

columns.add(new PP.Ui.TreeColumn(

{

  Caption: "Country",

  Width: 100,

  MinWidth: 50,

  Visible: true

}));

treeList.setColumns(columns);

Executing of the example creates the TreeList component that includes a column named Country.

See also:

TreeColumns