Extra Excell types
There are several eXcell types available in dhtmlxGrid:
- List
"clist"
- list of values, which is displayed as comma delimited list in cells - Calculator
"calck"
- allows you to make some math calculations - New Checkbox
"acheck"
- skinable two-state control - Image
"img"
- allow to insert image into the grid cell
</> Source
<!DOCTYPE html>
<!--pro-->
<html>
<head>
<title>Extra Excell types</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("Sales,Book Title,List,Calculator,New Checkbox,Image");
myGrid.setInitWidths("80,150,230,80,80,80");
myGrid.setColAlign("right,left,left,right,left,center");
myGrid.setColTypes("dyn,ed,clist,calck,acheck,img");
myGrid.setColSorting("int,str,str,int,str,date");
myGrid.registerCList(2,["Stephen King","John Grisham","Honore de Balzac"]);
myGrid.enableAutoWidth(true);
myGrid.enableAutoHeight(true);
myGrid.init();
myGrid.load("../common/grid_extra.xml");
}
</script>
</head>
<body onload="doOnLoad()">
<h1>Extra eXcell types</h1>
<p>There are several eXcell types available in dhtmlxGrid:
<ul>
<li>List <code>"clist"</code>
- list of values, which is displayed as comma delimited list in cells</li>
<li>Calculator <code>"calck"</code>
- allows you to make some math calculations</li>
<li>New Checkbox <code>"acheck"</code> - skinable two-state control</li>
<li>Image <code>"img"</code> - allow to insert image into the grid cell</li>
</ul>
</p>
<div id="gridbox" style="width:650px;height:350px;background-color:white;"></div>
</body>
</html>
Documentation
Check documentation to learn how to use the components and easily implement them in your applications.