-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
98 lines (95 loc) · 4.13 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta charset="utf-8" />
<link href="//cdn-na.infragistics.com/jquery/20132/latest/css/themes/infragistics/infragistics.theme.css" rel="stylesheet" />
<link href="//cdn-na.infragistics.com/jquery/20132/latest/css/structure/infragistics.css" rel="stylesheet" />
<link href="//netdna.bootstrapcdn.com/bootstrap/3.1.1/css/bootstrap.min.css" rel="stylesheet" />
<style>
body {
padding-top: 1.5em;
}
h1 {
font-size: 4vw;
}
</style>
</head>
<body class="container">
<a href="http://igniteui.com" target="_blank"><img src="http://infragistics-blogs.github.io/github-assets/logos/igniteui.png" alt="Ignite UI" title="Ignite UI" class="img-responsive" /></a>
<h1>igGrid Responsive & Touch Features</h1>
<table id="grid"></table>
<script src="//modernizr.com/downloads/modernizr-latest.js"></script>
<script src="//code.jquery.com/jquery-1.9.1.min.js"></script>
<script src="//code.jquery.com/ui/1.10.3/jquery-ui.min.js"></script>
<script src="//cdn-na.infragistics.com/jquery/20132/latest/js/infragistics.core.js"></script>
<script src="//cdn-na.infragistics.com/jquery/20132/latest/js/infragistics.lob.js"></script>
<script src="//igniteui.com/data-files/northwind.js"></script>
<script>
$(function () {
$('#grid').igGrid({
primaryKey: 'EmployeeID',
width: '100%',
autoGenerateColumns: false,
columns: [
{ headerText: 'Employee ID', key: 'EmployeeID', dataType: 'number' },
{ headerText: 'First Name', key: 'FirstName', dataType: 'string' },
{ headerText: 'Last Name', key: 'LastName', dataType: 'string' },
{ headerText: 'Title', key: 'Title', dataType: 'string' }
],
dataSource: northwind,
responseDataKey: 'results',
features: [
{
name: 'Responsive',
columnSettings: [
{
columnKey: 'EmployeeID',
classes: 'hidden-sm hidden-xs'
},
{
columnKey: 'Title',
classes: 'hidden-xs'
}
]
}, // responsive
{
name: 'Sorting',
type: 'local',
mode: 'multi'
}, // sorting
{
name: 'Filtering',
type: 'local',
mode: 'advanced'
}, // filtering
{
name: 'Hiding'
}, // hiding
{
name: 'ColumnMoving'
}, // column moving
{
name: 'Selection',
multipleSelection: true,
mode: 'cell',
touchDragSelect: true
}, // selection
{
name: 'Updating',
enableAddRow: true,
enableDeleteRow: true,
editMode: 'cell',
columnSettings: [
{
columnKey: 'EmployeeID',
editorOptions: { type: 'numeric', disabled: true}
},
]
} // updating
]
});
});
</script>
</body>
</html>