ParamQuery grid support forum
General Category => Help for ParamQuery Pro => Topic started by: mshapiro on August 20, 2014, 05:01:39 am
-
I am attempting to set tooltip text on all the cells in one column in the grid. I am using the render callback on that column and the jQuery UI tooltip widget, but I haven't been able to get it to work. Is this the correct place to do this? Some sample code would be appreciated. Thanks.
-
column.render is the right place to define title for tooltip.
render: function (ui) {
var cellData = ui.cellData;
return "<div title=\"" + cellData + "\">" + cellData + "</div>";
}
and to initialize jQueryUI tooltip, write the following code in jQuery.ready()
$(document).tooltip();
Example: (Please note this example is for basic version but basic idea for tooltip remains the same)
http://jsfiddle.net/paramquery/L2ov1suo/
-
Than you. This is exactly what I was looking for.