jQuery.wijmo.c1gridview Namespace > options type : currentCellChanging 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 currentCellChanging event handler function widgetInstance.option("currentCellChanging", function (e, args) { } );
// Gets the data row bound to the current cell. $("#element").wijgrid({ currentCellChanging: function (e, args) { var rowObj = $(e.target).wijgrid("currentCell").row(); if (rowObj) { var dataItem = rowObj.data; // current data item (before the cell is changed). } } });