Categories | Question details Back To List | ||
what cann't change the forecolor(the color of the word in grid's cell)? --------------------------------------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"?> <rows total_count="2" pos="0"> <row id="0"> <cell color="#FF1493" bgColor="#000000">cell00</cell> <cell color="#FF1493" bgColor="#000000">cell01</cell> <cell color="#FF1493" bgColor="#000000">cell02</cell> </row> <row id="1"> <cell color="#FF1493" bgColor="#000000">cell10</cell> <cell color="#FF1493" bgColor="#000000">cell11</cell> <cell color="#FF1493" bgColor="#000000">cell12</cell> </row> </rows> ---------------------------------------------------------------------------------------- Answer posted by Support on Oct 13, 2008 02:04 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 |