Categories | Question details Back To List | ||||||||
dhtmlxgrid Hi, Is it possible to add an image on a column for each row in the datagrid? Best regard, Emilie Meunier Answer posted by dhxSupport on Mar 10, 2009 02:37 You can use "img" eXcell type: mygrid.setColTypes("img"); In xml: <cell>some.gif</cell> Please see more infomation here http://dhtmlx.com/docs/products/dhtmlxGrid/doc/articles/ExCell_types_usage.html#grid_excellstypes Also any html can be stored inside CDATA in the <cell> tags: <cell><![CDATA[<img src="some.gif" />]]></cell> Answer posted by Emilie Meunier on Mar 10, 2009 05:50 Ok, is it possible to put colspan in the header? Because I want 5 columns for the header and 5 columns in the datagrid including the image. See the attachment file. Thanks, Emilie Attachments (1)
Answer posted by dhxSupport on Mar 10, 2009 06:53 You can colspan header with #cspan command: mygrid.setHeader("General>Parcs,#cspan,#cspan,#cspan); mygrid.attachHeader("Nom,Ancient nom,Creation,Modification"); Answer posted by Emilie Meunier on Mar 10, 2009 07:54 Thanks for the sample. Is it possible to use movecolumn instead of using colspan in the header? Can I use getColumnId to move column instead of index? |