WebApplication.EnableMultipleBrowserTabsSupport Property
Specifies whether or not support for multiple browser tabs is enabled.
Namespace: DevExpress.ExpressApp.Web
Assembly: DevExpress.ExpressApp.Web.v21.2.dll
NuGet Package: DevExpress.ExpressApp.Web
Declaration
Property Value
Type | Description |
---|---|
Boolean | true, if support for multiple browser tabs is enabled; otherwise, false. |
Remarks
When the EnableMultipleBrowserTabsSupport is set to true, each loaded web window has a unique identifier within the ASP.NET Web Forms session. By using these window identifiers, all requests are correctly routed on the server side. Additionally, navigation items are rendered as hyperlinks (with the “open link in new tab” option). Hyperlinks are generated only for navigation items corresponding to ChoiceActionItem objects whose ChoiceActionItem.Data property holds a ViewShortcut object pointing to a particular View to be opened. When a navigation item is processed without supplying a View shortcut is applied (e.g., using the ShowNavigationItemController.CustomShowNavigationItem event), no hyperlink is generated for this item.
The EnableMultipleBrowserTabsSupport default value is false in XAF sources, but it is changed to true in the WebApplication.cs (WebApplication.vb) code generated by the Solution Wizard:
public partial class MySolutionAspNetApplication : WebApplication {
//...
static MySolutionAspNetApplication() {
WebApplication.EnableMultipleBrowserTabsSupport = true;
// ...
}
}
You can use the same code to enable multiple browser tab support in projects created in older versions of XAF.
Related GitHub Examples
The following code snippets (auto-collected from DevExpress Examples) contain references to the EnableMultipleBrowserTabsSupport property.
Note
The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.