Skip to content

Commit 4e309de

Browse files
committed
Grid - Custom popup template
Adding new example for Grid - Ajax hierarchy editing using custom PopUp template
1 parent 9ab3eea commit 4e309de

File tree

76 files changed

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

76 files changed

+86326
-0
lines changed
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
2+
Microsoft Visual Studio Solution File, Format Version 11.00
3+
# Visual Studio 2010
4+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AjaxHierarchyEditing", "AjaxHierarchyEditing\AjaxHierarchyEditing.csproj", "{FD8A759D-DCB4-47EE-B732-0E0978F3D8B0}"
5+
EndProject
6+
Global
7+
GlobalSection(SolutionConfigurationPlatforms) = preSolution
8+
Debug|Any CPU = Debug|Any CPU
9+
Release|Any CPU = Release|Any CPU
10+
EndGlobalSection
11+
GlobalSection(ProjectConfigurationPlatforms) = postSolution
12+
{FD8A759D-DCB4-47EE-B732-0E0978F3D8B0}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
13+
{FD8A759D-DCB4-47EE-B732-0E0978F3D8B0}.Debug|Any CPU.Build.0 = Debug|Any CPU
14+
{FD8A759D-DCB4-47EE-B732-0E0978F3D8B0}.Release|Any CPU.ActiveCfg = Release|Any CPU
15+
{FD8A759D-DCB4-47EE-B732-0E0978F3D8B0}.Release|Any CPU.Build.0 = Release|Any CPU
16+
EndGlobalSection
17+
GlobalSection(SolutionProperties) = preSolution
18+
HideSolutionNode = FALSE
19+
EndGlobalSection
20+
EndGlobal

grid/grid-ajax-hierarchy-editing-using-custom-popup-temlpate/AjaxHierarchyEditing/AjaxHierarchyEditing.csproj

