GridEditableColumn
All columns in RadGrid that have editing capabilities derive from GridEditableColumn. This class implements the base functionality for editing, using column editors etc.
Provides IGridEditableColumn interface, which RadGrid uses to operate with the state of all the editable columns.
Definition
Namespace:Telerik.Web.UI
Assembly:Telerik.Web.UI.dll
Syntax:
public abstract class GridEditableColumn : GridColumn, IStateManager, IComparable, IGridEditableColumn, IGridDataColumn
Inheritance: objectGridColumnGridEditableColumn
Derived Classes:
Implements:
Inherited Members
Constructors
protected GridEditableColumn()
Properties
Gets or sets whether the column data can be filtered.
public virtual bool AllowFiltering { get; set; }
A boolean value, indicating whether the column data can be filtered.
Implements:
Gets or sets a whether the column data can be sorted.
public virtual bool AllowSorting { get; set; }
A boolean value, indicating whether the column data can be sorted.
Implements:
Gets the column editor instance for this column.
[Browsable(false)]
public virtual IGridColumnEditor ColumnEditor { get; set; }
The column editor instance for this column.
Implements:
Gets or sets the column editor ID that will be used when the column is displayed in edit mode.
public string ColumnEditorID { get; set; }
The column editor ID that will be used when the column is displayed in edit mode.
Convert the emty string to null when extracting values for inserting, updating, deleting
public bool ConvertEmptyStringToNull { get; set; }
Get the current colum editor. If the column editor is not assigned at the moment the column will search for the ColumnEditorID on the page or should create its default column editor
[SuppressMessage("Microsoft.Performance", "CA1800:DoNotCastUnnecessarily")]
[Browsable(false)]
public virtual IGridColumnEditor CurrentColumnEditor { get; }
Gets or sets a default value for the column when the row is in Insert mode
public string DefaultInsertValue { get; set; }
Force RadGrid to extract values from EditableColumns that are ReadOnly (or IsEditable is false).
public GridForceExtractValues ForceExtractValue { get; set; }
Implements:
protected IGridColumnEditor InnerColumnEditor { get; }
Gets or sets a value determining whether a editor will be displayed in the insert item. Inherited: The visibility is dependent on the value of the ReadOnly property. AlwaysVisible: The insert item is always visible AlwaysHidden: The insert item is always hidden
public GridColumnVisibilityMode InsertVisiblityMode { get; set; }
public IGridColumnEditor MobileEditor { get; set; }
Gets or sets the readonly status of the column. The column will be displayed in browser mode (unless its Visible property is false) but will not appear in the edit-form.
[SuppressMessage("Microsoft.Naming", "CA1716:IdentifiersShouldNotMatchKeywords", MessageId = "ReadOnly")]
public virtual bool ReadOnly { get; set; }
A boolean value, indicating whether a column is ReadOnly.
Should override if sorting will be disabled
protected override bool Sortable { get; }
Overrides:
Gets or sets whether the column editor will be native when gird's RenderMode is set to Mobile
public bool UseNativeEditorsInMobileMode { get; set; }
Methods
protected virtual void ColumnEditorChange(IGridColumnEditor newValue)
protected override void CopyBaseProperties(GridColumn fromColumn)
Overrides:
Extracts the values from the editedItem and fills the names/values pairs for each data-field edited by the column in the newValues dictionary.
public abstract void FillValues(IDictionary newValues, GridEditableItem editableItem)
dictionary to fill. This param should not be null (Nothing in VB.NET)
editableItemGridEditableItemthe GridEditableItem to extract values from
Implements:
Returns the DataField that will be used for Filter and Sorting operations
protected void SetDefaultColumnEditor(IGridColumnEditor defaultEditor)
Get value based on the current IsEditable state, item edited state and ForceExtractValue setting.
public virtual bool ShouldExtractValues(GridEditableItem item)
item to check to extract values from
Returns:Implements: