wijmo.grid.wijgrid Namespace > options type : beforeCellEdit Event |
Javascript (Usage) | |
---|---|
$(function () { // Set beforeCellEdit event handler function $(".selector").wijgrid({ beforeCellEdit : function (e, args) { } }); }); |
Javascript (Specification) | |
---|---|
beforeCellEdit = function ( e : Object, args : IBeforeCellEditEventArgs ) { }; |
// 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); } });