Page Menu
Home
Code
Search
Configure Global Search
Log In
Files
F884745
test_grid_programmatic.html
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Subscribers
None
test_grid_programmatic.html
View Options
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<
html
>
<
head
>
<
title
>
Test dojox.Grid Programmatic Instantiation
</
title
>
<
meta
http-equiv
=
"Content-Type"
content
=
"text/html; charset=utf-8"
></
meta
>
<
style
type
=
"text/css"
>
@
import
"../../../dojo/resources/dojo.css"
;
@
import
"../_grid/tundraGrid.css"
;
.
heading
{
font-weight
:
bold
;
padding-bottom
:
0.25
em
;
}
#
grid
{
border
:
1
px
solid
#333
;
width
:
50
em
;
height
:
30
em
;
}
</
style
>
<
script
type
=
"text/javascript"
src
=
"../../../dojo/dojo.js"
djConfig
=
"isDebug:false, debugAtAllCosts: false, parseOnLoad: true"
></
script
>
<
script
type
=
"text/javascript"
>
dojo
.
require
(
"dojox.grid.Grid"
);
dojo
.
require
(
"dojox.grid._data.model"
);
dojo
.
require
(
"dojo.parser"
);
</
script
>
<
script
type
=
"text/javascript"
src
=
"support/test_data.js"
></
script
>
<
script
type
=
"text/javascript"
>
dojo
.
addOnLoad
(
function
(){
// a grid view is a group of columns
var
view1
=
{
cells
:
[
[
{
name
:
'Column 0'
},
{
name
:
'Column 1'
},
{
name
:
'Column 2'
},
{
name
:
'Column 3'
,
width
:
"150px"
},
{
name
:
'Column 4'
}
],
[
{
name
:
'Column 5'
},
{
name
:
'Column 6'
},
{
name
:
'Column 7'
},
{
name
:
'Column 8'
,
field
:
3
,
colSpan
:
2
}
]
]
};
// a grid layout is an array of views.
var
layout
=
[
view1
];
var
grid
=
new
dojox
.
Grid
({
"id"
:
"grid"
,
"model"
:
model
,
"structure"
:
layout
});
dojo
.
byId
(
"gridContainer"
).
appendChild
(
grid
.
domNode
);
grid
.
render
();
});
</
script
>
</
head
>
<
body
class
=
"tundra"
>
<
div
class
=
"heading"
>
dojox.Grid Programmatic Instantiation Test
</
div
>
<
div
id
=
"gridContainer"
></
div
>
</
body
>
</
html
>
File Metadata
Details
Attached
Mime Type
text/html
Expires
Sun, Apr 6, 10:53 (2 w, 13 h ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
26770
Default Alt Text
test_grid_programmatic.html (1 KB)
Attached To
rZEDHG ZedLegacy
Event Timeline
Log In to Comment