-
Notifications
You must be signed in to change notification settings - Fork 4
/
TreeListItemMetadata.cs
45 lines (41 loc) · 1.51 KB
/
TreeListItemMetadata.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
using DevExpress.DashboardCommon;
using System.ComponentModel;
namespace DevExpress.DashboardWin.CustomItemExtension
{
[
DisplayName("Tree List"),
CustomItemDescription("Create a Tree List dashboard item and insert it into the dashboard.\n\nThis hybrid item combines a Tree List and Grid. The Tree List uses the parent-child relationships to generate the hierarchical data structure."),
CustomItemImage("DevExpress.DashboardWin.CustomItemExtension.Images.TreeListItem.svg")
]
public class TreeListItemMetadata : CustomItemMetadata {
[
DisplayName("ID"),
EmptyDataItemPlaceholder("ID"),
SupportInteractivity
]
public Dimension ID {
get { return GetPropertyValue<Dimension>(); }
set { SetPropertyValue(value); }
}
[
DisplayName("Parent ID"),
EmptyDataItemPlaceholder("Parent ID"),
SupportInteractivity
]
public Dimension ParentID {
get { return GetPropertyValue<Dimension>(); }
set { SetPropertyValue(value); }
}
[
DisplayName("Dimensions"),
EmptyDataItemPlaceholder("Dimension"),
SupportInteractivity
]
public DimensionCollection Dimensions { get; } = new DimensionCollection();
[
DisplayName("Measures"),
EmptyDataItemPlaceholder("Measure")
]
public MeasureCollection Measures { get; } = new MeasureCollection();
}
}