Skip to main content
Tab

ASPxNavBar.SyncSelectionMode Property

Gets or sets whether the NavBar’s item, whose navigation location points to the currently browsed web page, is automatically selected.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v24.1.dll

NuGet Package: DevExpress.Web

Declaration

[DefaultValue(SyncSelectionMode.CurrentPathAndQuery)]
public SyncSelectionMode SyncSelectionMode { get; set; }

Property Value

Type Default Description
SyncSelectionMode CurrentPathAndQuery

A SyncSelectionMode enumeration value that specifies whether automatic synchronization of item 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

If the SyncSelectionMode property is set to ‘CurrentPath’, the navigation bar item, whose NavBarItem.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.

If the SyncSelectionMode property is set to ‘CurrentPathAndQuery’, the item is automatically selected if its NavBarItem.NavigateUrl property’s value matches the URL and query string of the page currently being browsed.

To disable automatic synchronization, set the SyncSelectionMode property to ‘None’.

See Also