Documentation

onBeforeEditStop

fires before stop edit command is received

void onBeforeEditStop(id id){ ... };

Parameters

ididthe item id

Example

grid.attachEvent("onBeforeEditStop", function(){ return false; });
 
grid.attachEvent("onEditorChange", function(id, value){
            this.getItem(id.row)[id.column] = value;
            this.refresh(id.row);
});;

Details

Events starting from "before" are blockable, which means that if they return false the action is blocked.

In the sample above editing is not finished when the edit stop command is received (it happens when you leave the editor body) and editing continues with setting the new value to the item and resreshing it. It is done to display the new value outside the field where editor opens.

See also

Back to top