I’m trying to format column headers in the grid according to examples I’ve found, but it’s not working.
I’m basing this on the example here http://www.jqwidgets.com/jquery-grid-with-column-tooltips/ (which also doesn’t work for me).
I want to set the color of the background of a certain column, and I added a coloredred callback to the column definition like so:
{ text: 'Part Number', datafield: 'PartNumber', editable: false, width: 80, rendered: coloredred },
I created a function to match, like this:
var coloredred = function (element) { $(element).addClass('Red');}
It has no effect, and when I add console.log(element) after the addClass function I get:
<a style="margin-top: 22px; float: left;" href="#">Part Number</a>
Clearly the class isn’t being added. What am I doing wrong?