Back to Devexpress

DashboardBuilder.Name(String) Method

dashboard-devexpress-dot-dashboardaspnetcore-dot-dashboardbuilder-dot-name-x28-system-dot-string-x29.md

latest2.2 KB
Original Source

DashboardBuilder.Name(String) Method

Specifies the dashboard control’s name.

Namespace : DevExpress.DashboardAspNetCore

Assembly : DevExpress.Dashboard.v25.2.AspNetCore.dll

NuGet Package : DevExpress.AspNetCore.Dashboard

Declaration

csharp
public DashboardBuilder Name(
    string name
)
vb
Public Function Name(
    name As String
) As DashboardBuilder

Parameters

NameTypeDescription
nameString

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

|

Returns

TypeDescription
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 the div element in which the dashboard control is displayed.

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

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

DashboardBuilder Class

DashboardBuilder Members

DevExpress.DashboardAspNetCore Namespace