-
Notifications
You must be signed in to change notification settings - Fork 0
/
36scrolling.html
42 lines (41 loc) · 1.04 KB
/
36scrolling.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
<p style="font-size:12px;">
Thanks again to Mark Williams creating this wonderfull feature - loading data while scrolling <br>
Note how the data is loaded and the requests to the server!<br>
Enjoy the feature and speed!
<table id="scrolling"></table>
<div id="pscrolling"></div>
<script src="36scrolling.js" type="text/javascript"> </script>
<br />
<div style="font-size:12px;">
<b> HTML </b>
<XMP>
...
<table id="scrolling"></table>
<div id="pscrolling"></div>
</XMP>
<b>Java Scrpt code</b>
<XMP>
jQuery("#scrolling").jqGrid({
scroll: 1,
url:'bigset.php',
datatype: "json",
height: 255,
width: 600,
colNames:['Index','Name', 'Code'],
colModel:[
{name:'item_id',index:'item_id', width:65},
{name:'item',index:'item', width:150},
{name:'item_cd',index:'item_cd', width:100}
],
rowNum:100,
mtype: "GET",
rownumbers: true,
rownumWidth: 40,
gridview: true,
pager: '#pscrolling',
sortname: 'item_id',
viewrecords: true,
sortorder: "asc",
caption: "Loading data while scrolling"
});</XMP>
</div>