New to Telerik UI for WinForms? Start a free 30-day trial

Represents the special item that requests checking or unchecking every item in a checked drop-down list.

Definition

Namespace:Telerik.WinControls.UI

Assembly:Telerik.WinControls.UI.dll

Syntax:

C#
public class CheckAllDataItem : RadCheckedListDataItem, IDisposable, INotifyPropertyChanged, ICustomTypeDescriptor, IDataItem

Inheritance: objectDisposableObjectRadObjectRadListDataItemRadCheckedListDataItemCheckAllDataItem...

Implements: ICustomTypeDescriptorIDataItemIDisposableINotifyPropertyChanged

Inherited Members RadCheckedListDataItem.CheckedPropertyRadCheckedListDataItem.OnSelectedItemChanged(EventArgs)RadCheckedListDataItem.SetDataBoundItem(bool, object)RadCheckedListDataItem.OnNotifyPropertyChanged(string)RadCheckedListDataItem.OnNotifyPropertyChanging(string)RadCheckedListDataItem.OnNotifyPropertyChanging(PropertyChangingEventArgsEx)RadCheckedListDataItem.OwnerRadCheckedListDataItem.PropertyChangingRadListDataItem.HeightPropertyRadListDataItem.ActivePropertyRadListDataItem.SelectedPropertyRadListDataItem.ValuePropertyRadListDataItem.dataLayerRadListDataItem.ownerElementRadListDataItem.OnPropertyChanged(RadPropertyChangedEventArgs)RadListDataItem.ToString()RadListDataItem.GetBoundValue()RadListDataItem.GetUnboundValue()RadListDataItem.SetUnboundValue(object)RadListDataItem.TagRadListDataItem.IsDataBoundRadListDataItem.OwnerControlRadListDataItem.HeightRadListDataItem.TextWrapRadListDataItem.RowIndexRadListDataItem.DisplayValueRadListDataItem.ValueRadListDataItem.ActiveRadListDataItem.SelectedRadListDataItem.EnabledRadListDataItem.TextRadListDataItem.ImageRadListDataItem.SvgImageRadListDataItem.TextImageRelationRadListDataItem.ImageAlignmentRadListDataItem.TextAlignmentRadListDataItem.TextOrientationRadListDataItem.FontRadListDataItem.ForeColorRadListDataItem.IsVisibleRadListDataItem.VisualItemRadListDataItem.MeasuredSizeRadListDataItem.IndexRadListDataItem.DataBoundItemRadObject.BindingContextPropertyRadObject.RadTypeRadObject.ReplaceDefaultDescriptors(PropertyDescriptorCollection)RadObject.DisposeManagedResources()RadObject.ClearPropertyStore()RadObject.SuspendPropertyNotifications()RadObject.ResumePropertyNotifications()RadObject.GetPropertyValue(RadProperty)RadObject.SetDefaultValueOverride(RadProperty, object)RadObject.GetValue(RadProperty)RadObject.SetValue(RadProperty, object)RadObject.ResetValue(RadProperty)RadObject.ResetLocalValue(RadProperty)RadObject.ResetValue(RadProperty, ValueResetFlags)RadObject.UpdateValue(RadProperty)RadObject.GetValueSource(RadProperty)RadObject.GetRegisteredRadProperty(string)RadObject.UpdateValueCore(RadPropertyValue)RadObject.SetValueCore(RadPropertyValue, object, object, ValueSource)RadObject.ResetValueCore(RadPropertyValue, ValueResetFlags)RadObject.GetDefaultValue(RadPropertyValue, object)RadObject.CoerceValue(RadPropertyValue, object)RadObject.ShouldSerializeProperty(RadProperty)RadObject.CanRaisePropertyChangeNotifications(RadPropertyValue)RadObject.BindProperty(RadProperty, RadObject, RadProperty, PropertyBindingOptions)RadObject.UnbindProperty(RadProperty)RadObject.AddStylePropertySetting(IPropertySetting)RadObject.GetInheritedValue(RadProperty)RadObject.OnPropertyChanging(RadPropertyChangingEventArgs)RadObject.OnNotifyPropertyChanged(PropertyChangedEventArgs)RadObject.OnShouldSerializeProperty(ShouldSerializePropertyEventArgs)RadObject.IsPropertyCancelable(RadPropertyMetadata)RadObject.PropertyValuesRadObject.PropertyFilterRadObject.RadObjectTypeRadObject.BindingContextRadObject.PropertyChangedRadObject.RadPropertyChangedRadObject.RadPropertyChangingDisposableObject.GetBitState(long)DisposableObject.SetBitState(long, bool)DisposableObject.OnBitStateChanged(long, bool, bool)DisposableObject.Dispose()DisposableObject.Dispose(bool)DisposableObject.PerformDispose(bool)DisposableObject.DisposeUnmanagedResources()DisposableObject.BitStateDisposableObject.EventsDisposableObject.IsDisposingDisposableObject.IsDisposedDisposableObject.DisposedDisposableObject.Disposing...

Constructors

Initializes the Check All item for the specified checked drop-down list.

C#
public CheckAllDataItem(string text, RadCheckedDropDownListElement checkedElement)
Parameters:textstring

The text displayed for the item.

checkedElementRadCheckedDropDownListElement

The element whose items are affected by this item.

Properties

Gets or sets the state of the Check All item; setting it requests the same state for the list's items.

C#
public override bool Checked { get; set; }

Overrides: RadCheckedListDataItem.Checked

Changes are ignored while ShowCheckAllItems is disabled. Notifications can cancel the Check All state change or individual item changes.

Methods

Changes the Check All item's state and optionally applies that state to the list's items.

C#
public void SetCheckState(bool value, bool silent)
Parameters:valuebool

The requested checked state.

silentbool

true to update only the Check All item; false to also attempt the change on each list item and synchronize the editor.

The method does nothing while the Check All option is hidden, another Check All state change is being processed, or the item already has the requested state. Individual item changes in non-silent mode can be canceled separately. The Check All changed event still fires in silent mode.

Events

Occurs when a ListViewDataItem is checked.

C#
public event RadCheckedListDataItemEventHandler CheckAllItemCheckedChanged

Occurs when a ListViewDataItem is about to be checked. Cancelable.

C#
public event RadCheckedListDataItemCancelEventHandler CheckAllItemCheckedChanging