RadDataFormDataItem
Represents an individual data item in a RadDataForm control.
Definition
Namespace:Telerik.Web.UI
Assembly:Telerik.Web.UI.dll
Syntax:
public class RadDataFormDataItem : RadDataFormItem, IComponent, IDisposable, IParserAccessor, IUrlResolutionService, IDataBindingsAccessor, IControlBuilderAccessor, IControlDesignerAccessor, IExpressionsAccessor, IDataItemContainer, INamingContainer
Inheritance: objectControlRadDataFormItemRadDataFormDataItem
Derived Classes:
Implements:
Inherited Members
Constructors
public RadDataFormDataItem(RadDataForm ownerDataForm, int displayIndex, RadDataFormItemType itemType)
public RadDataFormDataItem(RadDataForm ownerDataForm, int displayIndex)
Properties
When implemented, gets an object that is used in simplified data-binding operations.
public virtual object DataItem { get; set; }
An object that represents the value to use when data-binding operations are performed.
Implements:
Gets the index of the data item bound to a control.
public int DataItemIndex { get; }
An Integer representing the index of the data item in the data source.
Implements:
Gets the position of the data item as displayed in a control.
public int DisplayIndex { get; protected set; }
An Integer representing the position of the data item as displayed in a control.
Implements:
Sets the Item in edit mode.
public bool Edit { get; set; }
Requires RadDataForm to rebind.
Gets the old value of the edited item
public IDictionary SavedOldValues { get; }
Methods
Extracts values from this RadDataFormDataItem instance and appends them to passed IDictionary collection
public virtual void ExtractValues(IDictionary newValues)
This is dictionary to fill, this parameter
should not be null
newValues is null.
Get the DataKeyValues from the owner RadDataForm with the corresponding item DisplayIndex and keyName.
The keyName should be one of the specified in the DataKeyNames array
Updates properties of the passed object instance from current RadDataFormDataItem's extracted values
public virtual void UpdateValues(object objectToUpdate)
object to be updated
Exceptions: ArgumentNullExceptionobjectToUpdate is null.