Home › Forums › Guriddo jqGrid JS › Discussion › Tooltip and title attribute
Hi Tony,
we would like to display a message when the user hover the cursor over a cell. We initialize the title attribute, but the jqgrid erase it.
How can we do that ?
Thanks
How do you add a title? jqGrid uses onmouseout event and delete the title and add a title in onmouseover event (content of the table cell).
Regards Tony
Here is the code to add a title :
var ids = $(“#gridPlanning”).getDataIDs();
for(var i=0;i<ids.length;i++)
{
$(“#”+ids+” td:nth-child(8)”).setCaption($(“#”+ids+” td:nth-child(17)”).text());
}
we use the content of hidden column 17 as title for column 8.
We try to put the title in the content of the cell
But jqGrid delete the title too Have you a solution ? Or is this can be an evolution ?
Currently this is not possible, since jqGrid automaticalli add and tooltip (with the text of the cell content) and delete them if the user move the mouse out.
To do this we should disable this behaviour.
Regards
Stay connected with us in your favorite flavor!
Copyright 2014 TriRand LtdAll Rights ReservedRSS