Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Vanamali on Jan 06, 2010 08:17
open dhtmlx forum
How to write custom tooltips in DHTMLXGrid

I am using DHTMLXGrid Pro version. I would like to have tooltip based on the column. For instance: 1st Column should have tooltip "Here is the first column" and 2nd column should have "Hi this is second col". How could I achieve this?

I tried like
    grid.attachEvent("onMouseOver",grid_onMouseOver);
function grid_onMouseOver(id,ind) {
    grid.cells(id,ind).title='Test';
    return true;
}

But this does not work. Hoping for the solution at the earliest possible.

Regards
Vanamali
pvanamali@virtusa.com or ylaimali@gmail.com
Answer posted by Alex (support) on Jan 11, 2010 04:51

You can try to use the following approach

grid.attachEvent("onMouseOver",grid_onMouseOver);

function grid_onMouseOver(id,ind) {
  this.cells(id,ind).cell.title = 'The index of this column is '+ind;
  return false;
}