Configuration

  Previous topic Next topic JavaScript is required for the print function Mail us feedback on this topic! Mail us feedback on this topic!  

The following properties of the CMSTreeView control can be set or used in the API:

 

Most of the common properties from:

 

CMS controls - common properties
CMS navigation - common properties

 

In addition, the following properties are available:

 

Property Name

Description

Sample Value

DisplayDocumentTypeImages

Indicates whether document type images should be used for menu items.

 

DynamicBehaviour

Indicates whether child nodes should be loaded dynamically and if populate on demand should be enabled.


EncodeMenuCaption

Indicates whether the menu caption should be HTML encoded.


ExpandAllOnStartup

Indicates whether all nodes in the tree should be expanded by default.


ExpandCurrentPath

Indicates whether all nodes along the path to the currently selected item should be expanded by default.


ExpandSubTree

Indicates whether the sub-tree under the currently selected item should be expanded by default.


FixBrokenLines

Indicates whether broken lines should be fixed.


HideRootNode

Indicates whether the root node is hidden.


HigLightSelectedItem

Indicates whether the currently selected item should be highlighted.

 

IgnoreDocumentMenuAction

Indicates whether the Menu actions document menu settings should be ignored. These can be set at CMS Desk -> Content -> ... select document ... -> Properties -> Menu -> Menu actions section.

 
This is necessary if you wish to use an onClick Javascript action defined by the OnClickAction property.

 

InactivateAllItemsInPath

Indicates whether all items in the path should be inactive.


InactivateSelectedItem

Indicates whether the currently selected item should be inactive.

 

InactiveNodeImage

If enabled, node images will not act as links.


InactiveRoot

Indicates whether the root node should be inactive.


NodeImageUrl

Gets or sets the image URL used for all nodes.


OnClickAction

Gets or sets the onClick Javascript action.


OrderBy

Gets or sets the ORDER BY clause of the SQL statement.

 

Please be aware that it is necessary for the root of the displayed tree (or sub-tree) to be first in the resulting order, otherwise all documents may not be displayed correctly. This can be ensured by having the value of this property start with the NodeLevel column, such as in the sample value.

"NodeLevel, NodeOrder"

RootImageUrl

Gets or sets the URL of the image used for the root node.


RootText

Gets or sets the text used for the root node.


 

As this control is inherited from the ASP.NET TreeView control, it also has all of its standard properties.

 

Page url: http://devnet.kentico.com/docs/5_5r2/controls/index.html?cmstreeview_configuration.htm