Skip to main content
All docs
V22.1

DefaultGroupIntervalAttribute Class

Specifies the default group interval for data items.

Namespace: DevExpress.DashboardCommon

Assembly: DevExpress.Dashboard.v22.1.Core.dll

NuGet Packages: DevExpress.Dashboard.Core, DevExpress.Win.Dashboard.Design

Declaration

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

Remarks

Apply the DefaultGroupIntervalAttribute to a data section in metadata. The attribute allows you to set the default group interval for data items in the section.

To specify the date-time group interval, pass one of the DateTimeGroupInterval enumeration values as an argument to the DefaultGroupIntervalAttribute constructor.

The following code snippet sets the default Month-Year group interval for data items in the Arguments section:

using System.ComponentModel;
using DevExpress.DashboardCommon;

namespace CustomItemsSample {
  public class CustomFunnelMetadata : CustomItemMetadata {
    //...
    [DefaultGroupInterval(DateTimeGroupInterval.MonthYear)]
    public DimensionCollection Arguments { get; } = new DimensionCollection();
  }
}

When a user drops a data item in the Arguments section of the UI, the data item’s initial group interval is automatically set to Month-Year.

default date time interval

Inheritance

Object
Attribute
DefaultGroupIntervalAttribute
See Also