Skip to main content
Tab

ASPxSiteMapControlBase.FlowLayoutLevel Property

Gets or sets a value that specifies the hierarchy level whose nodes are displayed in a flow layout.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v24.1.dll

NuGet Package: DevExpress.Web

Declaration

[DefaultValue(-1)]
public int FlowLayoutLevel { get; set; }

Property Value

Type Default Description
Int32 -1

An integer value specifying the required hierarchy level of nodes.

Remarks

Use the FlowLayoutLevel property to specify the hierarchy level of nodes which should be displayed using a flow layout.

When a flow layout is applied to nodes of the specified nesting level, they are displayed in a linear flow and represent items which are positioned one immediately after another in a line. To separate items in such a linear flow from each other, a string separator specified by the ASPxSiteMapControl.FlowLayoutItemSeparator property is used. The maximum number of items displayed in a linear flow is specified via the ASPxSiteMapControl.FlowLayoutMaximumDisplayItems property. When the width of a column doesn’t allow accommodating the specified number of items in one line, the linear flow of nodes is automatically divided into several lines. The height of lines can be controlled by using the ASPxSiteMapControlBase.FlowLayoutTextLineHeight property.

Note that if a flow layout is applied to a specific nesting level, the nodes located at deeper nesting levels (that are levels whose indexes are greater than the value of the FlowLayoutLevel property) are not rendered within the site map control.

The following image displays a site map control before and after changing its FlowLayoutLevel property from -1 to 1 (a flow layout is applied to the nodes of the first nesting level - the level whose index is equal to 1).

SiteMapControl_FlowLayoutLevel.png

See Also