JavaScript

canRowSwitchToEditable

Arguments

eobject

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

fieldstring

The field the user double-clicked to put the row into edit mode.

newRecordRowsVisibleboolean

Indicates whether or not the new record rows are being shown. If true, new record rows are visible. Otherwise, false.

rowNumbernumber

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

Description

Fires when the user switches the row to editable mode. The Grid's Row edit style property must be set to 'edit on demand'. If the event returns false, the action is cancelled.

To prevent the user from switching a row to editable mode, the event can return false. For example:

return false;