All docs
V21.1
21.2 (EAP/Beta)
21.1
20.2
The page you are viewing does not exist in version 20.2. This link will take you to the root page.
20.1
The page you are viewing does not exist in version 20.1. This link will take you to the root page.
19.2
The page you are viewing does not exist in version 19.2. This link will take you to the root page.
19.1
The page you are viewing does not exist in version 19.1. This link will take you to the root page.
18.2
The page you are viewing does not exist in version 18.2. This link will take you to the root page.
18.1
The page you are viewing does not exist in version 18.1. This link will take you to the root page.
17.2
The page you are viewing does not exist in version 17.2. This link will take you to the root page.

DefaultGroupIntervalAttribute Class

Specifies the default group interval for data items.

Namespace: DevExpress.DashboardCommon

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

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