Skip to content

Commit 0a5afcd

Browse files
Merge pull request telerik#31 from telerik/styles
Add MVC ClientThemeChange example telerik/kendo#9651
2 parents db284c6 + 14a9092 commit 0a5afcd

File tree

134 files changed

+303060
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

134 files changed

+303060
-0
lines changed
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 16
4+
VisualStudioVersion = 16.0.29326.143
5+
MinimumVisualStudioVersion = 10.0.40219.1
6+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ChangingThemesOnTheClient", "ChangingThemesOnTheClient\ChangingThemesOnTheClient.csproj", "{FC6C2562-FA5C-4AA2-B9AA-3E6075274AD5}"
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+
{FC6C2562-FA5C-4AA2-B9AA-3E6075274AD5}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
15+
{FC6C2562-FA5C-4AA2-B9AA-3E6075274AD5}.Debug|Any CPU.Build.0 = Debug|Any CPU
16+
{FC6C2562-FA5C-4AA2-B9AA-3E6075274AD5}.Release|Any CPU.ActiveCfg = Release|Any CPU
17+
{FC6C2562-FA5C-4AA2-B9AA-3E6075274AD5}.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 = {9808B3A0-F45E-4C98-868B-8C9314A46697}
24+
EndGlobalSection
25+
EndGlobal
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
using System.Web;
2+
using System.Web.Optimization;
3+
4+
namespace ChangingThemesOnTheClient
5+
{
6+
public class BundleConfig
7+
{
8+
// For more information on bundling, visit http://go.microsoft.com/fwlink/?LinkId=301862
9+
public static void RegisterBundles(BundleCollection bundles)
10+
{
11+
bundles.Add(new ScriptBundle("~/bundles/jquery").Include(
12+
"~/Scripts/jquery-{version}.js"));
13+
14+
// Use the development version of Modernizr to develop with and learn from. Then, when you're
15+
// ready for production, use the build tool at http://modernizr.com to pick only the tests you need.
16+
bundles.Add(new ScriptBundle("~/bundles/modernizr").Include(
17+
"~/Scripts/modernizr-*"));
18+
19+
bundles.Add(new ScriptBundle("~/bundles/bootstrap").Include(
20+
"~/Scripts/bootstrap.js",
21+
"~/Scripts/respond.js"));
22+
23+
bundles.Add(new StyleBundle("~/Content/css").Include(
24+
"~/Content/bootstrap.css",
25+
"~/Content/Site.css"));
26+
bundles.Add(new ScriptBundle("~/bundles/kendo").Include(
27+
"~/Scripts/kendo/kendo.all.min.js",
28+
//Uncomment below if you use the Scheduler.
29+
"~/Scripts/kendo/kendo.timezones.min.js",
30+
"~/Scripts/kendo/kendo.aspnetmvc.min.js"));
31+
}
32+
}
33+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
using System.Web;
2+
using System.Web.Mvc;
3+
4+
namespace ChangingThemesOnTheClient
5+
{
6+
public class FilterConfig
7+
{
8+
public static void RegisterGlobalFilters(GlobalFilterCollection filters)
9+
{
10+
filters.Add(new HandleErrorAttribute());
11+
}
12+
}
13+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
using System;
2+
using System.Collections.Generic;
3+
using System.Linq;
4+
using System.Web;
5+
using System.Web.Mvc;
6+
using System.Web.Routing;
7+
8+
namespace ChangingThemesOnTheClient
9+
{
10+
public class RouteConfig
11+
{
12+
public static void RegisterRoutes(RouteCollection routes)
13+
{
14+
routes.IgnoreRoute("{resource}.axd/{*pathInfo}");
15+
16+
routes.MapRoute(
17+
name: "Default",
18+
url: "{controller}/{action}/{id}",
19+
defaults: new { controller = "Home", action = "Index", id = UrlParameter.Optional }
20+
);
21+
}
22+
}
23+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,250 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3+
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
4+
<PropertyGroup>
5+
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
6+
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
7+
<ProductVersion>
8+
</ProductVersion>
9+
<SchemaVersion>2.0</SchemaVersion>
10+
<ProjectGuid>{FC6C2562-FA5C-4AA2-B9AA-3E6075274AD5}</ProjectGuid>
11+
<ProjectTypeGuids>{349c5851-65df-11da-9384-00065b846f21};{fae04ec0-301f-11d3-bf4b-00c04f79efbc}</ProjectTypeGuids>
12+
<OutputType>Library</OutputType>
13+
<AppDesignerFolder>Properties</AppDesignerFolder>
14+
<RootNamespace>ChangingThemesOnTheClient_MVC</RootNamespace>
15+
<AssemblyName>ChangingThemesOnTheClient_MVC</AssemblyName>
16+
<TargetFrameworkVersion>v4.7.2</TargetFrameworkVersion>
17+
<MvcBuildViews>false</MvcBuildViews>
18+
<UseIISExpress>true</UseIISExpress>
19+
<Use64BitIISExpress />
20+
<IISExpressSSLPort />
21+
<IISExpressAnonymousAuthentication />
22+
<IISExpressWindowsAuthentication />
23+
<IISExpressUseClassicPipelineMode />
24+
<UseGlobalApplicationHostFile />
25+
</PropertyGroup>
26+
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
27+
<DebugSymbols>true</DebugSymbols>
28+
<DebugType>full</DebugType>
29+
<Optimize>false</Optimize>
30+
<OutputPath>bin\</OutputPath>
31+
<DefineConstants>DEBUG;TRACE</DefineConstants>
32+
<ErrorReport>prompt</ErrorReport>
33+
<WarningLevel>4</WarningLevel>
34+
</PropertyGroup>
35+
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
36+
<DebugType>pdbonly</DebugType>
37+
<Optimize>true</Optimize>
38+
<OutputPath>bin\</OutputPath>
39+
<DefineConstants>TRACE</DefineConstants>
40+
<ErrorReport>prompt</ErrorReport>
41+
<WarningLevel>4</WarningLevel>
42+
</PropertyGroup>
43+
<ItemGroup>
44+
<Reference Include="Antlr3.Runtime, Version=3.5.0.2, Culture=neutral, PublicKeyToken=eb42632606e9261f, processorArchitecture=MSIL">
45+
<HintPath>..\packages\Antlr.3.5.0.2\lib\Antlr3.Runtime.dll</HintPath>
46+
</Reference>
47+
<Reference Include="Kendo.Mvc">
48+
<HintPath>..\lib\KENDOUIMVC\2019.3.1023.545\Kendo.Mvc.dll</HintPath>
49+
<Private>True</Private>
50+
</Reference>
51+
<Reference Include="Microsoft.AspNetCore.Http.Features, Version=3.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60, processorArchitecture=MSIL">
52+
<HintPath>..\packages\Microsoft.AspNetCore.Http.Features.3.0.0\lib\netstandard2.0\Microsoft.AspNetCore.Http.Features.dll</HintPath>
53+
</Reference>
54+
<Reference Include="Microsoft.CSharp" />
55+
<Reference Include="Microsoft.Extensions.Primitives, Version=3.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60, processorArchitecture=MSIL">
56+
<HintPath>..\packages\Microsoft.Extensions.Primitives.3.0.0\lib\netstandard2.0\Microsoft.Extensions.Primitives.dll</HintPath>
57+
</Reference>
58+
<Reference Include="Microsoft.Web.Infrastructure, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
59+
<HintPath>..\packages\Microsoft.Web.Infrastructure.1.0.0.0\lib\net40\Microsoft.Web.Infrastructure.dll</HintPath>
60+
</Reference>
61+
<Reference Include="Newtonsoft.Json, Version=11.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed, processorArchitecture=MSIL">
62+
<HintPath>..\packages\Newtonsoft.Json.11.0.1\lib\net45\Newtonsoft.Json.dll</HintPath>
63+
</Reference>
64+
<Reference Include="System" />
65+
<Reference Include="System.Buffers, Version=4.0.3.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51, processorArchitecture=MSIL">
66+
<HintPath>..\packages\System.Buffers.4.5.0\lib\netstandard2.0\System.Buffers.dll</HintPath>
67+
</Reference>
68+
<Reference Include="System.Data" />
69+
<Reference Include="System.Data.Entity" />
70+
<Reference Include="System.Drawing" />
71+
<Reference Include="System.IO.Pipelines, Version=4.0.1.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51, processorArchitecture=MSIL">
72+
<HintPath>..\packages\System.IO.Pipelines.4.6.0\lib\netstandard2.0\System.IO.Pipelines.dll</HintPath>
73+
</Reference>
74+
<Reference Include="System.Memory, Version=4.0.1.1, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51, processorArchitecture=MSIL">
75+
<HintPath>..\packages\System.Memory.4.5.3\lib\netstandard2.0\System.Memory.dll</HintPath>
76+
</Reference>
77+
<Reference Include="System.Numerics" />
78+
<Reference Include="System.Numerics.Vectors, Version=4.1.3.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
79+
<HintPath>..\packages\System.Numerics.Vectors.4.4.0\lib\net46\System.Numerics.Vectors.dll</HintPath>
80+
</Reference>
81+
<Reference Include="System.Runtime.CompilerServices.Unsafe, Version=4.0.5.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
82+
<HintPath>..\packages\System.Runtime.CompilerServices.Unsafe.4.6.0\lib\netstandard2.0\System.Runtime.CompilerServices.Unsafe.dll</HintPath>
83+
</Reference>
84+
<Reference Include="System.Threading.Tasks.Extensions, Version=4.2.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51, processorArchitecture=MSIL">
85+
<HintPath>..\packages\System.Threading.Tasks.Extensions.4.5.2\lib\netstandard2.0\System.Threading.Tasks.Extensions.dll</HintPath>
86+
</Reference>
87+
<Reference Include="System.Web.DynamicData" />
88+
<Reference Include="System.Web.Entity" />
89+
<Reference Include="System.Web.ApplicationServices" />
90+
<Reference Include="System.ComponentModel.DataAnnotations" />
91+
<Reference Include="System.Core" />
92+
<Reference Include="System.Data.DataSetExtensions" />
93+
<Reference Include="System.Web.Helpers, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
94+
<HintPath>..\packages\Microsoft.AspNet.WebPages.3.2.7\lib\net45\System.Web.Helpers.dll</HintPath>
95+
</Reference>
96+
<Reference Include="System.Web.Mvc, Version=5.2.7.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
97+
<HintPath>..\packages\Microsoft.AspNet.Mvc.5.2.7\lib\net45\System.Web.Mvc.dll</HintPath>
98+
</Reference>
99+
<Reference Include="System.Web.Optimization, Version=1.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
100+
<HintPath>..\packages\Microsoft.AspNet.Web.Optimization.1.1.3\lib\net40\System.Web.Optimization.dll</HintPath>
101+
</Reference>
102+
<Reference Include="System.Web.Razor, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
103+
<HintPath>..\packages\Microsoft.AspNet.Razor.3.2.7\lib\net45\System.Web.Razor.dll</HintPath>
104+
</Reference>
105+
<Reference Include="System.Web.WebPages, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
106+
<HintPath>..\packages\Microsoft.AspNet.WebPages.3.2.7\lib\net45\System.Web.WebPages.dll</HintPath>
107+
</Reference>
108+
<Reference Include="System.Web.WebPages.Deployment, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
109+
<HintPath>..\packages\Microsoft.AspNet.WebPages.3.2.7\lib\net45\System.Web.WebPages.Deployment.dll</HintPath>
110+
</Reference>
111+
<Reference Include="System.Web.WebPages.Razor, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
112+
<HintPath>..\packages\Microsoft.AspNet.WebPages.3.2.7\lib\net45\System.Web.WebPages.Razor.dll</HintPath>
113+
</Reference>
114+
<Reference Include="System.Xml.Linq" />
115+
<Reference Include="System.Web" />
116+
<Reference Include="System.Web.Extensions" />
117+
<Reference Include="System.Web.Abstractions" />
118+
<Reference Include="System.Web.Routing" />
119+
<Reference Include="System.Xml" />
120+
<Reference Include="System.Configuration" />
121+
<Reference Include="System.Web.Services" />
122+
<Reference Include="System.EnterpriseServices" />
123+
<Reference Include="WebGrease, Version=1.6.5135.21930, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
124+
<HintPath>..\packages\WebGrease.1.6.0\lib\WebGrease.dll</HintPath>
125+
</Reference>
126+
</ItemGroup>
127+
<ItemGroup>
128+
<Compile Include="App_Start\BundleConfig.cs" />
129+
<Compile Include="App_Start\FilterConfig.cs" />
130+
<Compile Include="App_Start\RouteConfig.cs" />
131+
<Compile Include="Controllers\GridController.cs" />
132+
<Compile Include="Controllers\HomeController.cs" />
133+
<Compile Include="Global.asax.cs">
134+
<DependentUpon>Global.asax</DependentUpon>
135+
</Compile>
136+
<Compile Include="Models\OrderViewModel.cs" />
137+
<Compile Include="Models\Theme.cs" />
138+
<Compile Include="Properties\AssemblyInfo.cs" />
139+
</ItemGroup>
140+
<ItemGroup>
141+
<Content Include="Content\bootstrap-grid.css" />
142+
<Content Include="Content\bootstrap-grid.min.css" />
143+
<Content Include="Content\bootstrap-reboot.css" />
144+
<Content Include="Content\bootstrap-reboot.min.css" />
145+
<Content Include="Content\bootstrap.css" />
146+
<Content Include="Content\bootstrap.min.css" />
147+
<Content Include="Global.asax" />
148+
<Content Include="Content\bootstrap.min.css.map" />
149+
<Content Include="Content\bootstrap.css.map" />
150+
<Content Include="Content\bootstrap-reboot.min.css.map" />
151+
<Content Include="Content\bootstrap-reboot.css.map" />
152+
<Content Include="Content\bootstrap-grid.min.css.map" />
153+
<Content Include="Content\bootstrap-grid.css.map" />
154+
<None Include="packages.config" />
155+
<Content Include="Images\200.png" />
156+
<Content Include="Scripts\bootstrap.bundle.js" />
157+
<Content Include="Scripts\bootstrap.bundle.min.js" />
158+
<Content Include="Scripts\bootstrap.js" />
159+
<Content Include="Scripts\bootstrap.min.js" />
160+
<Content Include="Scripts\bootstrap.min.js.map" />
161+
<Content Include="Scripts\bootstrap.js.map" />
162+
<Content Include="Scripts\bootstrap.bundle.min.js.map" />
163+
<Content Include="Scripts\bootstrap.bundle.js.map" />
164+
<None Include="Scripts\jquery-3.3.1.intellisense.js" />
165+
<Content Include="Scripts\jquery-3.3.1.js" />
166+
<Content Include="Scripts\jquery-3.3.1.min.js" />
167+
<Content Include="Scripts\jquery-3.3.1.slim.js" />
168+
<Content Include="Scripts\jquery-3.3.1.slim.min.js" />
169+
<Content Include="Scripts\kendo.modernizr.custom.js" />
170+
<Content Include="Scripts\modernizr-2.8.3.js" />
171+
<Content Include="Scripts\respond.js" />
172+
<Content Include="Scripts\respond.min.js" />
173+
<Content Include="Scripts\_references.js" />
174+
<Content Include="Web.config" />
175+
<Content Include="Web.Debug.config">
176+
<DependentUpon>Web.config</DependentUpon>
177+
</Content>
178+
<Content Include="Web.Release.config">
179+
<DependentUpon>Web.config</DependentUpon>
180+
</Content>
181+
<Content Include="Views\Web.config" />
182+
<Content Include="Views\_ViewStart.cshtml" />
183+
<Content Include="Views\Home\Index.cshtml" />
184+
<Content Include="Views\Shared\_Layout.cshtml" />
185+
<Content Include="Views\Shared\EditorTemplates\Boolean.cshtml" />
186+
<Content Include="Views\Shared\EditorTemplates\Currency.cshtml" />
187+
<Content Include="Views\Shared\EditorTemplates\Date.cshtml" />
188+
<Content Include="Views\Shared\EditorTemplates\DateTime.cshtml" />
189+
<Content Include="Views\Shared\EditorTemplates\Email.cshtml" />
190+
<Content Include="Views\Shared\EditorTemplates\EmailAddress.cshtml" />
191+
<Content Include="Views\Shared\EditorTemplates\GridForeignKey.cshtml" />
192+
<Content Include="Views\Shared\EditorTemplates\Integer.cshtml" />
193+
<Content Include="Views\Shared\EditorTemplates\Number.cshtml" />
194+
<Content Include="Views\Shared\EditorTemplates\Password.cshtml" />
195+
<Content Include="Views\Shared\EditorTemplates\String.cshtml" />
196+
<Content Include="Views\Shared\EditorTemplates\Time.cshtml" />
197+
<Content Include="Views\Shared\EditorTemplates\Url.cshtml" />
198+
</ItemGroup>
199+
<ItemGroup>
200+
<Content Include="Content\Site.css" />
201+
<Content Include="favicon.ico" />
202+
<Content Include="Images\accent.png" />
203+
<Content Include="Images\bullet.png" />
204+
<Content Include="Images\heroAccent.png" />
205+
</ItemGroup>
206+
<ItemGroup>
207+
<Folder Include="App_Data\" />
208+
</ItemGroup>
209+
<ItemGroup>
210+
<Content Include="Scripts\jquery-3.3.1.slim.min.map" />
211+
</ItemGroup>
212+
<ItemGroup>
213+
<Content Include="Scripts\jquery-3.3.1.min.map" />
214+
</ItemGroup>
215+
<PropertyGroup>
216+
<VisualStudioVersion Condition="'$(VisualStudioVersion)' == ''">10.0</VisualStudioVersion>
217+
<VSToolsPath Condition="'$(VSToolsPath)' == ''">$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)</VSToolsPath>
218+
</PropertyGroup>
219+
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
220+
<Import Project="$(VSToolsPath)\WebApplications\Microsoft.WebApplication.targets" Condition="'$(VSToolsPath)' != ''" />
221+
<Import Project="$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v10.0\WebApplications\Microsoft.WebApplication.targets" Condition="false" />
222+
<Target Name="MvcBuildViews" AfterTargets="AfterBuild" Condition="'$(MvcBuildViews)'=='true'">
223+
<AspNetCompiler VirtualPath="temp" PhysicalPath="$(WebProjectOutputDir)" />
224+
</Target>
225+
<ProjectExtensions>
226+
<VisualStudio>
227+
<FlavorProperties GUID="{349c5851-65df-11da-9384-00065b846f21}">
228+
<WebProjectProperties>
229+
<UseIIS>True</UseIIS>
230+
<AutoAssignPort>True</AutoAssignPort>
231+
<DevelopmentServerPort>57117</DevelopmentServerPort>
232+
<DevelopmentServerVPath>/</DevelopmentServerVPath>
233+
<IISUrl>http://localhost:57117/</IISUrl>
234+
<NTLMAuthentication>False</NTLMAuthentication>
235+
<UseCustomServer>False</UseCustomServer>
236+
<CustomServerUrl>
237+
</CustomServerUrl>
238+
<SaveServerSettingsInUserFile>False</SaveServerSettingsInUserFile>
239+
</WebProjectProperties>
240+
</FlavorProperties>
241+
<UserProperties UseCdnSupport="True" />
242+
</VisualStudio>
243+
</ProjectExtensions>
244+
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
245+
Other similar extension points exist, see Microsoft.Common.targets.
246+
<Target Name="BeforeBuild">
247+
</Target>
248+
<Target Name="AfterBuild">
249+
</Target> -->
250+
</Project>

0 commit comments

Comments
 (0)