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.v24.1.dll
NuGet Package: DevExpress.Web.Mvc5
Declaration
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. |
Available values:
Name | Description |
---|---|
None | Automatic selection synchronization is disabled. |
CurrentPathAndQuery | A web control’s item, whose NavigateUrl property’s value matches the URL and query string of the currently browsed page, is displayed selected. |
CurrentPath | A web control’s item, whose NavigateUrl property’s value points to the URL of the currently browsed page, is displayed selected. The query string appended to the URL is ignored. |
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.