Skip to main content
You are viewing help content for a version that is no longer maintained/updated.
All docs
V17.2
  • ToolboxExtension.removeMenuItem(String) Method

    Removes the specified dashboard item from the dashboard menu.

    Namespace: DevExpress.Dashboard

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

    Declaration

    public void removeMenuItem(
        string menuItemId
    )

    Parameters

    Name Type Description
    menuItemId String

    A string value that is a unique dashboard item name.

    Remarks

    The code sample below demonstrates how to obtain the ToolboxExtension and remove the New… command from the dashboard menu using the removeMenuItem method:

    function onBeforeRender(sender) {
        var dashboardControl = sender.GetDashboardControl();
        var toolboxExtension = dashboardControl.findExtension("toolbox");
        toolboxExtension.removeMenuItem("create-dashboard");
    }
    
    See Also