Wijmo UI for the Web
endEdit Method
wijmo.grid Namespace > wijgrid type : endEdit Method
An optional parameter indicating whether changes will be rejected (true) or commited (false). The default value is false.
Finishes editing the current cell.
Syntax
$(function () {
    var returnsValue; // Type:  bool
    // Parameters
    var reject; // Type:  bool
    
    returnsValue = $(".selector").wijgrid("endEdit", reject);
});
function endEdit( 
   reject : bool
) : bool;

Parameters

reject
An optional parameter indicating whether changes will be rejected (true) or commited (false). The default value is false.

Return Value

True if the editing was finished successfully, othewise false.
Example
// endEdit is being called from within the saveChanges function
function saveChanges() {
    $("#element").wijgrid("endEdit");
}
functon cancelChanges() {
    $("#element").wijgrid("endEdit", true);
}
See Also

Reference

wijgrid type
wijgrid jQuery Widget