Reputation: 5298
When I hover over a particular cell value, the hover value is same as the cell value. Can I change the hover text different from the cell value?
Thanks
Upvotes: 3
Views: 15689
Reputation: 1
Set you after grid load this code..
$("#PersonelGrid_DefViewMainPage").attr("title", "This is my Title.");
it's work..
Upvotes: 0
Reputation: 129
This can achieve by 2 steps
title:false
write a global function and attached as a formatter in colModel
var changeTitle = function(cellVal, options, rowObject){<br/>
return "<div title='This is the cell value " + cellVal + "'>" + cellVal + "</div>";<br/>
}
colModel:[
{...},<br/>
{name:'priorityFlag', index:'priorityFlag', width:40, align:"center", formatter: changeTitle },<br/>
{...}]
There you go!...
Upvotes: 1
Reputation: 3646
You can use cellattr attribute in the colModel for a column to set custom tooltip. For example
cellattr: function () { return ' title="my custom fixed tooltip for the column"'; }
Upvotes: 5