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
public static RoutedEvent OnHeaderCellToggleStateChanged
Properties
Returns the check box element in the cell.
public RadCheckBoxElement CheckBox { get; }
Gets the GridViewColumn which the cell belongs to.
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:
protected virtual bool EvaluateCheckBoxState(List<GridViewRowInfo> rows, ref bool? foundChecked, ref bool? foundUnchecked, ref bool? foundIndeterminate)
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()
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()
protected virtual void SuspendHeaderSynchronization()
Updates the information core.
protected override void UpdateInfoCore()
Overrides: