Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Denis on Feb 25, 2009 10:31
open dhtmlx forum
div container / z-index / grid + layout

How can I get a div container to display on top of the layout (and grid) rather than inside the grid cell?

For example, onmouseover text in a cell the div container is displayed on top of the layout/grid; not confined to the cell size.

Thank you.

Denis
Answer posted by Alex (support) on Feb 26, 2009 03:36

Grid provides onMouseOver event handler. The third pamather of the function is event object, so you can get the position of the container. z-index of the container should be more than 2000 in order to be shown above the layout.

grid.attachEvent("onMouseOver", showCustomTooltip);

function showCustomTooltip(id,index,ev){

/*your code here*/

return false

}