dashboard-117172-web-dashboard-create-dashboards-on-the-web-dashboard-item-settings-dashboard-item-group.md
Like the Tab Container, the Dashboard Item Group (the GroupItem class) allows you to combine dashboard items within a dashboard. The dashboard item group serves two main purposes:
For example, you can combine related filter elements and data visualization dashboard items into a group.
To create a new group, use the Group button (the icon) in the Toolbox.
You can combine dashboard items into a group in several ways.
Note
A dashboard item group cannot be added to another group.
The dashboard item group provides the capability to manage interaction between dashboard items within and outside the group.
The image below shows a group’s default interactivity settings:
The Master Filter button controls whether the current group allows you to filter dashboard items outside the group using master filter items contained within the group. By default, this option is disabled: master filter items in the group can filter only dashboard items from this group.
The Ignore Master Filters button allows you to isolate dashboard items contained within the group from external master filter items. By default, this option is enabled: external master filter items cannot filter the dashboard items contained within the group.
To access interactivity settings for the dashboard item group in code, use the GroupItem.interactivityOptions property. This property returns the DashboardItemGroupInteractivityOptions object that exposes the following members:
|
Property
|
Description
| | --- | --- | |
DashboardItemGroupInteractivityOptions.IsMasterFilter
|
Gets or sets whether external dashboard items can be filtered using master filter items contained in the current DashboardItemGroup / TabContainerDashboardItem.
| |
FilterableDashboardItemInteractivityOptions.IgnoreMasterFilters
|
Gets or sets whether the current dashboard item ignores filtering applied by master filters.
|
Follow the steps below to create a tab container in code:
To add dashboard items to the group, assign the group’s componentName to the dashboard item’s parentContainer property.
The following code sample shows how to add an empty group:
var groupItem1 = new DevExpress.Dashboard.Model.GroupItem();
dashboardControl.dashboard().groups.push(groupItem1);
dashboardControl.dashboard().rebuildLayout();