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

Initially only the [Edit] button is shown. When it is pressed, the [Update] and [Cancel] appear at its place and the cells on this row become editable.

Definition

Namespace:Telerik.Web.UI

Assembly:Telerik.Web.UI.dll

Syntax:

C#
public class GridEditCommandColumn : GridColumn, IStateManager, IComparable

Inheritance: objectGridColumnGridEditCommandColumn

Implements: IComparableIStateManager

Inherited Members GridColumn.Initialize()GridColumn.InitializeCell(TableCell, int, GridItem)GridColumn.GetFilterDataField()GridColumn.SupportsFiltering()GridColumn.ShouldSerializeFilterImageUrl()GridColumn.ShouldSerializeSortAscImageUrl()GridColumn.ShouldSerializeSortDescImageUrl()GridColumn.RefreshCurrentFilterValue(GridFilteringItem, string)GridColumn.RefreshCurrentFilterValue(GridFilteringItem)GridColumn.SetCurrentFilterValueToControl(TableCell)GridColumn.GetCurrentFilterValueFromControl(TableCell)GridColumn.EvaluateFilterExpression(GridFilteringItem)GridColumn.EvaluateFilterExpression()GridColumn.FunctionTakesNoArguments(GridKnownFunction)GridColumn.SetupFilterControls(TableCell)GridColumn.GetFilterFunctionsList(GridFilterListOptions, ArrayList)GridColumn.PrepareCell(TableCell, GridItem)GridColumn.LoadViewState(object)GridColumn.OnColumnChanged()GridColumn.SaveViewState()GridColumn.TrackViewState()GridColumn.ResetCurrentFilterValue(GridFilteringItem)GridColumn.ResetCurrentFilterValue()GridColumn.GetDefaultGroupByExpression()GridColumn.IsUniqueName(string)GridColumn.GenerateUniqueNameBase(string)GridColumn.TrySetOnClientClickScript(Control, GridItem, string, params string[])GridColumn.UpdateUniqueNameIfDefault(string)GridColumn.IsBoundToFieldName(string)GridColumn.GetCustomPropertyDataFields(object)GridColumn.HeaderTooltipGridColumn.HeaderAbbrGridColumn.HeaderAxisGridColumn.SortedBackColorGridColumn.CurrentFilterValueGridColumn.AndCurrentFilterValueGridColumn.ColumnGroupNameGridColumn.SelectedGridColumn.SortableGridColumn.CurrentFilterFunctionGridColumn.AndCurrentFilterFunctionGridColumn.FilterDelayGridColumn.ExportableGridColumn.EnableHeaderContextMenuGridColumn.ShowFilterIconGridColumn.FilterListOptionsGridColumn.AutoPostBackOnFilterGridColumn.FilterImageToolTipGridColumn.FilterControlToolTipGridColumn.EditorControlToolTipGridColumn.FilterImageUrlGridColumn.SortAscImageUrlGridColumn.SortDescImageUrlGridColumn.DataTypeNameGridColumn.ListOfFilterValuesGridColumn.FilterTemplateGridColumn.TableViewSpecificStateGridColumn.DesignModeGridColumn.FooterStyleGridColumn.FooterTextGridColumn.HeaderImageUrlGridColumn.HeaderStyleGridColumn.HeaderTextGridColumn.IsTrackingViewStateGridColumn.ItemStyleGridColumn.OwnerGridColumn.SortExpressionGridColumn.GroupByExpressionGridColumn.ViewStateGridColumn.ShowSortIconGridColumn.ShowNoSortIconGridColumn.VisibleGridColumn.DisplayGridColumn.OwnerIDGridColumn.OwnerGridIDGridColumn.ResizableGridColumn.ReorderableGridColumn.ColumnTypeGridColumn.HeaderButtonTypeGridColumn.OrderIndexGridColumn.IsEditableGridColumn.IsDefaultUniqueNameGridColumn.EditFormColumnIndexGridColumn.EditFormHeaderTextFormatGridColumn.DataTypeGridColumn.FilterControlWidthGridColumn.FilterControlAltTextGridColumn.FilterCheckListWebServiceMethodGridColumn.FilterCheckListEnableLoadOnDemandobject.ToString()object.Equals(object)object.Equals(object, object)object.ReferenceEquals(object, object)object.GetHashCode()object.GetType()object.MemberwiseClone()...

