New to Telerik UI for ASP.NET AJAX? Start a free 30-day trial

A class holding data and functions associated with a batch editing command.

Definition

Namespace:Telerik.Web.UI

Assembly:Telerik.Web.UI.dll

Syntax:

C#
public class GridBatchEditingCommand

Inheritance: objectGridBatchEditingCommand

Inherited Members object.ToString()object.Equals(object)object.Equals(object, object)object.ReferenceEquals(object, object)object.GetHashCode()object.GetType()object.MemberwiseClone()...

Constructors

Initializes a new instance of the GridBatchEditingCommand class for the specified GridTableView and data item.

C#
public GridBatchEditingCommand(GridTableView ownerTableView, GridDataItem dataItem, GridBatchEditingCommandType type)
Parameters:ownerTableViewGridTableView

The GridTableView owning the batch editing command.

dataItemGridDataItem

The GridDataItem that the command will operate on. Can be null for insert operations.

typeGridBatchEditingCommandType

The GridBatchEditingCommandType indicating whether this is an insert, update or delete command.

Properties

C#
protected virtual List<object> Arguments { get; }

Set to true to cancel the default command execution.

C#
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.

C#
public GridDataItem Item { get; }

Gets a Hashtable with the new values which represents a merge between the OldValues and the newly entered data.

C#
public Hashtable NewValues { get; }

Gets a Hashtable with the old values.

C#
public Hashtable OldValues { get; }

Gets the owner GridTableView.

C#
public GridTableView OwnerTableView { get; }
Property Value:

The owner GridTableView.

Gets the type of the command determining if the current operation is Insert, Update or Delete operation.

C#
public virtual GridBatchEditingCommandType Type { get; }

Methods

Executes the command and depending on the Type and NewValues properties it performs different operations.

C#
public virtual void Execute()