Skip to content

Commit 6bbf53b

Browse files
DevExpressExampleBotDevExpressExampleBot
authored andcommitted
Source auto update [skip ci]
1 parent 96e36b2 commit 6bbf53b

24 files changed

+850
-5
lines changed

CS/MvcDashboard_UnderlyingData/MvcDashboard_UnderlyingData.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<?xml version="1.0" encoding="utf-8"?>
1+
<?xml version="1.0" encoding="utf-8"?>
22
<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
33
<Import Project="..\packages\Microsoft.CodeDom.Providers.DotNetCompilerPlatform.2.0.1\build\net46\Microsoft.CodeDom.Providers.DotNetCompilerPlatform.props" Condition="Exists('..\packages\Microsoft.CodeDom.Providers.DotNetCompilerPlatform.2.0.1\build\net46\Microsoft.CodeDom.Providers.DotNetCompilerPlatform.props')" />
44
<Import Project="..\packages\EntityFramework.6.4.4\build\EntityFramework.props" Condition="Exists('..\packages\EntityFramework.6.4.4\build\EntityFramework.props')" />
@@ -217,4 +217,4 @@
217217
<Error Condition="!Exists('..\packages\Microsoft.CodeDom.Providers.DotNetCompilerPlatform.2.0.1\build\net46\Microsoft.CodeDom.Providers.DotNetCompilerPlatform.props')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\Microsoft.CodeDom.Providers.DotNetCompilerPlatform.2.0.1\build\net46\Microsoft.CodeDom.Providers.DotNetCompilerPlatform.props'))" />
218218
</Target>
219219
<Import Project="..\packages\EntityFramework.6.4.4\build\EntityFramework.targets" Condition="Exists('..\packages\EntityFramework.6.4.4\build\EntityFramework.targets')" />
220-
</Project>
220+
</Project>

CS/MvcDashboard_UnderlyingData/Web.config

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
<section name="entityFramework" type="System.Data.Entity.Internal.ConfigFile.EntityFrameworkSection, EntityFramework, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false" />
1717
</configSections>
1818
<connectionStrings>
19-
<add name="nwindConnection" connectionString=" XpoProvider=MSAccess; Provider=Microsoft.Jet.OLEDB.4.0; Data Source=|DataDirectory|nwind.mdb;"/>
19+
<add name="nwindConnection" connectionString=" XpoProvider=MSAccess; Provider=Microsoft.Jet.OLEDB.4.0; Data Source=|DataDirectory|nwind.mdb;" />
2020
</connectionStrings>
2121
<appSettings>
2222
<add key="webpages:Version" value="3.0.0.0" />
@@ -82,7 +82,7 @@
8282
</pages>
8383
<httpHandlers>
8484
<add type="DevExpress.Web.ASPxUploadProgressHttpHandler, DevExpress.Web.v21.2, Version=21.2.8.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" verb="GET,POST" path="ASPxUploadProgressHandlerPage.ashx" validate="false" />
85-
<add type="DevExpress.Web.ASPxHttpHandlerModule, DevExpress.Web.v21.2, Version=21.2.8.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" verb="GET" path="DX.ashx" validate="false" />
85+
<add type="DevExpress.Web.ASPxHttpHandlerModule, DevExpress.Web.v21.2, Version=21.2.8.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" verb="GET,POST" path="DX.ashx" validate="false" />
8686
</httpHandlers>
8787
<httpModules>
8888
<add type="DevExpress.Web.ASPxHttpHandlerModule, DevExpress.Web.v21.2, Version=21.2.8.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" name="ASPxHttpHandlerModule" />
@@ -97,7 +97,7 @@
9797
</modules>
9898
<handlers>
9999
<add type="DevExpress.Web.ASPxUploadProgressHttpHandler, DevExpress.Web.v21.2, Version=21.2.8.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" verb="GET,POST" path="ASPxUploadProgressHandlerPage.ashx" name="ASPxUploadProgressHandler" preCondition="integratedMode" />
100-
<add type="DevExpress.Web.ASPxHttpHandlerModule, DevExpress.Web.v21.2, Version=21.2.8.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" verb="GET" path="DX.ashx" name="ASPxHttpHandlerModule" preCondition="integratedMode" />
100+
<add type="DevExpress.Web.ASPxHttpHandlerModule, DevExpress.Web.v21.2, Version=21.2.8.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" verb="GET,POST" path="DX.ashx" name="ASPxHttpHandlerModule" preCondition="integratedMode" />
101101
<remove name="ExtensionlessUrlHandler-Integrated-4.0" />
102102
<remove name="OPTIONSVerbHandler" />
103103
<remove name="TRACEVerbHandler" />

