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

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
var instance; // Type: wijmo.grid.IWijgridOptions;
var value; // Type: any
value = instance.beforeCellEdit;
var beforeCellEdit : any;
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

IWijgridOptions Interface