DHTMLX Docs & Samples Explorer

Paging and split mode

Paginal output supports split mode

Loading

Source
<!DOCTYPE html>
<!--pro-->
<html>
<head>
	<title>Paging and split mode</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/dhtmlx.css"/>
	<script src="../../../codebase/dhtmlx.js"></script>
	
</head>

<script>
	var mygrid;
	function doOnLoad(){
		mygrid = new dhtmlXGridObject('gridbox');
		mygrid.setImagePath("../../../codebase/imgs/");
		mygrid.setHeader("Column A, Column B,Column B1,Column B2,Column B3,Column B4,Column B5");
		mygrid.setInitWidths("100,250,100,100,100,100,100")
		mygrid.setColAlign("right,left,left,left,left,left,left")
		mygrid.setColTypes("ro,ed,ro,ro,ro,ro,ro");
		mygrid.enablePaging(true,30,null,"pagingArea",true,"recinfoArea");
        mygrid.attachEvent("onXLS",function(){ document.getElementById("a_1").style.display="block"; });
        mygrid.attachEvent("onXLE",function(){ document.getElementById("a_1").style.display="none"; });
		mygrid.init();
		
        mygrid.splitAt(1);
		mygrid.setPagingSkin("bricks");
		mygrid.loadXML("php/dynscroll.php");
	}
</script>
<body onload="doOnLoad()">
	
	<h1>Paging and split mode</h1>
	<p>	Paginal output supports split mode </p>
	
    <div style="height:30px">
        <div id="a_1" ><h1 style="color:red">Loading</h1></div>
    </div>    
	<table width="600px" cellpadding="0" cellspacing="0">
		<tr>
			<td>
				<div id="recinfoArea"></div>
				<div id="gridbox" style="width:100%; height:250px; background-color:white;overflow:hidden"></div>
				<div id="pagingArea"></div>
			</td>
		</tr>
	</table>

</body>
</html>