ContextMenusEnabled Function
Enables report-specific context menus.
Declaration
export const ContextMenusEnabled: DevExpress.Analytics.Internal.IGlobalSubscribableValue<boolean>
Parameters
Name | Type | Description |
---|---|---|
newVal | boolean |
|
Returns
Type |
---|
boolean |
Remarks
The property’s default value is true
. Right-click a report element on the Design Surface, Report Explorer, or Field List to open the context menu:
Set the property to false
to use a browser context menu on a right-click:
<script>
function onBeforeRender(s, e) {
DevExpress.Reporting.Designer.Settings.ContextMenusEnabled(false);
}
</script>
@{
var designerRender = Html.DevExpress().ReportDesigner("reportDesigner")
.Height("100%")
.ClientSideEvents(configure => configure.BeforeRender("onBeforeRender"))
.Bind(Model);
@designerRender.RenderHtml()
}