RadListViewDataItem
Represents an individual data item in a RadListView control.
Definition
Namespace:Telerik.Web.UI
Assembly:Telerik.Web.UI.dll
Syntax:
public class RadListViewDataItem : RadListViewItem, IComponent, IDisposable, IParserAccessor, IUrlResolutionService, IDataBindingsAccessor, IControlBuilderAccessor, IControlDesignerAccessor, IExpressionsAccessor, IDataItemContainer, INamingContainer
Inheritance: objectControlRadListViewItemRadListViewDataItem
Derived Classes:
Implements:
Inherited Members
Constructors
public RadListViewDataItem(RadListView ownerListView, int displayIndex, RadListViewItemType itemType)
public RadListViewDataItem(RadListView ownerListView, 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 RadListView to rebind.
Gets the old value of the edited item
public IDictionary SavedOldValues { get; }
Gets or set value indicating whether the RadListView item is selected
public bool Selected { get; set; }
Methods
Extracts values from this RadListViewDataItem 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 RadListView 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 RadListViewDataItem's extracted values
public virtual void UpdateValues(object objectToUpdate)
object to be updated
Exceptions: ArgumentNullExceptionobjectToUpdate is null.