:: Documentation >>

cell tooltip

Sets or retrieves the tooltip text in the grid cells (cell tooltip).

Syntax

var value = obj.getCellTooltip(); 
obj.setCellTooltip(value);        

obj.onCellTooltipChanging = function(value){...}; 
obj.onCellTooltipChanged = function(value){...}; 
obj.onCellTooltipError = function(value){...}; 

Defined in

cell model

Examples

Single cell

obj.setCellTooltip("tooltip text", 0, 0); // single cell

2-d array of tooltips

var myTooltips = [
    ["tooltip 0.0", "tooltip 1.0", "tooltip 2.0"],
    ["tooltip 0.1", "tooltip 1.1", "tooltip 2.1"]
]

obj.setCellTooltip(myTooltips);

Function

var myTooltips = function(column, row){
    return "text " + column + "." + row;
}

obj.setCellTooltip(myTooltips);

See also

Grid templates: cell
Cell model: text, image, link, value, data, format, editable, state, selected
Tooltip properties: selector, header, footer, top, bottom

Comments

Tooltip Colin (3)
Tooltips in Grid? Michael (3)

Documentation:

Recent changes:

2.6.4
2.6.3
2.6.2
2.6.1
2.6.1
2.6.0
2.5.0 - 2.5.6
2.5.6
2.5.0 - 2.5.5
2.5.5