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

Represents an individual data item in a RadDataForm control.

Definition

Namespace:Telerik.Web.UI

Assembly:Telerik.Web.UI.dll

Syntax:

C#
public class RadDataFormDataItem : RadDataFormItem, IComponent, IDisposable, IParserAccessor, IUrlResolutionService, IDataBindingsAccessor, IControlBuilderAccessor, IControlDesignerAccessor, IExpressionsAccessor, IDataItemContainer, INamingContainer

Inheritance: objectControlRadDataFormItemRadDataFormDataItem

Derived Classes: RadDataFormEditableItem

Implements: IComponentIControlBuilderAccessorIControlDesignerAccessorIDataBindingsAccessorIDataItemContainerIDisposableIExpressionsAccessorINamingContainerIParserAccessorIUrlResolutionService...

Inherited Members RadDataFormItem.OnBubbleEvent(object, EventArgs)RadDataFormItem.FireCommandEvent(string, object)RadDataFormItem.ItemTypeRadDataFormItem.OwnerDataFormRadDataFormItem.IsInEditModeControl.ResolveAdapter()Control.HasEvents()Control.GetRouteUrl(object)Control.GetRouteUrl(string, object)Control.GetRouteUrl(RouteValueDictionary)Control.GetRouteUrl(string, RouteValueDictionary)Control.GetUniqueIDRelativeTo(Control)Control.ApplyStyleSheetSkin(Page)Control.OnDataBinding(EventArgs)Control.DataBind()Control.DataBind(bool)Control.DataBindChildren()Control.AddParsedSubObject(object)Control.EnsureID()Control.OnInit(EventArgs)Control.ClearChildState()Control.ClearChildControlState()Control.ClearChildViewState()Control.ClearEffectiveClientIDMode()Control.ClearCachedClientID()Control.Focus()Control.LoadControlState(object)Control.LoadViewState(object)Control.MapPathSecure(string)Control.OpenFile(string)Control.OnLoad(EventArgs)Control.OnPreRender(EventArgs)Control.BuildProfileTree(string, bool)Control.SaveControlState()Control.SaveViewState()Control.Render(HtmlTextWriter)Control.RenderChildren(HtmlTextWriter)Control.RenderControl(HtmlTextWriter)Control.RenderControl(HtmlTextWriter, ControlAdapter)Control.OnUnload(EventArgs)Control.Dispose()Control.RaiseBubbleEvent(object, EventArgs)Control.AddedControl(Control, int)Control.CreateControlCollection()Control.CreateChildControls()Control.ResolveUrl(string)Control.ResolveClientUrl(string)Control.FindControl(string)Control.FindControl(string, int)Control.GetDesignModeState()Control.HasControls()Control.IsLiteralContent()Control.TrackViewState()Control.EnsureChildControls()Control.RemovedControl(Control)Control.SetDesignModeState(IDictionary)Control.SetRenderMethodDelegate(RenderMethod)Control.ClientIDModeControl.ClientIDControl.ClientIDSeparatorControl.ContextControl.AdapterControl.DesignModeControl.EventsControl.IDControl.EnableThemingControl.IsChildControlStateClearedControl.SkinIDControl.EnableViewStateControl.ViewStateModeControl.IsViewStateEnabledControl.NamingContainerControl.IdSeparatorControl.LoadViewStateByIDControl.PageControl.RenderingCompatibilityControl.TemplateControlControl.ParentControl.TemplateSourceDirectoryControl.AppRelativeTemplateSourceDirectoryControl.SiteControl.VisibleControl.UniqueIDControl.HasChildViewStateControl.ControlsControl.ValidateRequestModeControl.ViewStateControl.ViewStateIgnoresCaseControl.ChildControlsCreatedControl.IsTrackingViewStateControl.DisposedControl.DataBindingControl.InitControl.LoadControl.PreRenderControl.Unloadobject.ToString()object.Equals(object)object.Equals(object, object)object.ReferenceEquals(object, object)object.GetHashCode()object.GetType()object.MemberwiseClone()...

Constructors

C#
public RadDataFormDataItem(RadDataForm ownerDataForm, int displayIndex, RadDataFormItemType itemType)
Parameters:ownerDataFormRadDataFormdisplayIndexintitemTypeRadDataFormItemType
C#
public RadDataFormDataItem(RadDataForm ownerDataForm, int displayIndex)
Parameters:ownerDataFormRadDataFormdisplayIndexint

Properties

When implemented, gets an object that is used in simplified data-binding operations.

C#
public virtual object DataItem { get; set; }
Property Value:

An object that represents the value to use when data-binding operations are performed.

Implements: IDataItemContainer.DataItem

Gets the index of the data item bound to a control.

C#
public int DataItemIndex { get; }
Property Value:

An Integer representing the index of the data item in the data source.

Implements: IDataItemContainer.DataItemIndex

Gets the position of the data item as displayed in a control.

C#
public int DisplayIndex { get; protected set; }
Property Value:

An Integer representing the position of the data item as displayed in a control.

Implements: IDataItemContainer.DisplayIndex

Sets the Item in edit mode.

C#
public bool Edit { get; set; }

Requires RadDataForm to rebind.

Gets the old value of the edited item

C#
public IDictionary SavedOldValues { get; }

Methods

Extracts values from this RadDataFormDataItem instance and appends them to passed IDictionary collection

C#
public virtual void ExtractValues(IDictionary newValues)
Parameters:newValuesIDictionary

This is dictionary to fill, this parameter should not be null

Exceptions: ArgumentNullException

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

C#
public object GetDataKeyValue(string keyName)
Parameters:keyNamestring

data key name

Returns:

object

data key value

Updates properties of the passed object instance from current RadDataFormDataItem's extracted values

C#
public virtual void UpdateValues(object objectToUpdate)
Parameters:objectToUpdateobject

object to be updated

Exceptions: ArgumentNullException

objectToUpdate is null.