RadListDataItem
Definition
Namespace:Telerik.WinControls.UI
Assembly:Telerik.WinControls.UI.dll
Syntax:
public class RadListDataItem : RadObject, IDisposable, INotifyPropertyChanged, ICustomTypeDescriptor, IDataItem
Inheritance: objectDisposableObjectRadObjectRadListDataItem
Derived Classes:
Implements:
Inherited Members
Constructors
public RadListDataItem()
Fields
public static readonly RadProperty ActiveProperty
protected ListDataLayer dataLayer
public static readonly RadProperty HeightProperty
protected RadListElement ownerElement
public static readonly RadProperty SelectedProperty
public static readonly RadProperty ValueProperty
Properties
Gets or sets a value that represents the raw data item that this RadListDataItem is associated with. This property will be non null when the item is created via RadListControl's data binding and will contain the underlaying data item. Setting this property explicitly will have no effect in unbound mode and will throw an InvalidOperationException in bound mode.
[Browsable(false)]
public object DataBoundItem { get; set; }
Implements:
Gets a value that will be used in the visual representation of this item.
[Browsable(false)]
public object DisplayValue { get; }
Gets or sets whether this item responds to GUI events.
[Browsable(true)]
public bool Enabled { get; set; }
Gets or sets the font for this RadListDataItem instance.
[Browsable(true)]
public Font Font { get; set; }
Gets or sets the text color for this RadListDataItem instance.
[Browsable(true)]
public Color ForeColor { get; set; }
Gets or sets the visual height of this item. This property can be set only when AutoSizeItems of the parent RadListControl is true.
[Browsable(true)]
public int Height { get; set; }
Gets or sets an image for this RadListDataItem instance.
[Browsable(true)]
public Image Image { get; set; }
Gets or sets the image alignment for this RadListDataItem instance.
[Browsable(true)]
public ContentAlignment ImageAlignment { get; set; }
Gets the index of item in GridViewRowCollection.
public virtual int Index { get; }
The index.
Gets a value indicating whether this data item is data bound.
[Browsable(false)]
public bool IsDataBound { get; }
Gets a value that indicates if this item is currently visible.
[Browsable(false)]
public bool IsVisible { get; }
Gets or sets the preferred size for the element which will present this item.
[Browsable(false)]
public SizeF MeasuredSize { get; set; }
Gets a value representing the owner RadListElement of this data item.
[Browsable(false)]
public virtual RadListElement Owner { get; }
Gets a value representing the owner control of this data item.
[Browsable(false)]
public Control OwnerControl { get; }
Gets the index of this data item in the Items collection of RadListControl.
[Browsable(false)]
public int RowIndex { get; }
Gets or sets a value that indicates if this item is selected. Setting this property will cause the selection events of the owner list control to fire if there is one.
[Browsable(true)]
public virtual bool Selected { get; set; }
Gets or sets a vector image for this RadListDataItem instance.
[Browsable(true)]
public RadSvgImage SvgImage { get; set; }
[Bindable(true)]
[TypeConverter(typeof(StringConverter))]
public object Tag { get; set; }
Gets or sets the text for this RadListDataItem instance.
[Browsable(true)]
public virtual string Text { get; set; }
Gets or sets the text alignment for this RadListDataItem instance.
[Browsable(true)]
public ContentAlignment TextAlignment { get; set; }
Gets or sets the text-image relation for this RadListDataItem instance.
[Browsable(true)]
public TextImageRelation TextImageRelation { get; set; }
Gets or sets the text orientation for this RadListDataItem instance.
[Browsable(true)]
public Orientation TextOrientation { get; set; }
Gets or sets a value for the property indicated by ValueMember if in bound mode, and private value in unbound mode. Trying to explicitly set this property in bound mode will result in an InvalidOperationException.
[Browsable(false)]
public virtual object Value { get; set; }
Gets a value that visually represents this data item. If the item is not visible, this property returns null. The visual item returned should be used only to get information about a particular item. Since visual items are shared between different data items, properties must not be set directly on the visual item in order to avoid uncustomizable or unwanted behavior. For example if properties are set directly to the visual item the themes may not work correctly.
[Browsable(false)]
public RadListVisualItem VisualItem { get; }
Methods
Gets a value for the Value property while in bound mode.
protected virtual object GetBoundValue()
Gets an object reference pointing to the value of the Value property in bound mode.
Gets a value for the Value property in unbound mode.
protected virtual object GetUnboundValue()
Returns an object reference pointing to the value of the Value property in unbound mode.
Raises the RadPropertyChanged event and the standard .NET PropertyChanged event to notify subscribers of property value changes.
protected override void OnPropertyChanged(RadPropertyChangedEventArgs e)
The RadPropertyChangedEventArgs containing information about the property change.
Overrides:
This method is used to assign the DataBoundItem property of this RadListDataItem. If a user attempts to set DataBoundItem while in bound mode, an exception should be thrown. In unbound mode this property can be set to any value and will not affect the behavior of this RadListDataItem.
protected virtual void SetDataBoundItem(bool dataBinding, object value)
A flag that indicates if the data bound item is being set from the data binding engine or by the user. true means it is being set by the data binding engine.
valueobjectThe value that will be assigned to the DataBoundItem property.
This method is called when setting the Value property of a RadListDataItem when it is in unbound mode.
protected virtual void SetUnboundValue(object value)
The value to set the Value property to.