Class GridCheckBoxHeaderCellElement
Represents the header cell with embedded CheckBox element.
Inheritance
Inherited Members
Namespace: Telerik.WinControls.UI
Assembly: Telerik.WinControls.GridView.dll
Syntax
public class GridCheckBoxHeaderCellElement : GridHeaderCellElement, INotifyPropertyChanged, ICustomTypeDescriptor, ISupportSystemSkin, IComponent, IDisposable, IBindableComponent, ISupportDrag, ISupportDrop, IShortcutProvider, IStylableElement, IStylableNode, IPrimitiveElement, IShapedElement, IFillElement, IBorderElement, IBoxStyle, IBoxElement, IImageElement, ITextPrimitive, ITextProvider, IContextMenuProvider, IVirtualizedElement<GridViewColumn>
Constructors
GridCheckBoxHeaderCellElement(GridViewColumn, GridRowElement)
Initializes a new instance of the GridCheckBoxHeaderCellElement class.
Declaration
public GridCheckBoxHeaderCellElement(GridViewColumn column, GridRowElement row)
Parameters
GridViewColumn
column
The column. |
GridRowElement
row
The row. |
Fields
OnHeaderCellToggleStateChanged
Properties
CheckBox
Returns the check box element in the cell.
Declaration
public RadCheckBoxElement CheckBox { get; }
Property Value
RadCheckBoxElement
|
ColumnInfo
Declaration
public override GridViewColumn ColumnInfo { get; protected set; }
Property Value
GridViewColumn
|
Overrides
ThemeEffectiveType
Gets the type of the theme effective.
Declaration
protected override Type ThemeEffectiveType { get; }
Property Value
System.Type
The type of the theme effective. |
Overrides
Methods
ArrangeOverride(SizeF)
Arranges the override.
Declaration
protected override SizeF ArrangeOverride(SizeF finalSize)
Parameters
System.Drawing.SizeF
finalSize
The final size. |
Returns
System.Drawing.SizeF
|
Overrides
Attach(GridViewColumn, Object)
Attaches the specified data.
Declaration
public override void Attach(GridViewColumn data, object context)
Parameters
GridViewColumn
data
The data. |
System.Object
context
The context. |
Overrides
checkbox_ToggleStateChanged(Object, StateChangedEventArgs)
Handles the ToggleStateChanged event of the checkbox control.
Declaration
protected virtual void checkbox_ToggleStateChanged(object sender, StateChangedEventArgs args)
Parameters
System.Object
sender
The source of the event. |
StateChangedEventArgs
args
The StateChangedEventArgs instance containing the event data. |
CreateCheckBoxElement()
Creates a checkbox element.
Declaration
protected virtual RadCheckBoxElement CreateCheckBoxElement()
Returns
RadCheckBoxElement
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 Nullable<Boolean>, ref Nullable<Boolean>, ref Nullable<Boolean>)
Declaration
protected virtual bool EvaluateCheckBoxState(List<GridViewRowInfo> rows, ref bool? foundChecked, ref bool? foundUnchecked, ref bool? foundIndeterminate)
Parameters
System.Collections.Generic.List<GridViewRowInfo>
rows
|
System.Nullable<System.Boolean>
foundChecked
|
System.Nullable<System.Boolean>
foundUnchecked
|
System.Nullable<System.Boolean>
foundIndeterminate
|
Returns
System.Boolean
|
Initialize(GridViewColumn, GridRowElement)
Initializes the specified column.
Declaration
public override void Initialize(GridViewColumn column, GridRowElement row)
Parameters
GridViewColumn
column
The column. |
GridRowElement
row
The row. |
Overrides
IsCompatible(GridViewColumn, Object)
Determines whether the specified data is compatible.
Declaration
public override bool IsCompatible(GridViewColumn data, object context)
Parameters
GridViewColumn
data
The data. |
System.Object
context
The context. |
Returns
System.Boolean
|
Overrides
MeasureOverride(SizeF)
Measures the space required by the RadElement Used by the layout system.
Declaration
protected override SizeF MeasureOverride(SizeF availableSize)
Parameters
System.Drawing.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
System.Drawing.SizeF
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
RadPropertyChangedEventArgs
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
ToggleState
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()