CheckAllDataItem
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:
public class CheckAllDataItem : RadCheckedListDataItem, IDisposable, INotifyPropertyChanged, ICustomTypeDescriptor, IDataItem
Inheritance: objectDisposableObjectRadObjectRadListDataItemRadCheckedListDataItemCheckAllDataItem...
Implements:
Inherited Members
Constructors
Initializes the Check All item for the specified checked drop-down list.
public CheckAllDataItem(string text, RadCheckedDropDownListElement checkedElement)
The text displayed for the item.
checkedElementRadCheckedDropDownListElementThe 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.
public override bool Checked { get; set; }
Overrides:
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.
public void SetCheckState(bool value, bool silent)
The requested checked state.
silentbooltrue 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.
public event RadCheckedListDataItemEventHandler CheckAllItemCheckedChanged
Occurs when a ListViewDataItem is about to be checked. Cancelable.
public event RadCheckedListDataItemCancelEventHandler CheckAllItemCheckedChanging