jQuery.wijmo.c1gridview Namespace > options type : afterCellEdit Event |
var options; // Type: jQuery.wijmo.c1gridview.options // Create a new c1gridview widget $(".selector").c1gridview(options); // Get a previously created c1gridview widget instance var widgetInstance; // Type: jQuery.wijmo.c1gridview widgetInstance = $(".selector").data("wijmo-c1gridview"); // Set afterCellEdit event handler function widgetInstance.option("afterCellEdit", function (e, args) { } );
// Once cell editing is complete, the function calls the destroy method to destroy the wijcombobox widget and the wijinputnumber widget which are used as the custom editors. $("#element").wijgrid({ afterCellEdit: function(e, args) { switch (args.cell.column().dataKey) { case "Position": args.cell.container().find("input").wijcombobox("destroy"); break; case "Acquired": args.cell.container().find("input").wijinputnumber("destroy"); break; } } });