Wijmo UI for the Web
beforeCellEdit Event
wijmo.grid.wijgrid Namespace > options type : beforeCellEdit Event
The jQuery.Event object.
The data with this event.
The beforeCellEdit event handler is a function that is called before a cell enters edit mode. The beforeCellEdit event handler assists you in appending a widget, data, or other item to a wijgrid's cells before the cells enter edit mode. This event is cancellable if the editigMode options is set to "cell".
Syntax
$(function () {
    // Set beforeCellEdit event handler function
    $(".selector").wijgrid({
        beforeCellEdit : function (e, args) {
     
        }
    });
});
beforeCellEdit = function ( 
   e : Object,
   args : IBeforeCellEditEventArgs
) { };

Parameters

e
The jQuery.Event object.
args
The data with this event.
Example
// Allow the user to change the price only if the product hasn't been discontinued:
$("#element").wijgrid({
    beforeCellEdit: function(e, args) {
        return !((args.cell.column().dataKey === "Price") && args.cell.row().data.Discontinued);
    }
});
Remarks
You can bind to the event either by type or by name. Bind to the event by name: $("#element").wijgrid({ beforeCellEdit: function (e, args) { // some code here }}); Bind to the event by type: $("#element").bind("wijgridbeforecelledit", function (e, args) { // some code here });
See Also

Reference

options type
wijgrid jQuery Widget