A newer version of this page is available. Switch to the current version.

TreeViewSettings.SyncSelectionMode Property

Gets or sets whether the node whose navigation location points to the currently browsed web page, is automatically selected.

Namespace: DevExpress.Web.Mvc

Assembly: DevExpress.Web.Mvc5.v18.2.dll

Declaration

public SyncSelectionMode SyncSelectionMode { get; set; }
Public Property SyncSelectionMode As SyncSelectionMode

Property Value

Type Description
SyncSelectionMode

A SyncSelectionMode enumeration value that specifies whether automatic synchronization of node selection with the path of the currently browsed page is enabled.

Remarks

TreeView supports automatic synchronization of node selection with the path of the currently browsed page. You can choose the synchronization mode by specifying the SyncSelectionMode property value.

The table below lists the available property value with its description:

 

Value Description
CurrentPath The node, whose TreeViewNode.NavigateUrl property's value points to the URL of the currently browsed page, is displayed selected. In this case, the query string appended to the URL is ignored.
CurrentPathAndQuery The node is automatically selected if its TreeViewNode.NavigateUrl property's value matches the URL and query string of the page which is currently being browsed.
None Automatic selection synchronization is disabled.
NOTE

The SyncSelectionMode property affects the TreeView extension behavior in virtual mode. To learn more, see the Virtual Mode topic.

See Also