Wijmo UI for the Web
cellStyleFormatter Field
wijmo.grid Namespace > IWijgridOptions Interface : cellStyleFormatter Field

This function is called each time wijgrid needs to change cell appearence, for example, when the current cell position is changed or cell is selected. Can be used for customization of cell style depending on its state.

Syntax
var instance; // Type: wijmo.grid.IWijgridOptions;
var value; // Type: any
value = instance.cellStyleFormatter;
var cellStyleFormatter : any;
Example
// Make the text of the current cell italic.
$("#element").wijgrid({
    highlightCurrentCell: true,
    cellStyleFormatter: function(args) {
        if ((args.row.type & wijmo.grid.rowType.data)) {
            if (args.state & wijmo.grid.renderState.current) {
                args.$cell.css("font-style", "italic");
            } else {
                args.$cell.css("font-style", "normal");
            }
        }
    }
});
Remarks
The args.state parameters equal to wijmo.grid.renderState.rendering means that the cell is being created, at this moment you can apply general formatting to it indepentant of any particular state, like "current" or "selected".
See Also

Reference

IWijgridOptions Interface