Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Anna on Nov 29, 2007 14:47
open dhtmlx forum
Multiple Images in a Cell

Is it possible to display more than 1 image in a cell? I am trying to do this in a Dhtml Tree Grid. Any info is highly appreciated. Thanks in advance.
Answer posted by Support on Nov 30, 2007 04:08
There is no way to do it with standard excell types, but you can design custom excell with any desired funcitonality.
Also you can use any of default excells ( ro for example ) and use HTML as value

<cell><![CDATA[ <img src="a1.gif"> <img src="a2.gif"> ]]></cell>
Answer posted by Dave on Jul 27, 2008 18:09
The HTML method is handy for placing a few icons into a single column, which  can then be used to initiate various actions.

Unfortunately, the image title will not display on mouseover of the images. Presumably this is because the grid is capturing or blocking the mouseover action. Disabling tooltips does not help.

Is there anyway to allow image titles to display?
Answer posted by Support on Jul 28, 2008 02:52
You can add next code, it will fully block tooltips generated by grid , and as result "title" attribute of img tags will work as expected.

grid.attachEvent("onMouseOver",function(id,ind){
    return false;
});


The event receives the column index as parameter, so it possible to modify it, so it will block grid generated tooltips only for necessary column.