Skip to content

Commit 7934804

Browse files
committed
chore: add treeview load selected item async project
1 parent dd839bd commit 7934804

File tree

137 files changed

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

137 files changed

+211551
-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.26730.12
5+
MinimumVisualStudioVersion = 10.0.40219.1
6+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ExpandSelectedItemAsync", "ExpandSelectedItemAsync\ExpandSelectedItemAsync.csproj", "{0C51537F-585D-4516-BAB0-24AAA7FB4DA3}"
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+
{0C51537F-585D-4516-BAB0-24AAA7FB4DA3}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
15+
{0C51537F-585D-4516-BAB0-24AAA7FB4DA3}.Debug|Any CPU.Build.0 = Debug|Any CPU
16+
{0C51537F-585D-4516-BAB0-24AAA7FB4DA3}.Release|Any CPU.ActiveCfg = Release|Any CPU
17+
{0C51537F-585D-4516-BAB0-24AAA7FB4DA3}.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 = {40807868-7A24-43E7-982D-B090E47A94EB}
24+
EndGlobalSection
25+
EndGlobal
3.38 MB
Binary file not shown.
4.88 MB
Binary file not shown.
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
using System.Web;
2+
using System.Web.Optimization;
3+
4+
namespace TelerikMvcAppTreeViewLoadItemsAsync
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+
bundles.Add(new ScriptBundle("~/bundles/jqueryval").Include(
15+
"~/Scripts/jquery.validate*"));
16+
17+
// Use the development version of Modernizr to develop with and learn from. Then, when you're
18+
// ready for production, use the build tool at http://modernizr.com to pick only the tests you need.
19+
bundles.Add(new ScriptBundle("~/bundles/modernizr").Include(
20+
"~/Scripts/modernizr-*"));
21+
22+
bundles.Add(new ScriptBundle("~/bundles/bootstrap").Include(
23+
"~/Scripts/bootstrap.js",
24+
"~/Scripts/respond.js"));
25+
}
26+
}
27+
}
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 TelerikMvcAppTreeViewLoadItemsAsync
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 TelerikMvcAppTreeViewLoadItemsAsync
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: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
//------------------------------------------------------------------------------
2+
// <auto-generated>
3+
// This code was generated from a template.
4+
//
5+
// Manual changes to this file may cause unexpected behavior in your application.
6+
// Manual changes to this file will be overwritten if the code is regenerated.
7+
// </auto-generated>
8+
//------------------------------------------------------------------------------
9+
10+
namespace TelerikMvcAppTreeViewLoadItemsAsync
11+
{
12+
using System;
13+
using System.Collections.Generic;
14+
15+
public partial class Category
16+
{
17+
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")]
18+
public Category()
19+
{
20+
this.Products = new HashSet<Product>();
21+
}
22+
23+
public int CategoryID { get; set; }
24+
public string CategoryName { get; set; }
25+
public string Description { get; set; }
26+
public byte[] Picture { get; set; }
27+
28+
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")]
29+
public virtual ICollection<Product> Products { get; set; }
30+
}
31+
}
Lines changed: 197 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,197 @@
1+
/* #region Common styles */
2+
html,
3+
body,
4+
.body-content {
5+
height: 100%;
6+
box-sizing: border-box;
7+
}
8+
9+
html {
10+
position: relative;
11+
}
12+
13+
body {
14+
padding: 50px 0 0;
15+
}
16+
17+
.body-content {
18+
padding: 0 15px 20px;
19+
overflow: auto;
20+
}
21+
22+
/* Override the default bootstrap behavior where horizontal description lists
23+
will truncate terms that are too long to fit in the left column */
24+
.dl-horizontal dt {
25+
white-space: normal;
26+
}
27+
28+
input,
29+
select,
30+
textarea {
31+
max-width: 280px;
32+
}
33+
34+
a.k-link:focus,
35+
a.navbar-brand:focus {
36+
outline: none;
37+
text-decoration: none;
38+
}
39+
40+
.container-fluid .text-muted {
41+
margin: 20px 0;
42+
}
43+
44+
.placeholders {
45+
margin: 30px auto;
46+
}
47+
48+
.placeholder img {
49+
display: inline-block;
50+
}
51+
/* #endregion */
52+
53+
/* #region Header styles */
54+
.k-header h1 {
55+
margin: 0;
56+
padding: 30px 15px;
57+
font-size: 32px;
58+
font-weight: lighter;
59+
}
60+
61+
html .navbar-fixed-top {
62+
border: 0;
63+
}
64+
65+
/* #region Toggle button styles */
66+
html .k-rpanel-toggle {
67+
display: none;
68+
}
69+
70+
html body .btn-toggle,
71+
html body .k-primary.btn-toggle:hover,
72+
html body .btn-toggle:focus:active:not(.k-state-disabled):not([disabled]),
73+
html body .btn-toggle:focus:not(.k-state-disabled):not([disabled]) {
74+
box-shadow: none;
75+
border-radius: 0;
76+
}
77+
/* #endregion */
78+
79+
/* #region Navbar styles */
80+
.navbar-header {
81+
border-bottom: 1px solid rgba(255,255,255, 0.1);
82+
}
83+
84+
html .navbar-header .btn-toggle {
85+
padding: 8px;
86+
line-height: 20px;
87+
background: transparent;
88+
color: #fff;
89+
border: 0;
90+
float: right;
91+
margin: 7px;
92+
padding: 15px;
93+
margin: 0;
94+
}
95+
96+
html .navbar-header .btn-toggle:hover {
97+
background-color: #444;
98+
}
99+
100+
.navbar-header .k-icon.k-i-hbars {
101+
width: 24px;
102+
height: 20px;
103+
line-height: inherit;
104+
vertical-align: top;
105+
font-size: inherit;
106+
background: none;
107+
}
108+
109+
.navbar-header .k-i-hbars:before {
110+
font-size: 24px;
111+
content: "\2630";
112+
display: inline-block;
113+
}
114+
115+
/* #endregion */
116+
117+
/* #region Navbar Menu styles */
118+
.navbar .k-menu {
119+
border: 0;
120+
border-radius: 0;
121+
color: inherit;
122+
background: none;
123+
}
124+
125+
.navbar .k-menu > .k-first,
126+
.navbar .k-menu > .k-last {
127+
border-radius: 0;
128+
}
129+
130+
html .navbar .k-menu .k-item {
131+
border: 0;
132+
}
133+
134+
.navbar .k-item {
135+
color: #999999;
136+
}
137+
138+
.navbar .k-menu .k-state-hover,
139+
.navbar .k-menu .k-state-highlight,
140+
.navbar .k-menu .k-link.k-state-active,
141+
.navbar .k-menu .k-state-hover > .k-link {
142+
color: #fff;
143+
background: transparent;
144+
}
145+
146+
html .navbar .k-link {
147+
color: inherit;
148+
}
149+
150+
html body .navbar .navbar-brand {
151+
box-sizing: border-box;
152+
}
153+
154+
/* #endregion */
155+
156+
/* #region Footer styles */
157+
.footer {
158+
position: absolute;
159+
bottom: 10px;
160+
left: 30px;
161+
right: 30px;
162+
height: 75px;
163+
font-size: 0.85em;
164+
}
165+
/* #endregion */
166+
167+
/* #region custom Kendo UI styles */
168+
html .k-panelbar .k-content {
169+
padding: 1em;
170+
}
171+
172+
p .k-button {
173+
margin: 0 15px 0 0;
174+
}
175+
176+
.k-state-active .label {
177+
font-size: 1em;
178+
color: #000;
179+
}
180+
/* #endregion */
181+
182+
@media (max-width: 767px) {
183+
#responsive-panel .k-item {
184+
float: none;
185+
}
186+
187+
html .k-rpanel-toggle {
188+
display: block;
189+
}
190+
191+
.k-header h1 {
192+
margin: 0;
193+
padding: 16px 15px 14px 60px;
194+
font-size: 18px;
195+
font-weight: lighter;
196+
}
197+
}

0 commit comments

Comments
 (0)