A list item whose checked state is tracked separately from selection and can be synchronized with a bound data item.
Definition
Namespace:Telerik.WinControls.UI
Assembly:Telerik.WinControls.UI.dll
Syntax:
public class RadCheckedListDataItem : RadListDataItem, IDisposable, INotifyPropertyChanged, ICustomTypeDescriptor, IDataItem
Inheritance: objectDisposableObjectRadObjectRadListDataItemRadCheckedListDataItem
Derived Classes:
Implements:
Inherited Members
Constructors
Initializes an unchecked list item.
public RadCheckedListDataItem()
Initializes an unchecked list item with the specified display text.
Fields
Identifies the property-system value that stores this item's checked state.
public static readonly RadProperty CheckedProperty
Properties
Gets or sets whether this item is checked; a matching public checked member supplies the state for an attached data-bound item.
public virtual bool Checked { get; set; }
For an item with a valid owner element tree, checked-state changes pass through the owner's changing event and then this item's PropertyChanging event, and either handler can cancel the change. An unattached item has no such cancellation callbacks. When an item with a valid owner element tree reports a state change, the owner updates its checked-items collection and raises the changed event.
Gets the list element that hosts this item; when attached, the item is also registered with the checked drop-down list.
public override RadListElement Owner { get; }
Overrides:
Methods
Processes a property-change notification, updating the checked-list owner when propertyName is Checked.
protected override void OnNotifyPropertyChanged(string propertyName)
The name of the property that changed.
Overrides:
For checked-state changes with a valid owner element tree, invokes the owner's cancellable item event before this item's changing event. For an unattached item, both callbacks are skipped; changes to other properties raise this item's event only.
protected virtual bool OnNotifyPropertyChanging(PropertyChangingEventArgsEx args)
The property-change data whose cancellation state is shared with the callbacks when they are raised.
Returns:true if a raised callback leaves the change canceled.
Assigns the underlying data object and initializes the checked state from the configured checked member.
Events
Occurs before a property change. For Checked, it is raised only when this item has a valid owner element tree.
Setting Cancel cancels the change.
public event PropertyChangingEventHandlerEx PropertyChanging