DHTMLX Docs & Samples Explorer

Per cell rules

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/dhtmlxgridcell.js'></script>
<script src="../../codebase/ext/dhtmlxgrid_validation.js" type="text/javascript" charset="utf-8"></script>
 
<div id="message" style="height:40px; font-weight:bold; color:red;"></div>
<div id="gridbox" style="width:350px;height:250px;background-color:white;overflow:hidden"></div>
<script>
mygrid = new dhtmlXGridObject('gridbox');
mygrid.setImagePath('../../codebase/imgs/');
mygrid.setHeader("Column A, Column B");
mygrid.setInitWidths("100,250");
mygrid.setColAlign("right,left");
mygrid.setColTypes("ed,ed");
mygrid.enableValidation(true, true);
mygrid.setColSorting("int,str");
mygrid.enableMultiselect(true);
mygrid.init();
mygrid.setSkin("dhx_skyblue");
mygrid.enableAutoHeight(true);
mygrid.loadXML("../common/vtypes.xml");
</script>