A class holding data and functions associated with a batch editing command.
Definition
Namespace:Telerik.Web.UI
Assembly:Telerik.Web.UI.dll
Syntax:
public class GridBatchEditingCommand
Inheritance: objectGridBatchEditingCommand
Inherited Members
Constructors
Initializes a new instance of the GridBatchEditingCommand class for the specified GridTableView and data item.
public GridBatchEditingCommand(GridTableView ownerTableView, GridDataItem dataItem, GridBatchEditingCommandType type)
The GridTableView owning the batch editing command.
dataItemGridDataItemThe GridDataItem that the command will operate on. Can be null for insert operations.
typeGridBatchEditingCommandTypeThe GridBatchEditingCommandType indicating whether this is an insert, update or delete command.
Properties
Set to true to cancel the default command execution.
public bool Canceled { get; set; }
Gets the GridDataItem object which the command will operate on. Note that the value could be null if the Type equals GridBatchEditingCommandType.Insert.
public GridDataItem Item { get; }
Gets the owner GridTableView.
Gets the type of the command determining if the current operation is Insert, Update or Delete operation.
public virtual GridBatchEditingCommandType Type { get; }