DesignerToolbarOptionBuilder.OnPreparing(String) Method
In This Article
A handler for the event that occurs before the Designer Toolbar is created.
Namespace: DevExpress.DashboardAspNetCore
Assembly: DevExpress.Dashboard.v24.2.AspNetCore.dll
NuGet Package: DevExpress.AspNetCore.Dashboard
#Declaration
public DesignerToolbarOptionBuilder OnPreparing(
string onPreparing
)
#Parameters
Name | Type | Description |
---|---|---|
on |
String | A function that is executed before the Designer Toolbar is created. |
#Returns
Type | Description |
---|---|
Designer |
A reference to this instance after the operation has completed. |
#Remarks
The code sample below shows how to handle the preparing
event:
cshtml
@(Html.DevExpress().Dashboard("dashboardControl1")
.Width("100%")
.Height("100%")
.OnBeforeRender("onBeforeRender")
.Extensions(ext => {
ext.DesignerToolbar(options => {
options.OnPreparing("customizeDashboard");
});
})
)
See Also