ClassRadListDataItem
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
RadListDataItem()
Declaration
public RadListDataItem()
Fields
ActiveProperty
Declaration
public static readonly RadProperty ActiveProperty
Field Value
HeightProperty
Declaration
public static readonly RadProperty HeightProperty
Field Value
SelectedProperty
Declaration
public static readonly RadProperty SelectedProperty
Field Value
ValueProperty
Declaration
public static readonly RadProperty ValueProperty
Field Value
Properties
Active
Declaration
[Browsable(false)]
public bool Active { get; set; }
Property Value
DataBoundItem
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.
Declaration
[Browsable(false)]
public object DataBoundItem { get; set; }
Property Value
Implements
DisplayValue
Gets a value that will be used in the visual representation of this item.
Declaration
[Browsable(false)]
public object DisplayValue { get; }
Property Value
Enabled
Gets or sets whether this item responds to GUI events.
Declaration
[Browsable(true)]
public bool Enabled { get; set; }
Property Value
Font
Gets or sets the font for this RadListDataItem instance.
ForeColor
Gets or sets the text color for this RadListDataItem instance.
Declaration
[Browsable(true)]
public Color ForeColor { get; set; }
Property Value
Height
Gets or sets the visual height of this item. This property can be set only when AutoSizeItems of the parent RadListControl is true.
Image
Gets or sets an image for this RadListDataItem instance.
Declaration
[Browsable(true)]
public Image Image { get; set; }
Property Value
ImageAlignment
Gets or sets the image alignment for this RadListDataItem instance.
Declaration
[Browsable(true)]
public ContentAlignment ImageAlignment { get; set; }
Property Value
Index
Gets the index of item in GridViewRowCollection.
IsDataBound
Gets a value indicating whether this data item is data bound.
Declaration
[Browsable(false)]
public bool IsDataBound { get; }
Property Value
IsVisible
Gets a value that indicates if this item is currently visible.
MeasuredSize
Gets or sets the preferred size for the element which will present this item.
Declaration
[Browsable(false)]
public SizeF MeasuredSize { get; set; }
Property Value
Owner
Gets a value representing the owner RadListElement of this data item.
Declaration
[Browsable(false)]
public virtual RadListElement Owner { get; }
Property Value
OwnerControl
Gets a value representing the owner control of this data item.
Declaration
[Browsable(false)]
public Control OwnerControl { get; }
Property Value
RowIndex
Gets the index of this data item in the Items collection of RadListControl.
Selected
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.
Declaration
[Browsable(true)]
public virtual bool Selected { get; set; }
Property Value
SvgImage
Gets or sets a vector image for this RadListDataItem instance.
Declaration
[Browsable(true)]
public RadSvgImage SvgImage { get; set; }
Property Value
Tag
Declaration
[Bindable(true)]
[TypeConverter(typeof(StringConverter))]
public object Tag { get; set; }
Property Value
Text
Gets or sets the text for this RadListDataItem instance.
Declaration
[Browsable(true)]
public virtual string Text { get; set; }
Property Value
TextAlignment
Gets or sets the text alignment for this RadListDataItem instance.
Declaration
[Browsable(true)]
public ContentAlignment TextAlignment { get; set; }
Property Value
TextImageRelation
Gets or sets the text-image relation for this RadListDataItem instance.
Declaration
[Browsable(true)]
public TextImageRelation TextImageRelation { get; set; }
Property Value
TextOrientation
Gets or sets the text orientation for this RadListDataItem instance.
Declaration
[Browsable(true)]
public Orientation TextOrientation { get; set; }
Property Value
Value
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.
Declaration
[Browsable(false)]
public virtual object Value { get; set; }
Property Value
VisualItem
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.
Declaration
[Browsable(false)]
public RadListVisualItem VisualItem { get; }
Property Value
Methods
GetBoundValue()
Gets a value for the Value property while in bound mode.
Declaration
protected virtual object GetBoundValue()
Returns
Gets an object reference pointing to the value of the Value property in bound mode.
GetUnboundValue()
Gets a value for the Value property in unbound mode.
Declaration
protected virtual object GetUnboundValue()
Returns
Returns an object reference pointing to the value of the Value property in unbound mode.
OnPropertyChanged(RadPropertyChangedEventArgs)
Raises the RadPropertyChanged event and the standard .NET PropertyChanged event to notify subscribers of property value changes.
Declaration
protected override void OnPropertyChanged(RadPropertyChangedEventArgs e)
Parameters
e
The RadPropertyChangedEventArgs containing information about the property change.
Overrides
SetDataBoundItem(bool, object)
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.
Declaration
protected virtual void SetDataBoundItem(bool dataBinding, object value)
Parameters
dataBinding
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.
value
The value that will be assigned to the DataBoundItem property.
SetUnboundValue(object)
This method is called when setting the Value property of a RadListDataItem when it is in unbound mode.
Declaration
protected virtual void SetUnboundValue(object value)
Parameters
value
The value to set the Value property to.