File tree Expand file tree Collapse file tree 3 files changed +14
-15
lines changed Expand file tree Collapse file tree 3 files changed +14
-15
lines changed Original file line number Diff line number Diff line change 16
16
</SqlDataSource >
17
17
</DataSources >
18
18
<Items >
19
- <Chart ComponentName =" chartDashboardItem1" Name =" Chart Country " ParentContainer =" dashboardTabPage2" DataSource =" DataSource1" DataMember =" SalesPerson" >
19
+ <Chart ComponentName =" chartDashboardItem1" Name =" Chart OrderDate - Month-Year " ParentContainer =" dashboardTabPage2" DataSource =" DataSource1" DataMember =" SalesPerson" >
20
20
<DataItems >
21
21
<Measure DataMember =" ExtendedPrice" DefaultId =" DataItem0" />
22
- <Dimension DataMember =" Country " DefaultId =" DataItem1" />
22
+ <Dimension DataMember =" OrderDate " DateTimeGroupInterval = " MonthYear " DefaultId =" DataItem1" />
23
23
<Dimension DataMember =" Country" DefaultId =" DataItem2" />
24
24
</DataItems >
25
25
<SeriesDimensions >
38
38
</Pane >
39
39
</Panes >
40
40
</Chart >
41
- <Chart ComponentName =" chartDashboardItem2" Name =" Chart CategoryName " ParentContainer =" dashboardTabPage1" DataSource =" DataSource1" DataMember =" SalesPerson" >
41
+ <Chart ComponentName =" chartDashboardItem2" Name =" Chart OrderData - Year " ParentContainer =" dashboardTabPage1" DataSource =" DataSource1" DataMember =" SalesPerson" >
42
42
<DataItems >
43
43
<Measure DataMember =" ExtendedPrice" DefaultId =" DataItem0" />
44
- <Dimension DataMember =" CategoryName " DefaultId =" DataItem1" />
44
+ <Dimension DataMember =" OrderDate " DefaultId =" DataItem1" />
45
45
<Dimension DataMember =" Country" DefaultId =" DataItem2" />
46
46
</DataItems >
47
47
<SeriesDimensions >
62
62
</Chart >
63
63
<TabContainer ComponentName =" tabContainerDashboardItem1" Name =" Tab Container 1" ShowCaption =" false" >
64
64
<Pages >
65
- <Page ComponentName =" dashboardTabPage1" Name =" Page 1 " />
66
- <Page ComponentName =" dashboardTabPage2" Name =" Page 2 " />
65
+ <Page ComponentName =" dashboardTabPage1" Name =" OrderData - Year " ShowItemAsTabPage = " false " />
66
+ <Page ComponentName =" dashboardTabPage2" Name =" OrderDate - Month-Year " ShowItemAsTabPage = " false " />
67
67
</Pages >
68
68
</TabContainer >
69
69
<ListBox ComponentName =" listBoxDashboardItem1" Name =" List Box 1" DataSource =" DataSource1" DataMember =" SalesPerson" >
Original file line number Diff line number Diff line change 3
3
4
4
<script >
5
5
function onItemCaptionToolbarUpdated (e ) {
6
- if (e .itemName == ' listBoxDashboardItem1 ' ) {
7
- e .options .actionItems .push ({
8
- text: ' Custom Menu ' ,
6
+ if (e .itemName === ' chartDashboardItem1 ' || e . itemName === ' chartDashboardItem2 ' ) {
7
+ e .options .stateItems .push ({
8
+ text: ' Switch Arguments ' ,
9
9
type: " menu" ,
10
10
menu: {
11
11
type: ' list' ,
12
- items: [' Category Name Argument ' , ' Country ' ],
12
+ items: [' OrderDate - Year ' , ' OrderDate - Month-Year ' ],
13
13
selectionMode: ' single' ,
14
- itemClick : function (e ) {
14
+ itemClick : function (item ) {
15
15
var viewerAPI = dashboardControl .findExtension (" viewer-api" );
16
16
var tabContainerComponentName = " tabContainerDashboardItem1" ;
17
- if (e == ' Category Name Argument ' )
17
+ if (item === ' OrderDate - Year ' )
18
18
viewerAPI .setSelectedTabPageIndex (tabContainerComponentName, 0 );
19
19
else
20
20
viewerAPI .setSelectedTabPageIndex (tabContainerComponentName, 1 );
26
26
</script >
27
27
28
28
<div style =" position : absolute ; left : 0 ; top : 0 ; right : 0 ; bottom : 0 ;" >
29
- @( Html .DevExpress ().Dashboard (" dashboardControl" )
29
+ @( Html .DevExpress ().Dashboard (" dashboardControl" )
30
30
.Width (" 100%" )
31
31
.Height (" 100%" )
32
32
.UseNeutralFilterMode (true )
Original file line number Diff line number Diff line change 1
- <!DOCTYPE html>
1
+ <!DOCTYPE html>
2
2
3
3
<html >
4
4
<head >
10
10
11
11
<script type =" text/javascript" >
12
12
function onBeforeRender (dashboardControl ) {
13
- dashboardControl .registerExtension (new DevExpress.Dashboard.DashboardPanelExtension (dashboardControl, { dashboardThumbnail: " ./DashboardThumbnail/{0}.png" }));
14
13
}
15
14
</script >
16
15
</head >
You can’t perform that action at this time.
0 commit comments