Class GridHeaderCellElement
Represents the header cell in RadGridView
Inheritance
Inherited Members
Namespace: Telerik.WinControls.UI
Assembly: Telerik.WinControls.GridView.dll
Syntax
public class GridHeaderCellElement : GridVirtualizedCellElement, INotifyPropertyChanged, ICustomTypeDescriptor, ISupportSystemSkin, IComponent, IDisposable, IBindableComponent, ISupportDrag, ISupportDrop, IShortcutProvider, IStylableElement, IStylableNode, IPrimitiveElement, IShapedElement, IFillElement, IBorderElement, IBoxStyle, IBoxElement, IImageElement, ITextPrimitive, ITextProvider, IContextMenuProvider, IVirtualizedElement<GridViewColumn>
Constructors
GridHeaderCellElement(GridViewColumn, GridRowElement)
Initializes a new instance of the Grid
Declaration
public GridHeaderCellElement(GridViewColumn column, GridRowElement row)
Parameters
Grid
|
Grid
|
Fields
IsSortedAscendingProperty
IsSortedDescendingProperty
Properties
Arrow
Gets the Arrow
Declaration
public ArrowPrimitive Arrow { get; }
Property Value
ArrowPosition
Gets or sets the arrow position.
Declaration
protected GridHeaderCellElement.ArrowPositionEnum ArrowPosition { get; set; }
Property Value
Grid The arrow position. |
FilterButton
Gets the filter button for the cell.
Declaration
public RadButtonElement FilterButton { get; }
Property Value
IsSortedAscending
Gets a value indicating whether the header cell is sorted ascending.
Declaration
public bool IsSortedAscending { get; }
Property Value
System.
|
IsSortedDescending
Gets a value indicating whether the header cell is sorted descending.
Declaration
public bool IsSortedDescending { get; }
Property Value
System.
|
SortOrder
Gets or sets a value indicating the sort order of data in the column.
Declaration
public RadSortOrder SortOrder { get; }
Property Value
StackLayout
Gets the stack layout.
Declaration
protected StackLayoutElement StackLayout { get; }
Property Value
Stack The stack layout. |
SupportsConditionalFormatting
Determines whether the header cell instance supports conditional formatting.
Declaration
public override bool SupportsConditionalFormatting { get; }
Property Value
System.
|
Overrides
Value
Gets or sets the value represented by this cell.
Declaration
public override object Value { get; set; }
Property Value
System.
|
Overrides
Methods
ArrangeArrow(SizeF, RadElement)
Arranges the arrow.
Declaration
protected void ArrangeArrow(SizeF finalSize, RadElement element)
Parameters
System. The final size. |
Rad The element. |
ArrangeOverride(SizeF)
Arranges the Rad
Declaration
protected override SizeF ArrangeOverride(SizeF finalSize)
Parameters
System. The size that is available for element. |
Returns
System. The rectangle occupied by the element. Usually |
Overrides
Remarks
In this method call to the Arrange method of each child must be made.
BindColumnProperties()
Binds the column properties.
Declaration
protected override void BindColumnProperties()
Overrides
CanDragCore(Point)
Determines whether the element may be dragged.
Declaration
protected override bool CanDragCore(Point dragStartPoint)
Parameters
System.
|
Returns
System.
|
Overrides
CanHideGroup(GridViewColumnGroup)
Determines whether this instance can hide the specified group.
Declaration
protected bool CanHideGroup(GridViewColumnGroup group)
Parameters
Grid The group. |
Returns
System.
|
CreateBestFitMenuItems(RadDropDownMenu)
Creates the best fit menu items.
Declaration
protected virtual void CreateBestFitMenuItems(RadDropDownMenu contextMenu)
Parameters
Rad The context menu. |
CreateChildElements()
Called by the element when constructed. Allows inheritors to build the element tree.
Declaration
protected override void CreateChildElements()
Overrides
CreateColumnChooserMenuItems(RadDropDownMenu)
Creates the column chooser menu items.
Declaration
protected virtual void CreateColumnChooserMenuItems(RadDropDownMenu contextMenu)
Parameters
Rad The context menu. |
CreateColumnPinningMenuItems(RadDropDownMenu)
Creates the column pinning menu items.
Declaration
protected virtual void CreateColumnPinningMenuItems(RadDropDownMenu contextMenu)
Parameters
Rad The context menu. |
CreateCompositeFilterForm()
Creates the composite filter form
Declaration
protected virtual BaseCompositeFilterDialog CreateCompositeFilterForm()
Returns
Base An instance of Composite |
CreateConditionalFormattingForm()
Creates the conditional formatting form.
Declaration
protected virtual ConditionalFormattingForm CreateConditionalFormattingForm()
Returns
CreateContextMenuItems(RadDropDownMenu)
Creates the context menu items.
Declaration
protected override void CreateContextMenuItems(RadDropDownMenu menu)
Parameters
Rad The menu. |
Overrides
CreateFilterPopup()
Creates the filter popup.
Declaration
protected virtual IGridFilterPopup CreateFilterPopup()
Returns
Detach()
Detaches the header cell element.
Declaration
public override void Detach()
Overrides
DisposeManagedResources()
Dispose managed resources
Declaration
protected override void DisposeManagedResources()
Overrides
DropInColumnGroupsView(ColumnGroupsViewDefinition, GridViewColumn, RadPosition)
Drops in the column groups view.
Declaration
protected virtual void DropInColumnGroupsView(ColumnGroupsViewDefinition view, GridViewColumn column, RadPosition dropPosition)
Parameters
Column The view. |
Grid The column. |
Rad The drop position. |
filterPopup_FilterConfirmed(Object, EventArgs)
Handles the FilterConfirmed event of the filterPopup control.
Declaration
protected virtual void filterPopup_FilterConfirmed(object sender, EventArgs e)
Parameters
System. The source of the event. |
System. The System. |
FindGroup(ColumnGroupCollection, GridViewColumnGroupRow)
Finds the group.
Declaration
protected virtual GridViewColumnGroup FindGroup(ColumnGroupCollection groups, GridViewColumnGroupRow row)
Parameters
Column The groups. |
Grid The row. |
Returns
FindRow(ColumnGroupCollection, GridViewColumn)
Finds the row.
Declaration
protected virtual GridViewColumnGroupRow FindRow(ColumnGroupCollection groups, GridViewColumn column)
Parameters
Column The groups. |
Grid The column. |
Returns
GetColumnSortOrder()
Gets the column sort order.
Declaration
protected RadSortOrder GetColumnSortOrder()
Returns
GetDragContextCore()
Gets the context, associated with a drag operation.
Declaration
protected override object GetDragContextCore()
Returns
System.
|
Overrides
GetDragHintCore()
Gets the image to be used as a hint when this element is being dragged.
Declaration
protected override Image GetDragHintCore()
Returns
System.
|
Overrides
GetVistaVisualStyle()
Gets the VisualStyleElement instance that describes the skin appearance for the element when the current OS is Windows Vista.
Declaration
public override VisualStyleElement GetVistaVisualStyle()
Returns
System.
|
Overrides
GetXPVisualStyle()
Gets the VisualStyleElement instance that describes the skin appearance for the element when the current OS is Windows XP.
Declaration
public override VisualStyleElement GetXPVisualStyle()
Returns
System.
|
Overrides
Initialize(GridViewColumn, GridRowElement)
Initializes the cell with specified column and row
Declaration
public override void Initialize(GridViewColumn column, GridRowElement row)
Parameters
Grid An instance of Grid |
Grid An instance of Grid |
Overrides
InitializeFields()
Initializes the fields.
Declaration
protected override void InitializeFields()
Overrides
InitializeSystemSkinPaint()
Performs initialization when the element is first-time painted using system skin.
Declaration
protected override void InitializeSystemSkinPaint()
Overrides
IsCompatible(GridViewColumn, Object)
Determines whether element is compatible with the specified data.
Declaration
public override bool IsCompatible(GridViewColumn data, object context)
Parameters
Grid The data. |
System. The context. |
Returns
System.
|
Overrides
MeasureOverride(SizeF)
Measures the space required by the Rad
Declaration
protected override SizeF MeasureOverride(SizeF availableSize)
Parameters
System. The size that is available to the Rad |
Returns
System. 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.
MergeMenus(IContextMenuManager, Object[])
Merges the context menu.
Declaration
public override RadDropDownMenu MergeMenus(IContextMenuManager contextMenuManager, params object[] parameters)
Parameters
IContext The IContext |
System. merge parameters. |
Returns
Rad The merged context menu, if successful. |
Overrides
OnColumnPropertyChanged(RadPropertyChangedEventArgs)
Occurs when some column property changes its value.
Declaration
protected override void OnColumnPropertyChanged(RadPropertyChangedEventArgs e)
Parameters
Rad An instance of RadPropertyChangedEventArgs |
Overrides
OnPanGesture(PanGestureEventArgs)
Fires the PanGesture event.
Declaration
protected override void OnPanGesture(PanGestureEventArgs args)
Parameters
Pan The arguments for the PanGesture event. |
Overrides
OnZoomGesture(ZoomGestureEventArgs)
Fires the ZoomGesture event.
Declaration
protected override void OnZoomGesture(ZoomGestureEventArgs args)
Parameters
Zoom The arguments for the ZoomGesture event. |
Overrides
PaintElementSkin(IGraphics)
Provides a routine to paint element's content when system skin appearance is desired.
Declaration
protected override void PaintElementSkin(IGraphics graphics)
Parameters
IGraphics
graphics
|
Overrides
PinColumn(PinnedColumnPosition)
Pins the column.
Declaration
protected virtual void PinColumn(PinnedColumnPosition position)
Parameters
Pinned The position. |
ProcessDragDrop(Point, ISupportDrag)
Core logic when a drag-drop is performed over this element. Allows inheritors to provide their own implementations.
Declaration
protected override void ProcessDragDrop(Point dropLocation, ISupportDrag dragObject)
Parameters
System.
|
ISupport
|
Overrides
ProcessDragOver(Point, ISupportDrag)
Determines whether the element may be treated as a drop target during drag-and-drop operation.
Declaration
protected override bool ProcessDragOver(Point currentMouseLocation, ISupportDrag dragObject)
Parameters
System.
|
ISupport
|
Returns
System.
|
Overrides
SetArrowPosition()
Sets the arrow position.
Declaration
protected GridHeaderCellElement.ArrowPositionEnum SetArrowPosition()
Returns
SetContent()
Sets the value of the cell.
Declaration
public override void SetContent()
Overrides
ShouldPaintChild(RadElement)
Returns whether the child element should be painted.
Declaration
protected override bool ShouldPaintChild(RadElement element)
Parameters
Rad The element. |
Returns
System.
|
Overrides
ShowContextMenu()
Shows the context menu.
Declaration
protected override void ShowContextMenu()
Overrides
Sort(RadSortOrder)
Sorts with the specified sort order.
Declaration
public virtual void Sort(RadSortOrder sortOrder)
Parameters
Rad The sort order. |
ToggleColumnSortOrder()
Toggles the column sort order.
Declaration
protected void ToggleColumnSortOrder()
UnbindColumnProperties()
Unbinds the column properties.
Declaration
protected override void UnbindColumnProperties()
Overrides
UpdateArrowState()
Updates the state of the arrow.
Declaration
public void UpdateArrowState()
UpdateButtonsLayoutVisibility()
Updates the buttons layout visibility.
Declaration
protected virtual void UpdateButtonsLayoutVisibility()
UpdateFilterButtonVisibility()
Updates the filter button visibility.
Declaration
protected virtual void UpdateFilterButtonVisibility()
UpdateInfoCore()
Updates the visual state of the cell.
Declaration
protected override void UpdateInfoCore()