Wijmo UI for the Web
rowStyleFormatter Option
wijmo.grid.wijgrid Namespace > options type : rowStyleFormatter Option

Function used for styling rows in wijgrid.

Syntax
$(function () {
    
    // Get value
    var returnsValue; // Type:  any
    returnsValue = $(".selector").wijgrid("option", "rowStyleFormatter");
    
    // Set value
    var newValue; // Type:  any
    $(".selector").wijgrid("option", "rowStyleFormatter", newValue);
        
});
var rowStyleFormatter : any;
Example

// Make text of the alternating rows italic.
        $("#demo").wijgrid({
            data: [
                [0, "Nancy"], [1, "Susan"], [2, "Alice"], [3, "Kate"]
            ],
            rowStyleFormatter: function (args) {
                if ((args.state & wijmo.grid.renderState.rendering) && (args.type & wijmo.grid.rowType.dataAlt)) {
                    args.$rows.find("td").css("font-style", "italic");
                }
            }
        });
// Make text of the alternating rows italic.
$("#demo").wijgrid({
    data: [
        [0, "Nancy"], [1, "Susan"], [2, "Alice"], [3, "Kate"]
    ],
    rowStyleFormatter: function (args) {
        if ((args.state & wijmo.grid.renderState.rendering) && (args.type & wijmo.grid.rowType.dataAlt)) {
            args.$rows.find("td").css("font-style", "italic");
        }
    }
});
Remarks

See Also

Reference

options type
wijgrid jQuery Widget