Assuming you already have the data (xml, json ...) you could have hidden values in a column and used cellattr to indicate the value of each column.
For example if you have three columns:
//tooltip obtained from hidden column for the first column
{
name : 'title',
index : 'title',
width : '20%',
align : 'center',
sorttype : false,
sortable : false,
cellattr: function (rowId, cellValue, rowObject) {
return ' title="' + $(rowObject).find('cell:eq(3)').text() + '"';
}
},
//default tooltip obtained from hidden column
{
name : 'subtitle',
index : 'subtitle',
width : '20%',
align : 'center',
sorttype : false,
sortable : false,
cellattr: function (rowId, cellValue, rowObject) {
return ' title="' + $(rowObject).find('cell:eq(4)').text() + '"';
}
},
//here you can set as in the column subtitle or put the default tooltip that you want
{
name : 'subtitle2',
index : 'subtitle2',
width : '20%',
align : 'center',
sorttype : false,
sortable : false,
cellattr: function (rowId, cellValue, rowObject) {
return ' title=" My default tooltip "';
}
},
//hidden columns
{
name : 'hiddenColumn1',
index : 'hiddenColumn1',
hidden: true,
},
{
name : 'hiddenColumn2',
index : 'hiddenColumn2',
hidden: true,
},