Wijmo UI for the Web
invalidCellValue Event
wijmo.grid.wijgrid Namespace > options type : invalidCellValue Event
The jQuery.Event object.
The data with this event.
The invalidCellValue event handler is a function called when a cell needs to start updating but the cell value is invalid. So if the value in a wijgrid cell cannot be converted to the column target type, the invalidCellValue event is raised.
Syntax
$(function () {
    // Set invalidCellValue event handler function
    $(".selector").wijgrid({
        invalidCellValue : function (e, args) {
     
        }
    });
});
invalidCellValue = function ( 
   e : Object,
   args : IInvalidCellValueEventArgs
) { };

Parameters

e
The jQuery.Event object.
args
The data with this event.
Example
// Adds a style to the cell if the value entered is invalid
$("#element").wijgrid({
    invalidCellValue: function (e, args) {
        $(args.cell.container()).addClass("ui-state-error");
    }
});
Remarks
You can bind to the event either by type or by name. Bind to the event by name: $("#element").wijgrid({ invalidCellValue: function (e, args) { // some code here }}); Bind to the event by type: $("#element").bind("wijgridinvalidcellvalue", function (e, args) { // some code here });
See Also

Reference

options type
wijgrid jQuery Widget