Wijmo UI for the Web
currentCellChanged Event
The jQuery.Event object.
The currentCellChanged event handler is called after the current cell is changed.
Syntax
Javascript (Usage) 
$(function () {
    // Set currentCellChanged event handler function
    $(".selector").wijgrid({
        currentCellChanged : function (e) {
     
        }
    });
});
Javascript (Specification) 
currentCellChanged = function ( 
   e : Object
) { };

Parameters

e
The jQuery.Event object.
Example
// Gets the data row bound to the current cell.
$("#element").wijgrid({
    currentCellChanged: function (e, args) {
        var rowObj = $(e.target).wijgrid("currentCell").row();
        if (rowObj) {        
            var dataItem = rowObj.data; // current data item (after 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({ currentCellChanged: function (e) { // some code here }}); Bind to the event by type: $("#element").bind("wijgridcurrentcellchanged", function (e) { // some code here });

See Also

Reference

options type
wijgrid jQuery Widget

 

 


© 2013 All Rights Reserved.

Send comments on this topic.