--------------------------------------test.js---------------------------------------
function onloadGrid(){
mygrid = new dhtmlXGridObject(‘gridbox’);
mygrid.setImagePath(getContextPath() + “/images/dhtmlxGrid/”);
mygrid.setHeader(“col0,col1,col2”);
mygrid.setInitWidthsP(“30,30,*”);
mygrid.setColAlign(“center,center,center”);
mygrid.setColTypes(“ro,ro,ro”);
mygrid.setColSorting(“str,str,str”);
mygrid.init();
mygrid.loadXML(getContextPath() + “/test.xml”);
}
-------------------------------------------------------------------------------------
--------------------------------------test.xml--------------------------------------
<?xml version="1.0" encoding="UTF-8"?>
cell00
cell01
cell02
cell10
cell11
cell12
----------------------------------------------------------------------------------------
Grid doesnt support cell@color attribute ( this value accible as cell attribute , but not mapped to the style.color property )
You can use “style” or “class” attribute of cell tag to set related css style string or name of css class with necessary rules