Skip to main content

DashboardBuilder(IHtmlHelper, String) Constructor

Initializes a new instance of the DashboardBuilder class with the specified control’s name.

Namespace: DevExpress.DashboardAspNetCore

Assembly: DevExpress.Dashboard.v24.1.AspNetCore.dll

NuGet Package: DevExpress.AspNetCore.Dashboard

Declaration

public DashboardBuilder(
    IHtmlHelper htmlHelper,
    string name
)

Parameters

Name Type Description
htmlHelper IHtmlHelper

An IHtmlHelper object that is an HTML helper.

name String

A String object that is the dashboard control’s name.

Remarks

The name affects the following characteristics:

  • The name of the dashboard control’s client instance. You can access the control on the client by this name.
  • The id value of the div element in which the dashboard control is displayed.

To set the name, use one of the methods below:

  • Pass the name to this constructor.
  • Use the Name(String) extension method.

If you set the name in both the method and in the constructor, the method’s value overrides the constructor’s value.

If you do not set the name in any of the above ways, you get an internal error.

See Also