Skip to content

Commit 738b658

Browse files
committed
Add example for Window and AJAX forms
1 parent a27573f commit 738b658

File tree

88 files changed

+94255
-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.

88 files changed

+94255
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
2+
Microsoft Visual Studio Solution File, Format Version 12.00
3+
# Visual Studio 14
4+
VisualStudioVersion = 14.0.25420.1
5+
MinimumVisualStudioVersion = 10.0.40219.1
6+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "KendoWindow_Ajax_Form", "KendoWindow-Ajax-Form\KendoWindow_Ajax_Form.csproj", "{97B2B4D7-1D63-439D-8D47-BE2E6414E63D}"
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+
{97B2B4D7-1D63-439D-8D47-BE2E6414E63D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
15+
{97B2B4D7-1D63-439D-8D47-BE2E6414E63D}.Debug|Any CPU.Build.0 = Debug|Any CPU
16+
{97B2B4D7-1D63-439D-8D47-BE2E6414E63D}.Release|Any CPU.ActiveCfg = Release|Any CPU
17+
{97B2B4D7-1D63-439D-8D47-BE2E6414E63D}.Release|Any CPU.Build.0 = Release|Any CPU
18+
EndGlobalSection
19+
GlobalSection(SolutionProperties) = preSolution
20+
HideSolutionNode = FALSE
21+
EndGlobalSection
22+
EndGlobal
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
<?xml version="1.0" standalone="yes"?>
2+
<NewDataSet>
3+
<OrderViewModel>
4+
<OrderID>1</OrderID>
5+
<CustomerID>1</CustomerID>
6+
<ContactName>Charles</ContactName>
7+
<OrderDate>2016-10-20T14:21:50.1283137+03:00</OrderDate>
8+
<ShippedDate>2016-10-21T14:21:50.1283137+03:00</ShippedDate>
9+
</OrderViewModel>
10+
<OrderViewModel>
11+
<OrderID>2</OrderID>
12+
<CustomerID>2</CustomerID>
13+
<ContactName>John</ContactName>
14+
<OrderDate>2016-10-19T14:21:50.1283137+03:00</OrderDate>
15+
<ShippedDate>2016-10-21T14:21:50.1283137+03:00</ShippedDate>
16+
</OrderViewModel>
17+
<OrderViewModel>
18+
<OrderID>1</OrderID>
19+
<CustomerID>1</CustomerID>
20+
<ContactName>asd</ContactName>
21+
<OrderDate>2016-10-13T00:00:00+03:00</OrderDate>
22+
<ShippedDate>2016-10-14T00:00:00+03:00</ShippedDate>
23+
</OrderViewModel>
24+
</NewDataSet>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
using System.Web;
2+
using System.Web.Optimization;
3+
4+
namespace KendoWindow_Ajax_Form
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+
bundles.Add(new ScriptBundle("~/bundles/jqueryval").Include(
28+
"~/Scripts/jquery.unobtrusive*",
29+
"~/Scripts/jquery.validate*"));
30+
}
31+
}
32+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
using System.Web;
2+
using System.Web.Mvc;
3+
4+
namespace KendoWindow_Ajax_Form
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 KendoWindow_Ajax_Form
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+
}

0 commit comments

Comments
 (0)