Represents the header cell with embedded CheckBox element.
Definition
Namespace:Telerik.WinControls.UI
Assembly:Telerik.WinControls.GridView.dll
Syntax:
public class GridCheckBoxHeaderCellElement : GridHeaderCellElement, INotifyPropertyChanged, ICustomTypeDescriptor, ISupportSystemSkin, IBindableComponent, IComponent, IDisposable, ISupportDrag, ISupportDrop, IShortcutProvider, IStylableElement, IStylableNode, IPrimitiveElement, IShapedElement, IFillElement, IBorderElement, IBoxStyle, IBoxElement, IDrawFillElement, IImageElement, ITextPrimitive, ITextProvider, IContextMenuProvider, IVirtualizedElement<GridViewColumn>
Inheritance: objectDisposableObjectRadObjectRadElementVisualElementRadComponentElementRadItemUIItemBaseLightVisualElementGridVisualElementConditionalFormattableGridVisualElementGridCellElementGridVirtualizedCellElementGridHeaderCellElementGridCheckBoxHeaderCellElement...
Implements:
Inherited Members
Constructors
Initializes a new instance of the GridCheckBoxHeaderCellElement class.
public GridCheckBoxHeaderCellElement(GridViewColumn column, GridRowElement row)
The column.
rowGridRowElementThe row.
Fields
Identifies the routed event registered for header check-box toggle-state changes.
public static RoutedEvent OnHeaderCellToggleStateChanged
The component reports these changes through HeaderCellToggleStateChanged via the event dispatcher; it does not raise this routed event.
Properties
Returns the check box element in the cell.
public RadCheckBoxElement CheckBox { get; }
Gets the column whose row values are reflected by this header check box.
public override GridViewColumn ColumnInfo { get; protected set; }
Overrides:
Gets the type of the theme effective.
protected override Type ThemeEffectiveType { get; }
The type of the theme effective.
Overrides:
Methods
Attaches the specified data.
public override void Attach(GridViewColumn data, object context)
The data.
contextobjectThe context.
Overrides:
Handles the ToggleStateChanged event of the checkbox control.
protected virtual void checkbox_ToggleStateChanged(object sender, StateChangedEventArgs args)
The source of the event.
argsStateChangedEventArgsThe StateChangedEventArgs instance containing the event data.
Creates a checkbox element.
protected virtual RadCheckBoxElement CreateCheckBoxElement()
The checkbox element.
Called by the element when constructed. Allows inheritors to build the element tree.
protected override void CreateChildElements()
Overrides:
Detaches this instance.
public override void Detach()
Overrides:
Disposes the managed resources.
protected override void DisposeManagedResources()
Overrides:
Examines row values, including child rows of groups, and sets the header check box when the accumulated values establish a mixed or indeterminate state. Data-column converters are used when available to interpret cell values as Boolean or ToggleState.
protected virtual bool EvaluateCheckBoxState(List<GridViewRowInfo> rows, ref bool? foundChecked, ref bool? foundUnchecked, ref bool? foundIndeterminate)
The rows to inspect.
foundCheckedbool?Set to true when a checked value has been found; null means none has been found yet.
foundUncheckedbool?Set to true when an unchecked value has been found; null means none has been found yet.
foundIndeterminatebool?Set to true when a value cannot be interpreted as a determinate checked or unchecked state.
Returns:true if the header state was set and evaluation stopped early; otherwise, false.
Initializes the specified column.
public override void Initialize(GridViewColumn column, GridRowElement row)
The column.
rowGridRowElementThe row.
Overrides:
Determines whether the specified data is compatible.
public override bool IsCompatible(GridViewColumn data, object context)
The data.
contextobjectThe context.
Returns:Overrides:
Measures the space required by the RadElement Used by the layout system.
protected override SizeF MeasureOverride(SizeF availableSize)
The size that is available to the RadElement. The available size can be infinity (to take the full size of the element)
Returns:The minimum size required by the element to be completely visible. Cannot be infinity.
Overrides:
In this method call to the Measure method of each child must be made.
Occurs when some column property changes its value.
protected override void OnColumnPropertyChanged(RadPropertyChangedEventArgs e)
An instance of RadPropertyChangedEventArgs
Overrides:
Raises the toggle state event.
protected virtual void RaiseToggleStateEvent()
Re-enables header check-box synchronization after it has been suspended.
protected virtual void ResumeHeaderSynchronization()
Sets the state of the check box.
protected virtual void SetCheckBoxState()
Sets the state of the check box.
Sets the content.
public override void SetContent()
Overrides:
Sets the state of the three state check box.
protected virtual void SetThreeStateCheckBoxState()
Sets the state of the two state check box.
protected virtual void SetTwoStateCheckBoxState()
Prevents row and filter changes from synchronizing the header check box until ResumeHeaderSynchronization() is called.
protected virtual void SuspendHeaderSynchronization()
Updates the information core.
protected override void UpdateInfoCore()
Overrides: