Skip to main content
You are viewing help content for a version that is no longer maintained/updated.
All docs
V17.2
  • DashboardPanelExtension.allowSwitchToDesigner Property

    Gets or sets whether you can switch into the designer mode.

    Namespace: DevExpress.Dashboard

    Assembly: DevExpress.Dashboard.v17.2.Web.Scripts.dll

    Declaration

    public KnockoutObservableBoolean allowSwitchToDesigner { get; set; }

    Property Value

    Type Description
    DevExpress.Web.Scripts.KnockoutObservableBoolean

    true, to display the Edit in Designer button on the dashboard panel; otherwise, false.

    Remarks

    Use this property to control the visibility of the Edit in Designer button.

    function onBeforeRender(sender, args) {
        var dashboardControl = sender.getDashboardControl();
        panel = dashboardControl.findExtension("dashboard-panel");
        panel.allowSwitchToDesigner(true);
    }
    
    See Also