ClassGridCheckBoxHeaderCellElement
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
GridCheckBoxHeaderCellElement(GridViewColumn, GridRowElement)
Initializes a new instance of the GridCheckBoxHeaderCellElement class.
Declaration
public GridCheckBoxHeaderCellElement(GridViewColumn column, GridRowElement row)
Parameters
column
The column.
row
The row.
Fields
OnHeaderCellToggleStateChanged
Declaration
public static RoutedEvent OnHeaderCellToggleStateChanged
Field Value
Properties
CheckBox
Returns the check box element in the cell.
Declaration
public RadCheckBoxElement CheckBox { get; }
Property Value
ColumnInfo
Gets the GridViewColumn which the cell belongs to.
Declaration
public override GridViewColumn ColumnInfo { get; protected set; }
Property Value
Overrides
ThemeEffectiveType
Gets the type of the theme effective.
Declaration
protected override Type ThemeEffectiveType { get; }
Property Value
The type of the theme effective.
Overrides
Methods
ArrangeOverride(SizeF)
Arranges the override.
Attach(GridViewColumn, object)
Attaches the specified data.
Declaration
public override void Attach(GridViewColumn data, object context)
Parameters
data
The data.
context
The context.
Overrides
CreateCheckBoxElement()
Creates a checkbox element.
Declaration
protected virtual RadCheckBoxElement CreateCheckBoxElement()
Returns
The checkbox element.
CreateChildElements()
Called by the element when constructed. Allows inheritors to build the element tree.
Declaration
protected override void CreateChildElements()
Overrides
Detach()
Detaches this instance.
Declaration
public override void Detach()
Overrides
DisposeManagedResources()
Disposes the managed resources.
Declaration
protected override void DisposeManagedResources()
Overrides
EvaluateCheckBoxState(List<GridViewRowInfo>, ref bool?, ref bool?, ref bool?)
Declaration
protected virtual bool EvaluateCheckBoxState(List<GridViewRowInfo> rows, ref bool? foundChecked, ref bool? foundUnchecked, ref bool? foundIndeterminate)
Parameters
rows
List<GridViewRowInfo>
foundChecked
bool?
foundUnchecked
bool?
foundIndeterminate
bool?
Returns
Initialize(GridViewColumn, GridRowElement)
Initializes the specified column.
Declaration
public override void Initialize(GridViewColumn column, GridRowElement row)
Parameters
column
The column.
row
The row.
Overrides
IsCompatible(GridViewColumn, object)
Determines whether the specified data is compatible.
Declaration
public override bool IsCompatible(GridViewColumn data, object context)
Parameters
data
The data.
context
The context.
Returns
Overrides
MeasureOverride(SizeF)
Measures the space required by the RadElement Used by the layout system.
Declaration
protected override SizeF MeasureOverride(SizeF availableSize)
Parameters
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
Remarks
In this method call to the Measure method of each child must be made.
OnColumnPropertyChanged(RadPropertyChangedEventArgs)
Occurs when some column property changes its value.
Declaration
protected override void OnColumnPropertyChanged(RadPropertyChangedEventArgs e)
Parameters
e
An instance of RadPropertyChangedEventArgs
Overrides
RaiseToggleStateEvent()
Raises the toggle state event.
Declaration
protected virtual void RaiseToggleStateEvent()
ResumeHeaderSynchronization()
Declaration
protected virtual void ResumeHeaderSynchronization()
SetCheckBoxState()
Sets the state of the check box.
Declaration
protected virtual void SetCheckBoxState()
SetCheckBoxState(ToggleState)
Sets the state of the check box.
Declaration
protected virtual void SetCheckBoxState(ToggleState state)
Parameters
state
The state.
SetContent()
Sets the content.
Declaration
public override void SetContent()
Overrides
SetThreeStateCheckBoxState()
Sets the state of the three state check box.
Declaration
protected virtual void SetThreeStateCheckBoxState()
SetTwoStateCheckBoxState()
Sets the state of the two state check box.
Declaration
protected virtual void SetTwoStateCheckBoxState()
SuspendHeaderSynchronization()
Declaration
protected virtual void SuspendHeaderSynchronization()
UpdateInfoCore()
Updates the information core.
Declaration
protected override void UpdateInfoCore()
Overrides
checkbox_ToggleStateChanged(object, StateChangedEventArgs)
Handles the ToggleStateChanged event of the checkbox control.
Declaration
protected virtual void checkbox_ToggleStateChanged(object sender, StateChangedEventArgs args)
Parameters
sender
The source of the event.
args
The StateChangedEventArgs instance containing the event data.