Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Steve Schreiner on Sep 17, 2008 11:11
open dhtmlx forum
cell alt tag in a grid

In a grid, when I hover over a cell, the popup alt tag appears and shows the text of the cell. Can I turn off the popup alt tag for each cell, or all cells? And can I override the text that appears when I hover over a cell?
Answer posted by dhtmlx support on Sep 18, 2008 02:32

Use enableTooltips(list) method, where list - list of true/false values related to columns in grid
To control the content of the tootip you need to redefine getTitle method of the excell you use for the column. For example:

eXcell_img.prototype.getTitle=function(){
 return "Click to open somedetails";
}

will define constant "Click to open somedetails" as a tootip for img cell type.

Answer posted by Steve Schreiner on Sep 18, 2008 05:29
How can I get the current rowid and columnindex of the cell I am hovering over?

eXcell_txt.prototype.getTitle=function(rowid?, columnindex?){
 return "Click to open somedetails";
}