$(function () { // Set beforeCellEdit event handler function $(".selector").wijgrid({ beforeCellEdit : function (e, args) { } }); });
Parameters
- e
- The jQuery.Event object.
- args
- The data with this event.
$(function () { // Set beforeCellEdit event handler function $(".selector").wijgrid({ beforeCellEdit : function (e, args) { } }); });
// 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); } });