Skip to main content
All docs
V23.2

EmptyDataItemPlaceholderAttribute Class

Specifies placeholder text for a pane where you can place a data item.

Namespace: DevExpress.DashboardCommon

Assembly: DevExpress.Dashboard.v23.2.Core.dll

NuGet Package: DevExpress.Dashboard.Core

Declaration

[AttributeUsage(AttributeTargets.Property)]
public class EmptyDataItemPlaceholderAttribute :
    Attribute

Remarks

You can apply EmptyDataItemPlaceholderAttribute to a data section when you create metadata for a custom dashboard item. The attribute specifies placeholder text for a pane where you can place a data item. For this, pass a string value as an argument to the EmptyDataItemPlaceholderAttribute constructor.

The following code snippet specifies names of empty placeholders in the Value and Arguments data sections:

using System.ComponentModel;
using DevExpress.DashboardCommon;

namespace CustomItemsSample {
  [DisplayName("Funnel"),
  CustomItemDescription("Funnel description"),
  CustomItemImage("CustomItemsSample.Images.Funnel.svg")]
  public class CustomFunnelMetadata : CustomItemMetadata{
     [DisplayName("Value"),
      EmptyDataItemPlaceholder("Value"),
      SupportColoring(DefaultColoringMode.Hue)]
      public Measure Value {
          get { return GetPropertyValue<Measure>(); }
          set { SetPropertyValue(value); }
      }
      [DisplayName("Arguments"),
      EmptyDataItemPlaceholder("Argument"),
      SupportColoring(DefaultColoringMode.Hue),
      SupportInteractivity]
      public DimensionCollection Arguments { get; } = new DimensionCollection();
  }
}

The “Argument” and “Value” names appear as placeholders in the Argument and Value data sections, respectively.

Funnel custom item binding panel

Inheritance

Object
Attribute
EmptyDataItemPlaceholderAttribute
See Also