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
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