Lines changed: 298 additions & 0 deletions
Large diffs are not rendered by default.
1 MB
Binary file not shown.
3.63 MB
Binary file not shown.
3.06 MB
Binary file not shown.
Lines changed: 294 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,294 @@
1+
/*----------------------------------------------------------
2+
The base color for this template is #5c87b2. If you'd like
3+
to use a different color start by replacing all instances of
4+
#5c87b2 with your new color.
5+
----------------------------------------------------------*/
6+
body
7+
{
8+
background-color: #5c87b2;
9+
font-size: 75%;
10+
font-family: Verdana, Tahoma, Arial, "Helvetica Neue", Helvetica, Sans-Serif;
11+
margin: 0;
12+
padding: 0;
13+
color: #696969;
14+
}
15+
16+
header,
17+
footer,
18+
nav,
19+
section
20+
{
21+
display: block;
22+
}
23+
24+
/* HEADINGS
25+
----------------------------------------------------------*/
26+
h1, h2, h3, h4, h5, h6
27+
{
28+
font-size: 1.5em;
29+
color: #000;
30+
}
31+
32+
h1
33+
{
34+
font-size: 2em;
35+
padding-bottom: 0;
36+
margin-bottom: 0;
37+
}
38+
h2
39+
{
40+
padding: 0 0 10px 0;
41+
}
42+
h3
43+
{
44+
font-size: 1.2em;
45+
}
46+
h4
47+
{
48+
font-size: 1.1em;
49+
}
50+
h5, h6
51+
{
52+
font-size: 1em;
53+
}
54+
55+
a
56+
{
57+
color: #696969;
58+
}
59+
60+
li
61+
{
62+
line-height: 1.6;
63+
}
64+
65+
/* this rule styles <h2> tags that are the
66+
first child of the left and right table columns */
67+
.rightColumn > h1, .rightColumn > h2, .leftColumn > h1, .leftColumn > h2
68+
{
69+
margin-top: 0;
70+
}
71+
72+
/* PRIMARY LAYOUT ELEMENTS
73+
----------------------------------------------------------*/
74+
75+
/* you can specify a greater or lesser percentage for the
76+
page width. Or, you can specify an exact pixel width. */
77+
.page
78+
{
79+
width: 90%;
80+
margin-left: auto;
81+
margin-right: auto;
82+
}
83+
84+
header, #header
85+
{
86+
position: relative;
87+
margin-bottom: 0px;
88+
color: #000;
89+
padding: 0;
90+
}
91+
92+
header h1, #header h1
93+
{
94+
font-weight: bold;
95+
padding: 5px 0;
96+
margin: 0;
97+
color: #fff;
98+
border: none;
99+
line-height: 2em;
100+
font-size: 32px !important;
101+
}
102+
103+
#main
104+
{
105+
background: #fff;
106+
padding: 30px 30px 15px 30px;
107+
margin-bottom: 30px;
108+
_height: 1px; /* only IE6 applies CSS properties starting with an underscore */
109+
}
110+
111+
footer, #footer
112+
{
113+
color: #999;
114+
padding: 10px 0;
115+
text-align: center;
116+
line-height: normal;
117+
margin: 0;
118+
font-size: .9em;
119+
}
120+
121+
/* MENU
122+
----------------------------------------------------------*/
123+
#menu
124+
{
125+
position: relative;
126+
margin: 0;
127+
text-align: right;
128+
}
129+
130+
#menu .t-item
131+
{
132+
border-width: 0 0 0 1px;
133+
}
134+
135+
#menu .t-link
136+
{
137+
padding: 5px 20px;
138+
font-weight: bold;
139+
text-decoration: none;
140+
line-height: 1.8em;
141+
}
142+
143+
/* FORM LAYOUT ELEMENTS
144+
----------------------------------------------------------*/
145+
146+
fieldset
147+
{
148+
border:1px solid #ddd;
149+
padding:0 1.4em 1.4em 1.4em;
150+
margin:0 0 1.5em 0;
151+
}
152+
153+
legend
154+
{
155+
font-size:1.2em;
156+
font-weight: bold;
157+
}
158+
159+
textarea
160+
{
161+
min-height: 75px;
162+
}
163+
164+
input[type="text"]
165+
{
166+
border: 1px solid #CCC;
167+
}
168+
169+
input[type="password"]
170+
{
171+
border: 1px solid #CCC;
172+
}
173+
174+
/* TABLE
175+
----------------------------------------------------------*/
176+
177+
table
178+
{
179+
border: solid 1px #e8eef4;
180+
border-collapse: collapse;
181+
}
182+
183+
table td
184+
{
185+
padding: 5px;
186+
border: solid 1px #e8eef4;
187+
}
188+
189+
table th
190+
{
191+
padding: 6px 5px;
192+
text-align: left;
193+
background-color: #e8eef4;
194+
border: solid 1px #e8eef4;
195+
}
196+
197+
/* MISC
198+
----------------------------------------------------------*/
199+
.clear
200+
{
201+
clear: both;
202+
}
203+
204+
.error
205+
{
206+
color:Red;
207+
}
208+
209+
div#title
210+
{
211+
display:block;
212+
text-align:left;
213+
}
214+
215+
#logindisplay
216+
{
217+
font-size:1.1em;
218+
display:block;
219+
text-align:right;
220+
margin:10px;
221+
color:White;
222+
}
223+
224+
#logindisplay a:link
225+
{
226+
color: white;
227+
text-decoration: underline;
228+
}
229+
230+
#logindisplay a:visited
231+
{
232+
color: white;
233+
text-decoration: underline;
234+
}
235+
236+
#logindisplay a:hover
237+
{
238+
color: white;
239+
text-decoration: none;
240+
}
241+
242+
/* Styles for validation helpers
243+
-----------------------------------------------------------*/
244+
.field-validation-error
245+
{
246+
color: #ff0000;
247+
}
248+
249+
.field-validation-valid
250+
{
251+
display: none;
252+
}
253+
254+
.input-validation-error
255+
{
256+
border: 1px solid #ff0000;
257+
background-color: #ffeeee;
258+
}
259+
260+
.validation-summary-errors
261+
{
262+
font-weight: bold;
263+
color: #ff0000;
264+
}
265+
266+
.validation-summary-valid
267+
{
268+
display: none;
269+
}
270+
271+
/* Styles for editor and display helpers
272+
----------------------------------------------------------*/
273+
.display-label,
274+
.editor-label
275+
{
276+
margin: 1em 0 0 0;
277+
}
278+
279+
.display-field,
280+
.editor-field
281+
{
282+
margin:0.5em 0 0 0;
283+
}
284+
285+
286+
.text-box.multi-line
287+
{
288+
height: 6.5em;
289+
}
290+
291+
.tri-state
292+
{
293+
width: 6em;
294+
}
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
using System;
2+
using System.Collections.Generic;
3+
using System.Linq;
4+
using System.Web;
5+
using System.Web.Mvc;
6+
using AjaxHierarchyEditing.Models;
7+
8+
namespace AjaxHierarchyEditing.Controllers
9+
{
10+
public class BaseController : Controller
11+
{
12+
protected NorthwindEntities context = new NorthwindEntities();
13+
14+
}
15+
}

0 commit comments

Comments
 (0)