DHTMLX Docs & Samples Explorer

Print friendly view

There is feature which allows you to preview print version of grid.

Printable view
Source
<link rel="STYLESHEET" type="text/css" href="../../codebase/dhtmlxgrid.css">
<link rel="stylesheet" type="text/css" href="../../codebase/skins/dhtmlxgrid_dhx_skyblue.css">
<script  src="../../codebase/dhtmlxcommon.js"></script>
<script  src="../../codebase/dhtmlxgrid.js"></script>
<script  src="../../codebase/ext/dhtmlxgrid_nxml.js"></script>
<script  src="../../codebase/dhtmlxgridcell.js"></script>
 
 
 
<div id="gridbox" style="width:600px;height:330px;background-color:white;"></div>
<div><a href="#" onClick="mygrid.printView()">Printable view</a></div>
<script>
mygrid = new dhtmlXGridObject('gridbox');
mygrid.setImagePath("../../codebase/imgs/");
mygrid.setSkin("dhx_skyblue");
mygrid.loadXML("../common/gridHP.xml");
</script>