DashboardBuilder.Name(String) Method
Specifies the dashboard control’s name.
Namespace: DevExpress.DashboardAspNetCore
Assembly: DevExpress.Dashboard.v24.2.AspNetCore.dll
Declaration
Parameters
Name | Type | Description |
---|---|---|
name | String | A String object that is the dashboard control’s name. |
Returns
Type | Description |
---|---|
DashboardBuilder | A reference to this instance after the operation has completed. |
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 thediv
element in which the dashboard control is displayed.
To set the name, use one of the methods below:
- Pass the name to the DashboardBuilder(IHtmlHelper, String) constructor.
- Use the
Name
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