VB/MvcDashboard_UnderlyingData.sln

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
2+
Microsoft Visual Studio Solution File, Format Version 12.00
3+
# Visual Studio Version 17
4+
VisualStudioVersion = 17.2.32602.215
5+
MinimumVisualStudioVersion = 10.0.40219.1
6+
Project("{F184B08F-C81C-45F6-A57F-5ABD9991F28F}") = "MvcDashboard_UnderlyingData", "MvcDashboard_UnderlyingData\MvcDashboard_UnderlyingData.vbproj", "{8BD9CD1A-9656-42EE-9358-61E224CD7C59}"
7+
EndProject
8+
Global
9+
GlobalSection(SolutionConfigurationPlatforms) = preSolution
10+
Debug|Any CPU = Debug|Any CPU
11+
Release|Any CPU = Release|Any CPU
12+
EndGlobalSection
13+
GlobalSection(ProjectConfigurationPlatforms) = postSolution
14+
{8BD9CD1A-9656-42EE-9358-61E224CD7C59}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
15+
{8BD9CD1A-9656-42EE-9358-61E224CD7C59}.Debug|Any CPU.Build.0 = Debug|Any CPU
16+
{8BD9CD1A-9656-42EE-9358-61E224CD7C59}.Release|Any CPU.ActiveCfg = Release|Any CPU
17+
{8BD9CD1A-9656-42EE-9358-61E224CD7C59}.Release|Any CPU.Build.0 = Release|Any CPU
18+
EndGlobalSection
19+
GlobalSection(SolutionProperties) = preSolution
20+
HideSolutionNode = FALSE
21+
EndGlobalSection
22+
GlobalSection(ExtensibilityGlobals) = postSolution
23+
SolutionGuid = {97F20957-32B0-4536-A7EE-3947A557BD4A}
24+
EndGlobalSection
25+
EndGlobal
Lines changed: 73 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<Dashboard>
3+
<Title Text="Dashboard" />
4+
<DataSources>
5+
<SqlDataSource Name="SalesPerson" ComponentName="DataSource1">
6+
<Connection Name="nwindConnection" FromAppConfig="true" />
7+
<Query Type="SelectQuery" Name="SalesPerson">
8+
<Tables>
9+
<Table Name="SalesPerson" />
10+
</Tables>
11+
<Columns>
12+
<AllColumns Table="SalesPerson" />
13+
</Columns>
14+
</Query>
15+
<ConnectionOptions CloseConnection="true" />
16+
</SqlDataSource>
17+
</DataSources>
18+
<Items>
19+
<Chart ComponentName="chartDashboardItem1" Name="Chart 1" DataSource="DataSource1" DataMember="SalesPerson" Rotated="true">
20+
<DataItems>
21+
<Dimension DataMember="CategoryName" TopNEnabled="true" TopNMeasure="DataItem0" DefaultId="DataItem1" />
22+
<Measure DataMember="Extended Price" DefaultId="DataItem0" />
23+
</DataItems>
24+
<Arguments>
25+
<Argument DefaultId="DataItem1" />
26+
</Arguments>
27+
<Panes>
28+
<Pane Name="Pane 1">
29+
<Series>
30+
<Simple>
31+
<Value DefaultId="DataItem0" />
32+
</Simple>
33+
</Series>
34+
</Pane>
35+
</Panes>
36+
<ChartLegend Visible="false" />
37+
</Chart>
38+
<Card ComponentName="cardDashboardItem1" Name="Card 1" DataSource="DataSource1" DataMember="SalesPerson">
39+
<DataItems>
40+
<Measure DataMember="Extended Price" DefaultId="DataItem0" />
41+
<Dimension DataMember="Sales Person" DefaultId="DataItem1" />
42+
<Dimension DataMember="OrderDate" DateTimeGroupInterval="MonthYear" DefaultId="DataItem2" />
43+
</DataItems>
44+
<SeriesDimensions>
45+
<SeriesDimension DefaultId="DataItem1" />
46+
</SeriesDimensions>
47+
<Card>
48+
<ActualValue DefaultId="DataItem0" />
49+
<AbsoluteVariationNumericFormat />
50+
<PercentVariationNumericFormat />
51+
<PercentOfTargetNumericFormat />
52+
<LayoutTemplate Type="Stretched">
53+
<TopValue Visible="true" ValueType="ActualValue" DimensionIndex="0" />
54+
<MainValue Visible="true" ValueType="Title" DimensionIndex="0" />
55+
<SubValue Visible="true" ValueType="Subtitle" DimensionIndex="0" />
56+
<BottomValue1 Visible="true" ValueType="PercentVariation" DimensionIndex="0" />
57+
<BottomValue2 Visible="true" ValueType="AbsoluteVariation" DimensionIndex="0" />
58+
<DeltaIndicator Visible="true" />
59+
<Sparkline Visible="true" />
60+
</LayoutTemplate>
61+
</Card>
62+
<SparklineArgument DefaultId="DataItem2" />
63+
</Card>
64+
</Items>
65+
<LayoutTree>
66+
<LayoutGroup Weight="100">
67+
<LayoutGroup Orientation="Vertical" Weight="100">
68+
<LayoutItem DashboardItem="cardDashboardItem1" Weight="100" />
69+
<LayoutItem DashboardItem="chartDashboardItem1" Weight="100" />
70+
</LayoutGroup>
71+
</LayoutGroup>
72+
</LayoutTree>
73+
</Dashboard>
Binary file not shown.
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
Imports System.Web.Routing
2+
Imports DevExpress.DashboardWeb
3+
Imports DevExpress.DashboardWeb.Mvc
4+
Imports DevExpress.DataAccess.Web
5+
6+
Namespace MvcDashboard_UnderlyingData
7+
8+
Public Class DashboardConfig
9+
10+
Public Shared Sub RegisterService(ByVal routes As RouteCollection)
11+
routes.MapDashboardRoute("api/dashboard", "DefaultDashboard")
12+
' Uncomment this line to save dashboards to the App_Data folder.
13+
Call DashboardConfigurator.Default.SetDashboardStorage(New DashboardFileStorage("~/App_Data/Dashboards"))
14+
Call DashboardConfigurator.Default.SetConnectionStringsProvider(New ConfigFileConnectionStringsProvider())
15+
' Uncomment these lines to create an in-memory storage of dashboard data sources. Use the DataSourceInMemoryStorage.RegisterDataSource
16+
' method to register the existing data source in the created storage.
17+
'var dataSourceStorage = new DataSourceInMemoryStorage();
18+
'DashboardConfigurator.Default.SetDataSourceStorage(dataSourceStorage);
19+
End Sub
20+
End Class
21+
End Namespace
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
Imports System.Web.Mvc
2+
3+
Namespace MvcDashboard_UnderlyingData
4+
5+
Public Class FilterConfig
6+
7+
Public Shared Sub RegisterGlobalFilters(ByVal filters As GlobalFilterCollection)
8+
filters.Add(New HandleErrorAttribute())
9+
End Sub
10+
End Class
11+
End Namespace
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
Imports System.Web.Mvc
2+
Imports System.Web.Routing
3+
4+
Namespace MvcDashboard_UnderlyingData
5+
6+
Public Class RouteConfig
7+
8+
Public Shared Sub RegisterRoutes(ByVal routes As RouteCollection)
9+
routes.IgnoreRoute("{resource}.axd/{*pathInfo}")
10+
routes.IgnoreRoute("{resource}.ashx/{*pathInfo}")
11+
routes.MapRoute(name:="Default", url:="{controller}/{action}/{id}", defaults:=New With {.controller = "Home", .action = "Index", .id = UrlParameter.Optional}) ' Route name
12+
' URL with parameters
13+
' Parameter defaults
14+
End Sub
15+
End Class
16+
End Namespace
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
Imports System.Web.Http
2+
3+
Namespace MvcDashboard_UnderlyingData
4+
5+
Public Module WebApiConfig
6+
7+
Public Sub Register(ByVal config As HttpConfiguration)
8+
config.Routes.MapHttpRoute(name:="DefaultApi", routeTemplate:="api/{controller}/{id}", defaults:=New With {.id = RouteParameter.Optional})
9+
End Sub
10+
End Module
11+
End Namespace
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
Imports DevExpress.DashboardWeb.Mvc
2+
3+
Namespace MvcDashboard_UnderlyingData.Controllers
4+
5+
Public Class DefaultDashboardController
6+
Inherits DashboardController
7+
8+
End Class
9+
End Namespace

0 commit comments

Comments
 (0)