Tag Archives: row

Extjs, Add tooltip to grid row

The purpose of this tutorial is how to add tooltips for row grids, you can you this when the row is a text field for example.

first of all we need to tell Extjs that row need to be rendered by a custom function, on the column Model add renderer attribute :


{
  id : 'motivation',
  header : 'motivation',
  width: 200,
  dataIndex : 'motivation',
  renderer:addTooltip,

then add the addTooltip function :


function addTooltip(value, metadata, record, rowIndex, colIndex, store){
    metadata.attr = 'ext:qtip="' + value + '"';
    return value;
}