JavaScript

canRowSubmit

Arguments

eobject

An object passed to the event that contains the following properties:

rowNumbernumber

The row number of the Grid row that fired the event. New record rows have negative row numbers.

Description

Fires when the user tries to submit changes to a row. If the event returns false, the action is cancelled.

Discussion

The canRowSubmit event is triggered when the user clicks the submit button for an individual row or when changes for a specific row number are submitted using the {grid.object}.submitGridPartRow method.

To prevent the user from submitting changes to a row, the event can return false. For example:

return false;

See Also