Back to Devexpress

IPropertyGridSettings Interface

xtrareports-js-devexpress-dot-reporting-dot-designer-dot-settings.md

latest4.1 KB
Original Source

IPropertyGridSettings Interface

An object that contains properties to customize the Properties Panel.

Declaration

ts
export interface IPropertyGridSettings

Remarks

The IPropertyGridSettings object is used to set the PropertyGrid property value.

Properties

QuickActionsVisible Property

Specifies whether Quick Actions are visible in the Properties Panel.

Declaration

ts
QuickActionsVisible: DevExpress.Analytics.Internal.IGlobalSubscribableValue<boolean>

Property Value

TypeDescription
IGlobalSubscribableValue<boolean>

true to show Quick Actions in the Properties Panel; otherwise,false

|

Remarks

The default property’s value is false. Quick Actions are not visible in the Properties Panel.

You can access an element’s actions in its context menu. To do this, right-click an element on the Design Surface, Report Explorer, or Field List:

To show Quick Actions in the Properties Panel, set the property to true:

cshtml
<script>
    function onBeforeRender(s, e) {
        DevExpress.Reporting.Designer.Settings.PropertyGrid.QuickActionsVisible(true);
    }
</script>

@{
    var designerRender = Html.DevExpress().ReportDesigner("reportDesigner")
        .Height("100%")
        .ClientSideEvents(configure => configure.BeforeRender("onBeforeRender"))
        .Bind(Model);
    @designerRender.RenderHtml()
}

TaskGroupVisible Property

Specifies whether the Task group is visible in the Properties Panel.

Declaration

ts
TaskGroupVisible: DevExpress.Analytics.Internal.IGlobalSubscribableValue<boolean>

Property Value

TypeDescription
IGlobalSubscribableValue<boolean>

true to show the Task group in the Properties Panel; otherwise,false.

|

Remarks

The default property’s value is true. The Task group is visible in the Properties Panel for the selected report element:

The properties from the Task group are duplicated in an element’s smart tag panel (except for complex properties).

Set the property to false to hide the Task group from the Properties Panel:

cshtml
<script>
    function onBeforeRender(s, e) {
        DevExpress.Reporting.Designer.Settings.PropertyGrid.TaskGroupVisible(false);
    }
</script>

@{
    var designerRender = Html.DevExpress().ReportDesigner("reportDesigner")
        .Height("100%")
        .ClientSideEvents(configure => configure.BeforeRender("onBeforeRender"))
        .Bind(Model);
    @designerRender.RenderHtml()
}