Wijmo UI for the Web
currentCellChanging Event
The jQuery.Event object.
The data with this event.
The currentCellChanging event handler is called before the cell is changed. You can use this event to get a selected row or column or to get a data row bound to the current cell. This event is cancellable.
Syntax
Javascript (Usage) 
var instance; // Type: options
instance.currentCellChanging = function(e, args) { };
Javascript (Specification) 
currentCellChanging = function ( 
   e : Object,
   args : ICurrentCellChangingEventArgs
) { };

Parameters

e
The jQuery.Event object.
args
The data with this event.
Example
// 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).
        }
    }
});
Remarks
You can bind to the event either by type or by name. Bind to the event by name: $("#element").wijgrid({ currentCellChanging: function (e, args) { // some code here }}); Bind to the event by type: $("#element").bind("wijgridcurrentcellchanging", function (e, args) { // some code here });

See Also

Reference

options type

 

 


© 2013 All Rights Reserved.

Send comments on this topic.