Skip to content

Commit f8aba6e

Browse files
CecoMilchevVicTachev
authored andcommitted
add handling server error example
1 parent c9b517c commit f8aba6e

Some content is hidden

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

68 files changed

+121057
-0
lines changed
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 15
4+
VisualStudioVersion = 15.0.28010.2046
5+
MinimumVisualStudioVersion = 10.0.40219.1
6+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "KendoGridErrorHandling", "KendoGridErrorHandling\KendoGridErrorHandling.csproj", "{E7F4CD42-628C-4B37-B6F6-6573D3F92674}"
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+
{E7F4CD42-628C-4B37-B6F6-6573D3F92674}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
15+
{E7F4CD42-628C-4B37-B6F6-6573D3F92674}.Debug|Any CPU.Build.0 = Debug|Any CPU
16+
{E7F4CD42-628C-4B37-B6F6-6573D3F92674}.Release|Any CPU.ActiveCfg = Release|Any CPU
17+
{E7F4CD42-628C-4B37-B6F6-6573D3F92674}.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 = {3DB8EEBC-59E8-4D87-BC85-9391D7ABC1AA}
24+
EndGlobalSection
25+
EndGlobal
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
using System.Web;
2+
using System.Web.Optimization;
3+
4+
namespace KendoGridErrorHandling
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+
}
27+
}
28+
}
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
using System.Web;
2+
using System.Web.Mvc;
3+
4+
namespace KendoGridErrorHandling
5+
{
6+
public class FilterConfig
7+
{
8+
public static void RegisterGlobalFilters(GlobalFilterCollection filters)
9+
{
10+
filters.Add(new HandleErrorAttribute());
11+
}
12+
}
13+
}
Lines changed: 23 additions & 0 deletions
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 KendoGridErrorHandling
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+
}
Lines changed: 86 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,86 @@
1+
.k-header h1 {
2+
margin: 0;
3+
padding: 30px 15px;
4+
font-size: 32px;
5+
font-weight: lighter;
6+
}
7+
8+
/* Sticky footer styles
9+
-------------------------------------------------- */
10+
html {
11+
position: relative;
12+
min-height: 100%;
13+
}
14+
15+
body {
16+
/* Margin bottom by footer height */
17+
margin-bottom: 60px;
18+
}
19+
20+
.footer {
21+
position: absolute;
22+
bottom: 0;
23+
width: 100%;
24+
/* Set the fixed height of the footer here */
25+
height: 60px;
26+
background-color: #f5f5f5;
27+
}
28+
29+
.container-fluid .text-muted {
30+
margin: 20px 0;
31+
}
32+
33+
.placeholders {
34+
margin: 30px auto;
35+
}
36+
37+
.placeholder img {
38+
display: inline-block;
39+
}
40+
41+
p .k-button {
42+
margin: 0 15px 0 0;
43+
}
44+
45+
.btn-toggle {
46+
position: absolute;
47+
top: 0;
48+
left: 0;
49+
box-shadow: none;
50+
height: 48px;
51+
}
52+
53+
.btn-toggle .k-icon {
54+
opacity: 1;
55+
}
56+
57+
.btn-toggle,
58+
.k-primary.btn-toggle:hover,
59+
.btn-toggle:focus:active:not(.k-state-disabled):not([disabled]),
60+
.btn-toggle:focus:not(.k-state-disabled):not([disabled]) {
61+
box-shadow: none;
62+
border-radius: 0;
63+
}
64+
65+
.btn-toggle .k-i-hbars,
66+
.k-primary.btn-toggle:hover .k-i-hbars,
67+
.btn-toggle:focus:active:not(.k-state-disabled):not([disabled]) .k-i-hbars,
68+
.btn-toggle:focus:not(.k-state-disabled):not([disabled]) .k-i-hbars {
69+
background-position: -80px -32px;
70+
}
71+
72+
@media (max-width: 768px) {
73+
.k-item {
74+
display: block;
75+
clear: both;
76+
float: none;
77+
width: 100%;
78+
}
79+
80+
.k-header h1 {
81+
margin: 0;
82+
padding: 16px 15px 14px 60px;
83+
font-size: 18px;
84+
font-weight: lighter;
85+
}
86+
}

0 commit comments

Comments
 (0)