-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathIndex.cshtml
31 lines (27 loc) · 1.47 KB
/
Index.cshtml
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
<script src="~/Content/Extensions/ChartAxisMaxValueExtension.js"></script>
<script src="~/Content/Extensions/ChartConstantLinesExtension.js"></script>
<script src="~/Content/Extensions/ChartLineOptionsExtension.js"></script>
<script src="~/Content/Extensions/ChartScaleBreaksExtension.js"></script>
<script src="~/Content/Extensions/ItemDescriptionExtension.js"></script>
<script src="~/Content/Extensions/DashboardDescriptionExtension.js"></script>
<script type="text/javascript">
function onBeforeRender(sender) {
var control = sender.GetDashboardControl()
control.registerExtension(new DevExpress.Dashboard.DashboardPanelExtension(control))
control.registerExtension(new ChartScaleBreaksExtension(control))
control.registerExtension(new ChartLineOptionsExtension(control))
control.registerExtension(new ChartAxisMaxValueExtension(control))
control.registerExtension(new ChartConstantLinesExtension(control))
control.registerExtension(new ItemDescriptionExtension(control))
control.registerExtension(new DashboardDescriptionExtension(control))
}
</script>
@Html.DevExpress().Dashboard(settings => {
settings.Name = "Dashboard";
settings.Width = Unit.Percentage(100);
settings.Height = Unit.Percentage(100);
settings.UseNeutralFilterMode = true;
settings.ClientSideEvents.BeforeRender = "onBeforeRender";
settings.IncludeDashboardIdToUrl = true;
settings.IncludeDashboardStateToUrl = true;
}).GetHtml()