Example:

            <radg:GridEditCommandColumn ButtonType="ImageButton" UpdateImageUrl="..\Img\Update.gif"
EditImageUrl="..\Img\Edit.gif" InsertImageUrl="..\Img\Insert.gif"
CancelImageUrl="..\Img\Cancel.gif" UniqueName="EditCommandColumn">
</radg:GridEditCommandColumn>

Constructors

C#
public GridEditCommandColumn()

Properties

Gets or sets a value indicating what type of buttons will be used in the GridEditCommandColumn items.

C#
public virtual GridButtonColumnType ButtonType { get; set; }

A string, representing the url path to the image that will be used instead of the default cancel linkbutton, in the EditForm.

C#
public virtual string CancelImageUrl { get; set; }
Property Value:

A string, representing the url path to the image that will be used instead of the default cancel linkbutton, in the EditForm.

Gets or sets a string representing the text that will be used for the Cancel button, in the Edit/Insert form.

C#
public virtual string CancelText { get; set; }
Property Value:

string, representing the text that will be used for the Cancel button.

Gets or sets the URL for the image that will be used to fire the Edit command. This property should be used in conjunction with ButtonType set to ImageButton.

C#
public virtual string EditImageUrl { get; set; }
Property Value:

A string, representing the URL of the image that is used.

Gets or sets a string, representing the text of the edit linkbutton, which is located in the GridEditCommandColumn, and which will replace the default "Edit" text.

C#
public virtual string EditText { get; set; }
Property Value:

string, representing the text that will be used for the Edit button.

C#
public override bool Groupable { get; set; }

Overrides: GridColumn.Groupable

Gets or sets the URL for the image that will be used to fire the Insert command. This property should be used in conjunction with ButtonType set to ImageButton.

C#
public virtual string InsertImageUrl { get; set; }
Property Value:

string, representing the URL of the image that is used.

Gets or sets a string, representing a text, which will be displayed instead of the default "Insert" text for the GridEditFormInsertItem item.

C#
public virtual string InsertText { get; set; }
Property Value:

A string, representing the text that will be used for the Insert button.

Gets the value determining if the column is selectable.

C#
public override bool Selectable { get; }
Property Value:

The value determining if the column is selectable.

Overrides: GridColumn.Selectable

Gets or sets a unique name for this column. The unique name can be used to reference particular columns, or cells within grid rows.

C#
[Browsable(true)]
public override string UniqueName { get; set; }
Property Value:

A string, representing the Unique name of the column.

Overrides: GridColumn.UniqueName

Gets or sets the URL for the image that will be used to fire the Update command. This property should be used in conjunction with ButtonType set to ImageButton.

C#
public virtual string UpdateImageUrl { get; set; }
Property Value:

string, representing the URL of the image that is used.

Gets or sets a string, representing the text that will be used for the Update button.

C#
public virtual string UpdateText { get; set; }
Property Value:

A string, representing the text that will be used for the Update button.

Methods

Creates a copy of the current column.

C#
public override GridColumn Clone()
Returns:

GridColumn

Overrides: GridColumn.Clone()

Note: When implementing/overriding this method be sure to call the base member or call CopyBaseProperties to be sure that all base properties will be copied accordingly

C#
protected override void CopyBaseProperties(GridColumn fromColumn)
Parameters:fromColumnGridColumn

Overrides: GridColumn.CopyBaseProperties(GridColumn)

C#
protected override string GenerateUniqueName()
Returns:

string

Overrides: GridColumn.GenerateUniqueName()

C#
protected virtual void SetValidationGroup(IButtonControl button)
Parameters:buttonIButtonControl
C#
protected virtual bool ShouldSerializeCancelImageUrl()
Returns:

bool

C#
protected virtual bool ShouldSerializeEditImageUrl()
Returns:

bool

C#
protected virtual bool ShouldSerializeInsertImageUrl()
Returns:

bool

C#
protected virtual bool ShouldSerializeUpdateImageUrl()
Returns:

bool