Skip to content

Commit 9605476

Browse files
committed
docs: add TreeView data conditional loading example
1 parent 3db3fc6 commit 9605476

File tree

77 files changed

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

77 files changed

+48755
-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 15
4+
VisualStudioVersion = 15.0.28307.168
5+
MinimumVisualStudioVersion = 10.0.40219.1
6+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "LoadConditionaly", "LoadConditionaly\LoadConditionaly.csproj", "{300A45A4-1F4F-4E70-8DE1-C8957E3AE5B4}"
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+
{300A45A4-1F4F-4E70-8DE1-C8957E3AE5B4}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
15+
{300A45A4-1F4F-4E70-8DE1-C8957E3AE5B4}.Debug|Any CPU.Build.0 = Debug|Any CPU
16+
{300A45A4-1F4F-4E70-8DE1-C8957E3AE5B4}.Release|Any CPU.ActiveCfg = Release|Any CPU
17+
{300A45A4-1F4F-4E70-8DE1-C8957E3AE5B4}.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 = {14E6F0CE-797C-4D1F-9A48-642F122751AC}
24+
EndGlobalSection
25+
EndGlobal
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
using System.Web;
2+
using System.Web.Optimization;
3+
4+
namespace LoadConditionaly
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+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
using System.Web;
2+
using System.Web.Mvc;
3+
4+
namespace LoadConditionaly
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 LoadConditionaly
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,81 @@
1+

2+
html {
3+
position: relative;
4+
min-height: 100%;
5+
}
6+
7+
body {
8+
margin-bottom: 80px;
9+
}
10+
11+
/* #region Navbar styles */
12+
.navbar-header {
13+
border-bottom: 1px solid rgba(255,255,255, 0.1);
14+
}
15+
/* #endregion */
16+
17+
18+
/* #region Footer styles */
19+
.footer {
20+
position: absolute;
21+
bottom: 0;
22+
width: 100%;
23+
font-size: 0.85em;
24+
}
25+
/* #endregion */
26+
27+
/* #region custom Kendo UI styles */
28+
#configure {
29+
display: none;
30+
}
31+
32+
.k-panelbar .k-content {
33+
padding: 20px;
34+
}
35+
36+
p .k-button {
37+
margin: 0 15px 0 0;
38+
}
39+
40+
.k-state-active .label {
41+
font-size: 1em;
42+
}
43+
44+
/* #endregion */
45+
46+
@media (max-width: 767px) {
47+
#responsive-panel {
48+
transition: all linear .2s;
49+
}
50+
51+
#configure {
52+
display: block;
53+
float: right;
54+
}
55+
56+
.k-rpanel {
57+
width: 100%;
58+
}
59+
60+
.k-rpanel-expanded {
61+
margin-top: 1rem;
62+
}
63+
64+
.navbar-header {
65+
width: 100%;
66+
}
67+
68+
.footer {
69+
height: 60px;
70+
}
71+
72+
.k-menu .k-item,
73+
.k-menu .k-link {
74+
width: 100%;
75+
}
76+
77+
.k-menu .k-link {
78+
box-sizing: border-box;
79+
}
80+
}
81+

0 commit comments

Comments
 (0)