Paginal Output
In the sample below number of rows per page is set to 10 and number of pages per group is set to 3:
</> Source
<!DOCTYPE html>
<!--pro-->
<html>
<head>
<title>Paginal Output</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=edge"/>
<link rel="stylesheet" type="text/css" href="../../../codebase/fonts/font_roboto/roboto.css"/>
<link rel="stylesheet" type="text/css" href="../../../codebase/dhtmlx.css"/>
<script src="../../../codebase/dhtmlx.js"></script>
<script>
var myGrid;
function doOnLoad(){
myGrid = new dhtmlXGridObject('gridbox');
myGrid.setImagePath("../../../codebase/imgs/");
myGrid.setHeader("Column A, Column B");
myGrid.setInitWidths("300,*");
myGrid.setColAlign("left,left");
myGrid.setColTypes("ro,ed");
myGrid.setColSorting("str,str");
myGrid.enablePaging(true,10,3,"pagingArea",true,"recinfoArea");
myGrid.enableAutoHeight(true);
myGrid.init();
myGrid.load("../common/dynscroll.xml");
}
</script>
</head>
<body onLoad="doOnLoad()">
<h1>Paginal Output</h1>
<p>
In the sample below number of rows per page is set to 10 and number of pages per group is set to 3:<br>
</p>
<table width="500">
<tr>
<td id="recinfoArea"></td>
</tr>
<tr>
<td>
<div id="gridbox" style="widht:100%; height:400px; background-color:white;overflow:hidden"></div>
</td>
</tr>
<tr>
<td id="pagingArea"></td>
</tr>
</table>
</body>
</html>
Documentation
Check documentation to learn how to use the components and easily implement them in your applications.