Hi PQ,
In the render function for a column, I need code that will show a jQuery dialog on cell mouseover.
I have this (doesn't work due to promoToolTip() function being out of scope):
render: function ( ui ) {
var oRowData = ui.rowData;
var oDataIdx = ui.dataIndx;
var strEmpCode = oRowData["EmpCode"];
var strCellValue = "";
if (oRowData[oDataIdx] == "Merit Promotion") {
strCellValue = "<a href=\"#\" onmouseover=\"promoToolTip('" + strEmpCode + "');\" onclick=\"return false;\">Merit Promotion</a>";
}
else
strCellValue = "Merit Promotion";
return strCellValue;
}
Instead I need to bind the call to promoToolTip to the cell's mouseover event using jQuery.
How do I do that?
Cheers,
Geoff