ASPxMenuBase.SyncSelectionMode Property
Gets or sets whether the menu item, whose navigation location points to the currently browsed web page, is automatically selected.
Namespace: DevExpress.Web
Assembly: DevExpress.Web.v24.2.dll
NuGet Package: DevExpress.Web
#Declaration
[DefaultValue(SyncSelectionMode.CurrentPathAndQuery)]
public SyncSelectionMode SyncSelectionMode { get; set; }
#Property Value
Type | Default | Description |
---|---|---|
Sync |
Current |
A Sync |
Available values:
Name | Description |
---|---|
None | Automatic selection synchronization is disabled. |
Current |
A web control’s item, whose Navigate |
Current |
A web control’s item, whose Navigate |
#Remarks
If the SyncSelectionMode property is set to ‘CurrentPath’, the menu item, whose MenuItem.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 menu item is automatically selected if its MenuItem.NavigateUrl property’s value matches the URL and query string of the page which is currently being browsed.
To disable automatic synchronization, set the SyncSelectionMode property to ‘None’.