GridEditableItem
Represents the base class for any items that display and edit data in a GridTableView of RadGrid. Inheritors has the capabilities to:
- Locate a table cell based on the column unique names
- Extract values from the cells of column editors
- Has a dictionary of saved-old-values that are necessary for optimistic concurency editing oprations
- Edit/browse mode
- EditManager instance, which is capable of locating the column editors
Definition
Namespace:Telerik.Web.UI
Assembly:Telerik.Web.UI.dll
Syntax:
public abstract class GridEditableItem : GridItem, IComponent, IDisposable, IParserAccessor, IUrlResolutionService, IDataBindingsAccessor, IControlBuilderAccessor, IControlDesignerAccessor, IExpressionsAccessor, IAttributeAccessor, INamingContainer
Inheritance: objectControlWebControlTableRowGridTableRowGridItemGridEditableItem...
Derived Classes:
Implements:
Inherited Members
Constructors
public GridEditableItem(GridTableView ownerTableView, int itemIndex, int dataSetIndex, GridItemType itemType)
public GridEditableItem(GridTableView ownerTableView, int itemIndex, int dataSetIndex)
Properties
Allows you to access the column editors
public virtual GridEditManager EditManager { get; }
Gets the old value of the edited item
public abstract IDictionary SavedOldValues { get; }
Methods
Extracts values for each column, using FillValues(IDictionary, GridEditableItem)
public virtual void ExtractValues(IDictionary newValues)
This dictionary to fill, this parameter should not be null
Get the DataKeyValues from the owner GridTableView with the corresponding item ItemIndex and keyName. The keyName should be one of the specified in the DataKeyNames array
Extracts values for each column, using FillValues(IDictionary, GridEditableItem) and updates values in provided object;
[SuppressMessage("Microsoft.Performance", "CA1800:DoNotCastUnnecessarily")]
public virtual void UpdateValues(object objectToUpdate)
The object that should be updated